diff options
| author | Camelid <camelidcamel@gmail.com> | 2021-03-10 09:05:59 -0800 |
|---|---|---|
| committer | Camelid <camelidcamel@gmail.com> | 2021-03-10 09:15:16 -0800 |
| commit | b782939c06eb97bb276ce3cd4aac46eb1ebd511a (patch) | |
| tree | 156bf7f9c230e443c7125f1222dba53755ae08e0 /compiler | |
| parent | 4900836ab75b877775905931eba586ea8f13935d (diff) | |
| download | rust-b782939c06eb97bb276ce3cd4aac46eb1ebd511a.tar.gz rust-b782939c06eb97bb276ce3cd4aac46eb1ebd511a.zip | |
Remove `sym::` and `kw::` from generated docs
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/rustc_hir/src/lang_items.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_hir/src/lang_items.rs b/compiler/rustc_hir/src/lang_items.rs index d62920a925b..84c874ee537 100644 --- a/compiler/rustc_hir/src/lang_items.rs +++ b/compiler/rustc_hir/src/lang_items.rs @@ -38,7 +38,7 @@ macro_rules! expand_group { // So you probably just want to nip down to the end. macro_rules! language_item_table { ( - $( $(#[$attr:meta])* $variant:ident $($group:expr)?, $name:expr, $method:ident, $target:expr; )* + $( $(#[$attr:meta])* $variant:ident $($group:expr)?, $module:ident :: $name:ident, $method:ident, $target:expr; )* ) => { enum_from_u32! { @@ -60,7 +60,7 @@ macro_rules! language_item_table { /// would result in [`sym::eq`] since it is `#[lang = "eq"]`. pub fn name(self) -> Symbol { match self { - $( LangItem::$variant => $name, )* + $( LangItem::$variant => $module::$name, )* } } @@ -128,7 +128,7 @@ macro_rules! language_item_table { /// A mapping from the name of the lang item to its order and the form it must be of. pub static ITEM_REFS: SyncLazy<FxHashMap<Symbol, (usize, Target)>> = SyncLazy::new(|| { let mut item_refs = FxHashMap::default(); - $( item_refs.insert($name, (LangItem::$variant as usize, $target)); )* + $( item_refs.insert($module::$name, (LangItem::$variant as usize, $target)); )* item_refs }); |
