make import.vis is not mutable
This commit is contained in:
@@ -1388,6 +1388,7 @@ impl<'a: 'ast, 'b, 'ast, 'tcx> LateResolutionVisitor<'a, 'b, 'ast, 'tcx> {
|
||||
finalize,
|
||||
Some(&self.ribs),
|
||||
None,
|
||||
None,
|
||||
)
|
||||
}
|
||||
|
||||
@@ -4186,7 +4187,7 @@ impl<'a: 'ast, 'b, 'ast, 'tcx> LateResolutionVisitor<'a, 'b, 'ast, 'tcx> {
|
||||
let path_seg = |seg: &Segment| PathSegment::from_ident(seg.ident);
|
||||
let path = Path { segments: path.iter().map(path_seg).collect(), span, tokens: None };
|
||||
if let Ok((_, res)) =
|
||||
self.r.resolve_macro_path(&path, None, &self.parent_scope, false, false)
|
||||
self.r.resolve_macro_path(&path, None, &self.parent_scope, false, false, None)
|
||||
{
|
||||
return Ok(Some(PartialRes::new(res)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user