Simplify box_region macros
This commit is contained in:
parent
a50d72158e
commit
8f397bc8a0
2 changed files with 18 additions and 28 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue