We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
sym
kw
1 parent 9682f0e commit ec4f7e2Copy full SHA for ec4f7e2
src/librustc_span/symbol.rs
@@ -1153,12 +1153,20 @@ impl Interner {
1153
}
1154
1155
// This module has a very short name because it's used a lot.
1156
+/// This module contains all the defined keyword `Symbol`s.
1157
+///
1158
+/// Given that `kw` is imported, use them like `kw::keyword_name`.
1159
+/// For example `kw::Loop` or `kw::Break`.
1160
pub mod kw {
1161
use super::Symbol;
1162
keywords!();
1163
1164
1165
1166
+/// This module contains all the defined non-keyword `Symbol`s.
1167
1168
+/// Given that `sym` is imported, use them like `sym::symbol_name`.
1169
+/// For example `sym::rustfmt` or `sym::u8`.
1170
#[allow(rustc::default_hash_types)]
1171
pub mod sym {
1172
0 commit comments