1
Fork 0

Implement stackless expansion.

This commit is contained in:
Jeffrey Seyfried 2016-09-02 09:12:47 +00:00
parent c07ff8d26a
commit d986bbe674
4 changed files with 194 additions and 181 deletions

View file

@ -300,14 +300,11 @@ fn generate_test_harness(sess: &ParseSess,
}
});
let mut fold = TestHarnessGenerator {
TestHarnessGenerator {
cx: cx,
tests: Vec::new(),
tested_submods: Vec::new(),
};
let res = fold.fold_crate(krate);
fold.cx.ext_cx.bt_pop();
return res;
}.fold_crate(krate)
}
/// Craft a span that will be ignored by the stability lint's