Skip to content
Permalink
Browse files

./x.py fmt

  • Loading branch information
estebank committed Jan 7, 2020
1 parent 8eb7ac5 commit 6d97718886eadcbce29950db8fc05dc86f7d89d7
Showing with 5 additions and 4 deletions.
  1. +5 −4 src/librustc_resolve/diagnostics.rs
@@ -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(

0 comments on commit 6d97718

Please sign in to comment.
You can’t perform that action at this time.