Rollup merge of #69430 - matthiaskrgr:noloop, r=varkor
librustc_typeck: remove loop that never actually loops
This commit is contained in:
commit
84f5bcc41d
1 changed files with 3 additions and 2 deletions
|
@ -2439,10 +2439,11 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o {
|
||||||
break;
|
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;
|
has_err = true;
|
||||||
Self::prohibit_assoc_ty_binding(self.tcx(), binding.span);
|
Self::prohibit_assoc_ty_binding(self.tcx(), binding.span);
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
has_err
|
has_err
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue