diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2022-05-21 15:50:39 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2022-05-22 12:01:07 +0300 |
| commit | 8e8fb4f49e7272b8dcbd25807a3ae8408ac41ce8 (patch) | |
| tree | b1fb402921ac606206de326f438054f601d4a9fe /compiler/rustc_interface/src | |
| parent | acfd327fd4e3a302ebb0a077f422a527a7935333 (diff) | |
| download | rust-8e8fb4f49e7272b8dcbd25807a3ae8408ac41ce8.tar.gz rust-8e8fb4f49e7272b8dcbd25807a3ae8408ac41ce8.zip | |
rustc_parse: Move AST -> TokenStream conversion logic to `rustc_ast`
Diffstat (limited to 'compiler/rustc_interface/src')
| -rw-r--r-- | compiler/rustc_interface/src/passes.rs | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/compiler/rustc_interface/src/passes.rs b/compiler/rustc_interface/src/passes.rs index 00119267e85..afbf48fceb5 100644 --- a/compiler/rustc_interface/src/passes.rs +++ b/compiler/rustc_interface/src/passes.rs @@ -494,13 +494,7 @@ pub fn lower_to_hir<'res, 'tcx>( arena: &'tcx rustc_ast_lowering::Arena<'tcx>, ) -> &'tcx Crate<'tcx> { // Lower AST to HIR. - let hir_crate = rustc_ast_lowering::lower_crate( - sess, - &*krate, - resolver, - rustc_parse::nt_to_tokenstream, - arena, - ); + let hir_crate = rustc_ast_lowering::lower_crate(sess, &*krate, resolver, arena); // Drop AST to free memory sess.time("drop_ast", || std::mem::drop(krate)); |
