Use &'hir Mod
everywhere.
For consistency, and because it makes HIR measurement simpler and more accurate.
This commit is contained in:
parent
a847d5e4ce
commit
22379bd9db
2 changed files with 9 additions and 5 deletions
|
@ -2991,7 +2991,7 @@ pub enum ItemKind<'hir> {
|
|||
/// A MBE macro definition (`macro_rules!` or `macro`).
|
||||
Macro(ast::MacroDef, MacroKind),
|
||||
/// A module.
|
||||
Mod(Mod<'hir>),
|
||||
Mod(&'hir Mod<'hir>),
|
||||
/// An external module, e.g. `extern { .. }`.
|
||||
ForeignMod { abi: Abi, items: &'hir [ForeignItemRef] },
|
||||
/// Module-level inline assembly (from `global_asm!`).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue