Skip to content

Commit a0347d5

Browse files
committed
syntax: Demote priv to a reserved keyword
It is no longer used in rust anywhere. RFC: 0006-remove-priv
1 parent 5cfbc0e commit a0347d5

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

src/libsyntax/parse/token.rs

+18-18
Original file line numberDiff line numberDiff line change
@@ -461,29 +461,29 @@ declare_special_idents_and_keywords! {
461461
(25, Mod, "mod");
462462
(26, Mut, "mut");
463463
(27, Once, "once");
464-
(28, Priv, "priv");
465-
(29, Pub, "pub");
466-
(30, Ref, "ref");
467-
(31, Return, "return");
464+
(28, Pub, "pub");
465+
(29, Ref, "ref");
466+
(30, Return, "return");
468467
// Static and Self are also special idents (prefill de-dupes)
469468
(super::STATIC_KEYWORD_NAME, Static, "static");
470469
(super::SELF_KEYWORD_NAME, Self, "self");
471-
(32, Struct, "struct");
472-
(33, Super, "super");
473-
(34, True, "true");
474-
(35, Trait, "trait");
475-
(36, Type, "type");
476-
(37, Unsafe, "unsafe");
477-
(38, Use, "use");
478-
(39, While, "while");
479-
(40, Continue, "continue");
480-
(41, Proc, "proc");
481-
(42, Box, "box");
470+
(31, Struct, "struct");
471+
(32, Super, "super");
472+
(33, True, "true");
473+
(34, Trait, "trait");
474+
(35, Type, "type");
475+
(36, Unsafe, "unsafe");
476+
(37, Use, "use");
477+
(38, While, "while");
478+
(39, Continue, "continue");
479+
(40, Proc, "proc");
480+
(41, Box, "box");
482481

483482
'reserved:
484-
(43, Alignof, "alignof");
485-
(44, Be, "be");
486-
(45, Offsetof, "offsetof");
483+
(42, Alignof, "alignof");
484+
(43, Be, "be");
485+
(44, Offsetof, "offsetof");
486+
(45, Priv, "priv");
487487
(46, Pure, "pure");
488488
(47, Sizeof, "sizeof");
489489
(48, Typeof, "typeof");

0 commit comments

Comments
 (0)