mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2026-01-17 17:12:14 +00:00
16: Improve `Arc<str>` creation r=matklad a=sinkuu While using `Into<String>` could avoid an allocation in `str` -> `String`, converting `Box<str>` into `Arc<str>` [deallocates it and allocates new](https://doc.rust-lang.org/1.40.0/src/alloc/sync.rs.html#778-796) anyway. The 1st commit is a drive-by simplification. Co-authored-by: Shotaro Yamada <sinkuu@sinkuu.xyz>
Description
Languages
Rust
96.8%
HTML
1.6%
TypeScript
1.5%