Skip to content

Commit 7a39e90

Browse files
Rollup merge of rust-lang#49699 - zesterer:master, r=joshtriplett
Removed 'proc' from the reserved keywords list Remove 'proc' from the reserved keywords list. 'proc' is a very useful identifier name for a lot of things. It's especially useful when dealing with processes, operating system internals, and kernel development.
2 parents d703622 + 7f58d2f commit 7a39e90

File tree

2 files changed

+13
-33
lines changed

2 files changed

+13
-33
lines changed

src/libsyntax_pos/symbol.rs

+13-14
Original file line numberDiff line numberDiff line change
@@ -336,24 +336,23 @@ declare_keywords! {
336336
(46, Offsetof, "offsetof")
337337
(47, Override, "override")
338338
(48, Priv, "priv")
339-
(49, Proc, "proc")
340-
(50, Pure, "pure")
341-
(51, Sizeof, "sizeof")
342-
(52, Typeof, "typeof")
343-
(53, Unsized, "unsized")
344-
(54, Virtual, "virtual")
345-
(55, Yield, "yield")
339+
(49, Pure, "pure")
340+
(50, Sizeof, "sizeof")
341+
(51, Typeof, "typeof")
342+
(52, Unsized, "unsized")
343+
(53, Virtual, "virtual")
344+
(54, Yield, "yield")
346345

347346
// Special lifetime names
348-
(56, UnderscoreLifetime, "'_")
349-
(57, StaticLifetime, "'static")
347+
(55, UnderscoreLifetime, "'_")
348+
(56, StaticLifetime, "'static")
350349

351350
// Weak keywords, have special meaning only in specific contexts.
352-
(58, Auto, "auto")
353-
(59, Catch, "catch")
354-
(60, Default, "default")
355-
(61, Dyn, "dyn")
356-
(62, Union, "union")
351+
(57, Auto, "auto")
352+
(58, Catch, "catch")
353+
(59, Default, "default")
354+
(60, Dyn, "dyn")
355+
(61, Union, "union")
357356
}
358357

359358
// If an interner exists, return it. Otherwise, prepare a fresh one.

src/test/parse-fail/obsolete-proc.rs

-19
This file was deleted.

0 commit comments

Comments
 (0)