diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2021-05-31 14:51:31 +0200 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2021-06-08 19:24:15 +0200 |
| commit | 8f397bc8a0d8f2569d9aec7ad787b484c4b147e4 (patch) | |
| tree | dc6f27758179056b4cb3a1f1d905367d898d65d3 /compiler/rustc_interface/src | |
| parent | a50d72158e08e02cfc051b863017bdbd2c45b637 (diff) | |
| download | rust-8f397bc8a0d8f2569d9aec7ad787b484c4b147e4.tar.gz rust-8f397bc8a0d8f2569d9aec7ad787b484c4b147e4.zip | |
Simplify box_region macros
Diffstat (limited to 'compiler/rustc_interface/src')
| -rw-r--r-- | compiler/rustc_interface/src/passes.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_interface/src/passes.rs b/compiler/rustc_interface/src/passes.rs index aa7af609fb5..478b2ef4d8f 100644 --- a/compiler/rustc_interface/src/passes.rs +++ b/compiler/rustc_interface/src/passes.rs @@ -87,7 +87,6 @@ fn count_nodes(krate: &ast::Crate) -> usize { declare_box_region_type!( pub BoxedResolver, - for(), (&mut Resolver<'_>) -> (Result<ast::Crate>, ResolverOutputs) ); @@ -133,7 +132,7 @@ pub fn configure_and_expand( resolver } }; - box_region_allow_access!(for(), (&mut Resolver<'_>), (&mut resolver), action); + box_region_allow_access!((&mut Resolver<'_>), (&mut resolver), action); resolver.into_outputs() }); result.map(|k| (k, resolver)) |
