rustc_hir::def_id

Constant CRATE_DEF_INDEX

Source
pub const CRATE_DEF_INDEX: DefIndex;
Expand description

The crate root is always assigned index 0 by the AST Map code, thanks to NodeCollector::new.