Make AST lowering a query.
This commit is contained in:
parent
43bb31b954
commit
250c71b85d
14 changed files with 111 additions and 164 deletions
|
@ -9,7 +9,7 @@ macro_rules! arena_types {
|
|||
// HIR types
|
||||
[] hir_krate: rustc_hir::Crate<'tcx>,
|
||||
[] arm: rustc_hir::Arm<'tcx>,
|
||||
[] asm_operand: (rustc_hir::InlineAsmOperand<'tcx>, Span),
|
||||
[] asm_operand: (rustc_hir::InlineAsmOperand<'tcx>, rustc_span::Span),
|
||||
[] asm_template: rustc_ast::InlineAsmTemplatePiece,
|
||||
[] attribute: rustc_ast::Attribute,
|
||||
[] block: rustc_hir::Block<'tcx>,
|
||||
|
|
|
@ -18,6 +18,8 @@ extern crate rustc_macros;
|
|||
#[macro_use]
|
||||
extern crate rustc_data_structures;
|
||||
|
||||
extern crate self as rustc_hir;
|
||||
|
||||
mod arena;
|
||||
pub mod def;
|
||||
pub mod def_path_hash_map;
|
||||
|
@ -41,3 +43,5 @@ pub use hir_id::*;
|
|||
pub use lang_items::{LangItem, LanguageItems};
|
||||
pub use stable_hash_impls::HashStableContext;
|
||||
pub use target::{MethodKind, Target};
|
||||
|
||||
arena_types!(rustc_arena::declare_arena);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue