Simplify box_region macros

This commit is contained in:
bjorn3 2021-05-31 14:51:31 +02:00
parent a50d72158e
commit 8f397bc8a0
2 changed files with 18 additions and 28 deletions

View file

@ -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))