Radar · Rust · Archive · Week 47 · Nov 17 – 23, 2025
Switching to Rust's own mangling scheme on nightly
Worth knowingcompiler
- What changed
- The compiler will use Rust’s own mangling scheme on nightly.
- Production impact
- The source does not say.
- Try it
- Build a small program on nightly and inspect the symbol names with
nm. - Source
- blog.rust-lang.org/2025/11/20/switching-to-v0-mangling-on-nightly/
Understand it, then run it
Rust code that ends up in a binary gets a hidden name called a symbol. The compiler used to copy a C++ style name, which lost some details about generics and could create confusing names. Starting with nightly-2025-11-21, the compiler will use a new Rust‑only scheme called *v0*. This keeps more information in the symbol, so debuggers and profilers show clearer names. The change is only in the compiler; your Rust code stays the same.
Written by gpt-oss-20b from the linked source · claims checked against the sources · archive, not individually reviewed