frontend 0.4.0

rustc's frontend with no LLVM and no std: parsing through MIR, as a library
1
2
3
4
5
6
7
8
9
10
11
use crate::rustc_data_structures::fx::FxIndexMap;
use rustc_macros::StableHash;
use crate::rustc_span::Symbol;
use crate::rustc_span::def_id::{DefId, DefIdMap};

#[derive(Debug, Default, StableHash)]
pub struct DiagnosticItems {
    #[stable_hash(ignore)]
    pub id_to_name: DefIdMap<Symbol>,
    pub name_to_id: FxIndexMap<Symbol, DefId>,
}