diff options
| author | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2024-07-09 05:02:00 +0000 |
|---|---|---|
| committer | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2024-07-22 14:01:23 +0000 |
| commit | 1b9ac0011f8c871edf9515503e9e38fb7d1c777b (patch) | |
| tree | efccac4d497022c225aae76486a2597d6623f661 /compiler/rustc_builtin_macros/src/test_harness.rs | |
| parent | c064b363b912857303f081de537514bf5190e5d2 (diff) | |
| download | rust-1b9ac0011f8c871edf9515503e9e38fb7d1c777b.tar.gz rust-1b9ac0011f8c871edf9515503e9e38fb7d1c777b.zip | |
Make function items in mut visitors all go through the same visit_fn function, just like with immutable visitors
Diffstat (limited to 'compiler/rustc_builtin_macros/src/test_harness.rs')
| -rw-r--r-- | compiler/rustc_builtin_macros/src/test_harness.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_builtin_macros/src/test_harness.rs b/compiler/rustc_builtin_macros/src/test_harness.rs index 9d032eb190a..4fd1f1ac2dc 100644 --- a/compiler/rustc_builtin_macros/src/test_harness.rs +++ b/compiler/rustc_builtin_macros/src/test_harness.rs @@ -192,7 +192,7 @@ struct EntryPointCleaner<'a> { impl<'a> MutVisitor for EntryPointCleaner<'a> { fn flat_map_item(&mut self, i: P<ast::Item>) -> SmallVec<[P<ast::Item>; 1]> { self.depth += 1; - let item = noop_flat_map_item(i, self).expect_one("noop did something"); + let item = noop_flat_map_item(i, None, self).expect_one("noop did something"); self.depth -= 1; // Remove any #[rustc_main] or #[start] from the AST so it doesn't |
