File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
branches/auto/src/librustc_driver Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
10
10
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
11
11
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
12
12
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
13
- refs/heads/auto: 2c028452b5837a8d35485f24c4b18ede8da6b191
13
+ refs/heads/auto: 04b4b500b9c602c45c7cd5264e969e1a91c1a99d
14
14
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
15
15
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
16
16
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336
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