resolve: Do not cache nearest parent mod in ModuleData

This commit is contained in:
Vadim Petrochenkov
2021-09-14 00:13:14 +03:00
parent a0648eab36
commit fd58eea4e1
4 changed files with 36 additions and 57 deletions

View File

@@ -305,7 +305,7 @@ impl<'a> ResolverExpand for Resolver<'a> {
fast_print_path(path),
res.opt_def_id(),
res.opt_def_id().map(|macro_def_id| {
self.macro_def_scope_from_def_id(macro_def_id).nearest_parent_mod
self.macro_def_scope_from_def_id(macro_def_id).nearest_parent_mod()
}),
),
self.create_stable_hashing_context(),