mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
librustc_typeck: remove loop that never actually loops
This commit is contained in:
parent
a8437cf213
commit
b6f0567450
@ -2358,10 +2358,11 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o {
|
||||
break;
|
||||
}
|
||||
}
|
||||
for binding in segment.generic_args().bindings {
|
||||
|
||||
// Only emit the first error to avoid overloading the user with error messages.
|
||||
if let [binding, ..] = segment.generic_args().bindings {
|
||||
has_err = true;
|
||||
Self::prohibit_assoc_ty_binding(self.tcx(), binding.span);
|
||||
break;
|
||||
}
|
||||
}
|
||||
has_err
|
||||
|
Loading…
Reference in New Issue
Block a user