mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-01 05:25:38 +00:00
By changing `as_str()` to take `&self` instead of `self`, we can just return `&str`. We're still lying about lifetimes, but it's a smaller lie than before, where `SymbolStr` contained a (fake) `&'static str`!
For more information about how rustc works, see the rustc dev guide.