Skip to content

Commit

Permalink
./x.py fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
estebank committed Jan 10, 2020
1 parent 8eb7ac5 commit 6d97718
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/librustc_resolve/diagnostics.rs
Expand Up @@ -782,10 +782,11 @@ impl<'a> Resolver<'a> {
);
let def_span = suggestion.res.opt_def_id().and_then(|def_id| match def_id.krate {
LOCAL_CRATE => self.definitions.opt_span(def_id),
_ => Some(self.session.source_map().def_span(self.cstore().get_span_untracked(
def_id,
self.session,
))),
_ => Some(
self.session
.source_map()
.def_span(self.cstore().get_span_untracked(def_id, self.session)),
),
});
if let Some(span) = def_span {
err.span_label(
Expand Down

0 comments on commit 6d97718

Please sign in to comment.