Don't use a DUMMY_SP for reporting issues with crate imports
This commit is contained in:
parent
a54bbf2cb3
commit
3f2bbe3f4f
@ -2604,7 +2604,7 @@ impl<'a> Resolver<'a> {
|
|||||||
module = Some(self.graph_root);
|
module = Some(self.graph_root);
|
||||||
continue
|
continue
|
||||||
} else if i == 0 && ns == TypeNS && ident.name == "$crate" {
|
} else if i == 0 && ns == TypeNS && ident.name == "$crate" {
|
||||||
module = Some(self.resolve_crate_var(ident.ctxt, DUMMY_SP));
|
module = Some(self.resolve_crate_var(ident.ctxt, path_span));
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user