diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2019-07-18 23:29:57 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2019-07-27 14:16:16 +0300 |
| commit | b5a0e6ea807bcdc71f145038dd1129c22dcf17fd (patch) | |
| tree | 0fdc06b0a570021d5f00826a9045111cb71bfd36 /src/libsyntax_ext/test_harness.rs | |
| parent | 4d535bdf59136f69b55107caaa0f5492b5e84d2d (diff) | |
| download | rust-b5a0e6ea807bcdc71f145038dd1129c22dcf17fd.tar.gz rust-b5a0e6ea807bcdc71f145038dd1129c22dcf17fd.zip | |
syntax_ext: `proc_macro_decls` -> `proc_macro_harness`
Few other minor renamings for consistency. Remove one unused dependency from `rustc_passes`. Fix libsyntax tests. Fix rebase.
Diffstat (limited to 'src/libsyntax_ext/test_harness.rs')
| -rw-r--r-- | src/libsyntax_ext/test_harness.rs | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/libsyntax_ext/test_harness.rs b/src/libsyntax_ext/test_harness.rs index 061f5c3408b..848c797856e 100644 --- a/src/libsyntax_ext/test_harness.rs +++ b/src/libsyntax_ext/test_harness.rs @@ -37,12 +37,14 @@ struct TestCtxt<'a> { // Traverse the crate, collecting all the test functions, eliding any // existing main functions, and synthesizing a main test harness -pub fn modify_for_testing(sess: &ParseSess, - resolver: &mut dyn Resolver, - should_test: bool, - krate: &mut ast::Crate, - span_diagnostic: &errors::Handler, - features: &Features) { +pub fn inject( + sess: &ParseSess, + resolver: &mut dyn Resolver, + should_test: bool, + krate: &mut ast::Crate, + span_diagnostic: &errors::Handler, + features: &Features, +) { // Check for #[reexport_test_harness_main = "some_name"] which // creates a `use __test::main as some_name;`. This needs to be // unconditional, so that the attribute is still marked as used in |
