about summary refs log tree commit diff
path: root/src/libsyntax_pos
diff options
context:
space:
mode:
authorNicholas Nethercote <nnethercote@mozilla.com>2019-05-22 12:42:23 +1000
committerNicholas Nethercote <nnethercote@mozilla.com>2019-05-27 13:58:38 +1000
commit26451ef7b5e00887dc8f27717ff34262df23d655 (patch)
tree7e369732e649c3404dd2e7fb030c3a032fa0b790 /src/libsyntax_pos
parent6c0ff3dd979ccaf974312d72a4fba8392eb1a4f7 (diff)
downloadrust-26451ef7b5e00887dc8f27717ff34262df23d655.tar.gz
rust-26451ef7b5e00887dc8f27717ff34262df23d655.zip
Avoid unnecessary internings.
Most involving `Symbol::intern` on string literals.
Diffstat (limited to 'src/libsyntax_pos')
-rw-r--r--src/libsyntax_pos/symbol.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libsyntax_pos/symbol.rs b/src/libsyntax_pos/symbol.rs
index 3296de7b927..30b342a11d8 100644
--- a/src/libsyntax_pos/symbol.rs
+++ b/src/libsyntax_pos/symbol.rs
@@ -145,6 +145,7 @@ symbols! {
         automatically_derived,
         avx512_target_feature,
         await_macro,
+        bench,
         bin,
         bind_by_move_pattern_guards,
         block,
@@ -252,8 +253,10 @@ symbols! {
         f64,
         feature,
         ffi_returns_twice,
+        field,
         field_init_shorthand,
         file,
+        fmt_internals,
         fn_must_use,
         forbid,
         format_args_nl,
@@ -405,6 +408,7 @@ symbols! {
         Output,
         overlapping_marker_traits,
         packed,
+        panic,
         panic_handler,
         panic_impl,
         panic_implementation,
@@ -430,6 +434,7 @@ symbols! {
         proc_dash_macro: "proc-macro",
         proc_macro,
         proc_macro_attribute,
+        proc_macro_def_site,
         proc_macro_derive,
         proc_macro_expr,
         proc_macro_gen,
@@ -568,6 +573,7 @@ symbols! {
         test,
         test_2018_feature,
         test_accepted_feature,
+        test_case,
         test_removed_feature,
         test_runner,
         thread_local,