Don't use a DUMMY_SP for reporting issues with crate imports

This commit is contained in:
Oliver Schneider 2017-05-12 11:21:34 +02:00
parent a54bbf2cb3
commit 3f2bbe3f4f

View File

@ -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
} }