mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
trivial fix on fallback
This commit is contained in:
parent
fdda7e0a33
commit
db0877f653
@ -318,9 +318,7 @@ impl<'a: 'ast, 'ast> LateResolutionVisitor<'a, '_, 'ast> {
|
||||
if !self.type_ascription_suggestion(&mut err, base_error.span) {
|
||||
let mut fallback =
|
||||
self.suggest_trait_and_bounds(&mut err, source, res, span, &base_error);
|
||||
if self.suggest_typo(&mut err, source, path, span, &base_error) {
|
||||
fallback = true;
|
||||
}
|
||||
fallback |= self.suggest_typo(&mut err, source, path, span, &base_error);
|
||||
if fallback {
|
||||
// Fallback label.
|
||||
err.span_label(base_error.span, &base_error.fallback_label);
|
||||
|
Loading…
Reference in New Issue
Block a user