Skip to content

Commit c598c7f

Browse files
committed
---
yaml --- r: 164349 b: refs/heads/auto c: 04b4b50 h: refs/heads/master i: 164347: 0766709 v: v3
1 parent 6a7e632 commit c598c7f

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1010
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1111
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1212
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
13-
refs/heads/auto: 2c028452b5837a8d35485f24c4b18ede8da6b191
13+
refs/heads/auto: 04b4b500b9c602c45c7cd5264e969e1a91c1a99d
1414
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1515
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1616
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/src/librustc_driver/driver.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,6 @@ pub fn compile_input(sess: Session,
4646
outdir: &Option<Path>,
4747
output: &Option<Path>,
4848
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-
5549
// We need nested scopes here, because the intermediate results can keep
5650
// large chunks of memory alive and we want to free them as soon as
5751
// possible to keep the peak memory usage low
@@ -115,6 +109,12 @@ pub fn source_name(input: &Input) -> String {
115109

116110
pub fn phase_1_parse_input(sess: &Session, cfg: ast::CrateConfig, input: &Input)
117111
-> 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+
118118
let krate = time(sess.time_passes(), "parsing", (), |_| {
119119
match *input {
120120
Input::File(ref file) => {

0 commit comments

Comments
 (0)