bors[bot] 402fbec386 Merge rust-analyzer/smol_str#16
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>
2020-01-09 16:07:08 +00:00
2020-01-10 00:56:41 +09:00
Description
A Rust compiler front-end for IDEs
381 MiB
Languages
Rust 96.8%
HTML 1.6%
TypeScript 1.5%