Remove sym::
and kw::
from generated docs
This commit is contained in:
parent
4900836ab7
commit
b782939c06
1 changed files with 3 additions and 3 deletions
|
@ -38,7 +38,7 @@ macro_rules! expand_group {
|
||||||
// So you probably just want to nip down to the end.
|
// So you probably just want to nip down to the end.
|
||||||
macro_rules! language_item_table {
|
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! {
|
enum_from_u32! {
|
||||||
|
@ -60,7 +60,7 @@ macro_rules! language_item_table {
|
||||||
/// would result in [`sym::eq`] since it is `#[lang = "eq"]`.
|
/// would result in [`sym::eq`] since it is `#[lang = "eq"]`.
|
||||||
pub fn name(self) -> Symbol {
|
pub fn name(self) -> Symbol {
|
||||||
match self {
|
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.
|
/// 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(|| {
|
pub static ITEM_REFS: SyncLazy<FxHashMap<Symbol, (usize, Target)>> = SyncLazy::new(|| {
|
||||||
let mut item_refs = FxHashMap::default();
|
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
|
item_refs
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue