Skip to content

Commit b782939

Browse files
committed
Remove sym:: and kw:: from generated docs
1 parent 4900836 commit b782939

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler/rustc_hir/src/lang_items.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ macro_rules! expand_group {
3838
// So you probably just want to nip down to the end.
3939
macro_rules! language_item_table {
4040
(
41-
$( $(#[$attr:meta])* $variant:ident $($group:expr)?, $name:expr, $method:ident, $target:expr; )*
41+
$( $(#[$attr:meta])* $variant:ident $($group:expr)?, $module:ident :: $name:ident, $method:ident, $target:expr; )*
4242
) => {
4343

4444
enum_from_u32! {
@@ -60,7 +60,7 @@ macro_rules! language_item_table {
6060
/// would result in [`sym::eq`] since it is `#[lang = "eq"]`.
6161
pub fn name(self) -> Symbol {
6262
match self {
63-
$( LangItem::$variant => $name, )*
63+
$( LangItem::$variant => $module::$name, )*
6464
}
6565
}
6666

@@ -128,7 +128,7 @@ macro_rules! language_item_table {
128128
/// A mapping from the name of the lang item to its order and the form it must be of.
129129
pub static ITEM_REFS: SyncLazy<FxHashMap<Symbol, (usize, Target)>> = SyncLazy::new(|| {
130130
let mut item_refs = FxHashMap::default();
131-
$( item_refs.insert($name, (LangItem::$variant as usize, $target)); )*
131+
$( item_refs.insert($module::$name, (LangItem::$variant as usize, $target)); )*
132132
item_refs
133133
});
134134

0 commit comments

Comments
 (0)