Skip to content

Commit

Permalink
Don't use a DUMMY_SP for reporting issues with crate imports
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed May 12, 2017
1 parent a54bbf2 commit 3f2bbe3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_resolve/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2604,7 +2604,7 @@ impl<'a> Resolver<'a> {
module = Some(self.graph_root);
continue
} 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
}

Expand Down

0 comments on commit 3f2bbe3

Please sign in to comment.