File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -46,12 +46,6 @@ pub fn compile_input(sess: Session,
46
46
outdir : & Option < Path > ,
47
47
output : & Option < Path > ,
48
48
addl_plugins : Option < Plugins > ) {
49
- // These may be left in an incoherent state after a previous compile.
50
- // `clear_tables` and `get_ident_interner().clear()` can be used to free
51
- // memory, but they do not restore the initial state.
52
- syntax:: ext:: mtwt:: reset_tables ( ) ;
53
- token:: reset_ident_interner ( ) ;
54
-
55
49
// We need nested scopes here, because the intermediate results can keep
56
50
// large chunks of memory alive and we want to free them as soon as
57
51
// possible to keep the peak memory usage low
@@ -115,6 +109,12 @@ pub fn source_name(input: &Input) -> String {
115
109
116
110
pub fn phase_1_parse_input ( sess : & Session , cfg : ast:: CrateConfig , input : & Input )
117
111
-> ast:: Crate {
112
+ // These may be left in an incoherent state after a previous compile.
113
+ // `clear_tables` and `get_ident_interner().clear()` can be used to free
114
+ // memory, but they do not restore the initial state.
115
+ syntax:: ext:: mtwt:: reset_tables ( ) ;
116
+ token:: reset_ident_interner ( ) ;
117
+
118
118
let krate = time ( sess. time_passes ( ) , "parsing" , ( ) , |_| {
119
119
match * input {
120
120
Input :: File ( ref file) => {
You can’t perform that action at this time.
0 commit comments