//! get confused if the spans from leaf AST nodes occur in multiple places
//! in the HIR, especially for multiple identifiers.
-mod expr;
-mod item;
-
use crate::arena::Arena;
use crate::dep_graph::DepGraph;
use crate::hir::def::{DefKind, Namespace, PartialRes, PerNS, Res};
use rustc_error_codes::*;
+macro_rules! arena_vec {
+ () => (
+ &[]
+ );
+ ($this:expr; $($x:expr),*) => (
+ $this.arena.alloc_from_iter(vec![$($x),*])
+ );
+}
+
+mod expr;
+mod item;
+
const HIR_ID_COUNTER_LOCKED: u32 = 0xFFFFFFFF;
pub struct LoweringContext<'a, 'hir: 'a> {
);
}
-macro_rules! arena_vec {
- () => (
- &[]
- );
- ($this:expr; $($x:expr),*) => (
- $this.arena.alloc_from_iter(vec![$($x),*])
- );
-}
-
pub mod check_attr;
pub mod def;
pub mod def_id;