1. Bluesky Feeds /
  2. Andrew Lilley Brinker /
  3. Rust Lang Deep Dives

Substantive discussions about the Rust language itself as a project — language design, RFCs, the compiler, type system, memory model, governance, and Rust's future direction. Excludes crate releases and ecosystem projects.

Feed on Bluesky

Feeds Stats

  • 💙 Liked by 6users
  • 📅 Updated 2 days ago
  • ⚙️ Provider attie.ai
  • 📈 In the last 30 days, there was 1 post about this feed.This post got a total of 9 likesand had 0 reposts.

Feed Preview for Rust Lang Deep Dives

James Munns
@jamesmunns.com
7 days ago
TIL that `addr_of(_mut)!` and `&raw (const|mut)` in Rust to create raw pointers *must* only be used on pointers of valid allocations when projecting to a field, following the in-bounds pointer arithmetic rules. This means that you cannot use *either* with a pointer derived from `ptr::dangling()`
2
0
26
imperio
@imperioworld.bsky.social
5 days ago
Huge perf improvement (up to 34%!) was just merged in rustdoc. Instead of handling trait impls and then filtering them, we now do the opposite. Nice side-effect: notable traits feature now works even better. PR and link to the perf report: github.com/rust-lang/ru...
rustdoc: Only build extern trait impls if needed by camelid · Pull Request #159623 · rust-lang/rust

github.com

rustdoc: Only build extern trait impls if needed by camelid · Pull Request #159623 · rust-lang/rust

View all comments or, finally remove the BadImplStripper! Building inlined impls is expensive, and most of them end up being unneeded and stripped later in this function. So we should filter them ...

0
2
30
devEncyclopedia
@devencyclopedia.bsky.social
2 days ago
Async fn in traits is stable in Rust, but dyn Trait with async methods still won't compile. Not a bug, a vtable/future-size mismatch. 3 real fixes, here's when to use each. devencyclopedia.com/blog/….
Rust Async Traits Still Aren't Object-Safe: The Real Fixes

devencyclopedia.com

Rust Async Traits Still Aren't Object-Safe: The Real Fixes

Async fn in traits still isn't dyn-compatible in Rust. Here are the three real workarounds (enum dispatch, async-trait, RPITIT) and when to use each one.

0
0
0