This commit is contained in:
Henry Boisdequin 2021-01-29 16:08:49 +05:30
parent c2c2e8dde1
commit fd5fb86f05

View File

@ -977,7 +977,7 @@ fn lookup_import_candidates_from_module<FilterFn>(
});
if let Some(def_span) = def_span {
if span.overlaps(def_span) {
// Don't suggest typo suggestion for itself like in the followoing:
// Don't suggest typo suggestion for itself like in the following:
// error[E0423]: expected function, tuple struct or tuple variant, found struct `X`
// --> $DIR/issue-64792-bad-unicode-ctor.rs:3:14
// |