about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-11-04 09:22:54 +0000
committerbors <bors@rust-lang.org>2020-11-04 09:22:54 +0000
commitc2cf40cdcdff78e235eceeaea3419a5520877699 (patch)
treeff61b4304a1c4e875db8bff2be67246bdda9e354 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs
parent3a34bc017d2e9334ed2ee3513b248003c2d90a5c (diff)
parentb2332a7357b5da7220592aea4c711609eed54ef7 (diff)
downloadrust-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 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs')
0 files changed, 0 insertions, 0 deletions