./x.py fmt
This commit is contained in:
parent
8eb7ac561e
commit
6d97718886
1 changed files with 5 additions and 4 deletions
|
@ -782,10 +782,11 @@ impl<'a> Resolver<'a> {
|
||||||
);
|
);
|
||||||
let def_span = suggestion.res.opt_def_id().and_then(|def_id| match def_id.krate {
|
let def_span = suggestion.res.opt_def_id().and_then(|def_id| match def_id.krate {
|
||||||
LOCAL_CRATE => self.definitions.opt_span(def_id),
|
LOCAL_CRATE => self.definitions.opt_span(def_id),
|
||||||
_ => Some(self.session.source_map().def_span(self.cstore().get_span_untracked(
|
_ => Some(
|
||||||
def_id,
|
self.session
|
||||||
self.session,
|
.source_map()
|
||||||
))),
|
.def_span(self.cstore().get_span_untracked(def_id, self.session)),
|
||||||
|
),
|
||||||
});
|
});
|
||||||
if let Some(span) = def_span {
|
if let Some(span) = def_span {
|
||||||
err.span_label(
|
err.span_label(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue