diff options
| author | bors <bors@rust-lang.org> | 2020-11-04 09:22:54 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-11-04 09:22:54 +0000 |
| commit | c2cf40cdcdff78e235eceeaea3419a5520877699 (patch) | |
| tree | ff61b4304a1c4e875db8bff2be67246bdda9e354 /compiler/rustc_mir/src/transform/coverage/query.rs | |
| parent | 3a34bc017d2e9334ed2ee3513b248003c2d90a5c (diff) | |
| parent | b2332a7357b5da7220592aea4c711609eed54ef7 (diff) | |
| download | rust-c2cf40cdcdff78e235eceeaea3419a5520877699.tar.gz rust-c2cf40cdcdff78e235eceeaea3419a5520877699.zip | |
Auto merge of #6284 - camsteffen:rustc-sym, r=flip1995
Use const sym where possible
I ran a regex search and replace to use const `sym` values where possible. This should give some performance boost by avoiding string interning at runtime.
Con: It is not as consistent as always using `sym!`.
I also changed an internal lint to suggest using `sym::{}`, making an assumption that this will always work for diagnostic items.
changelog: none
Diffstat (limited to 'compiler/rustc_mir/src/transform/coverage/query.rs')
0 files changed, 0 insertions, 0 deletions
