diff options
Diffstat (limited to 'src/libsyntax_pos/symbol.rs')
| -rw-r--r-- | src/libsyntax_pos/symbol.rs | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/libsyntax_pos/symbol.rs b/src/libsyntax_pos/symbol.rs index 4d3db15ef29..69ddd560213 100644 --- a/src/libsyntax_pos/symbol.rs +++ b/src/libsyntax_pos/symbol.rs @@ -309,10 +309,12 @@ declare_keywords! { (54, Yield, "yield") // Weak keywords, have special meaning only in specific contexts. - (55, Default, "default") - (56, StaticLifetime, "'static") - (57, Union, "union") - (58, Catch, "catch") + (55, Auto, "auto") + (56, Catch, "catch") + (57, Default, "default") + (58, Dyn, "dyn") + (59, StaticLifetime, "'static") + (60, Union, "union") } // If an interner exists in TLS, return it. Otherwise, prepare a fresh one. @@ -414,7 +416,7 @@ mod tests { // first one is zero: assert_eq!(i.intern("dog"), Symbol(0)); // re-use gets the same entry: - assert_eq!(i.intern ("dog"), Symbol(0)); + assert_eq!(i.intern("dog"), Symbol(0)); // different string gets a different #: assert_eq!(i.intern("cat"), Symbol(1)); assert_eq!(i.intern("cat"), Symbol(1)); |
