Skip to content

Commit 6358411

Browse files
committed
Add a couple of clarifying comments.
1 parent 9893b75 commit 6358411

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: compiler/rustc_span/src/symbol.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ mod tests;
2020

2121
// The proc macro code for this is in `compiler/rustc_macros/src/symbols.rs`.
2222
symbols! {
23-
// After modifying this list adjust `is_special`, `is_used_keyword`/`is_unused_keyword`,
24-
// this should be rarely necessary though if the keywords are kept in alphabetic order.
23+
// If you modify this list, adjust `is_special` and `is_used_keyword`/`is_unused_keyword`.
24+
// But this should rarely be necessary if the keywords are kept in alphabetic order.
2525
Keywords {
2626
// Special reserved identifiers used internally for elided lifetimes,
2727
// unnamed method parameters, crate root module, error recovery etc.
@@ -893,7 +893,7 @@ symbols! {
893893
inline_const_pat,
894894
inout,
895895
instruction_set,
896-
integer_: "integer",
896+
integer_: "integer", // underscore to avoid clashing with the function `sym::integer` below
897897
integral,
898898
into_future,
899899
into_iter,

0 commit comments

Comments
 (0)