Implement stackless expansion.
This commit is contained in:
parent
c07ff8d26a
commit
d986bbe674
4 changed files with 194 additions and 181 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue