1
Fork 0

resolve: Turn enum Finalize into an optional struct

This commit is contained in:
Vadim Petrochenkov 2022-04-30 16:26:36 +03:00
parent 637b3f6807
commit 900607f49a
8 changed files with 59 additions and 92 deletions

View file

@ -673,7 +673,7 @@ impl<'a> Resolver<'a> {
&path,
Some(MacroNS),
&parent_scope,
Finalize::SimplePath(ast::CRATE_NODE_ID, path_span),
Some(Finalize::new(ast::CRATE_NODE_ID, path_span)),
None,
) {
PathResult::NonModule(path_res) if path_res.unresolved_segments() == 0 => {