Remove guess_head_span.
This commit is contained in:
parent
36f4f4aa38
commit
6733bc3066
20 changed files with 93 additions and 103 deletions
|
@ -1587,11 +1587,7 @@ impl<'a> Resolver<'a> {
|
|||
};
|
||||
let def_span = suggestion.res.opt_def_id().and_then(|def_id| match def_id.krate {
|
||||
LOCAL_CRATE => self.opt_span(def_id),
|
||||
_ => Some(
|
||||
self.session
|
||||
.source_map()
|
||||
.guess_head_span(self.cstore().get_span_untracked(def_id, self.session)),
|
||||
),
|
||||
_ => Some(self.cstore().get_span_untracked(def_id, self.session)),
|
||||
});
|
||||
if let Some(def_span) = def_span {
|
||||
if span.overlaps(def_span) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue