Address PR feedback
This commit is contained in:
parent
9155f672bf
commit
6df2c78e1c
@ -2438,7 +2438,7 @@ fn predicates_from_bound<'tcx>(
|
||||
bound_vars: &'tcx ty::List<ty::BoundVariableKind>,
|
||||
) -> Vec<(ty::Predicate<'tcx>, Span)> {
|
||||
let mut bounds = Bounds::default();
|
||||
astconv.add_bounds(param_ty, std::array::IntoIter::new([bound]), &mut bounds, bound_vars);
|
||||
astconv.add_bounds(param_ty, [bound].into_iter(), &mut bounds, bound_vars);
|
||||
bounds.predicates(astconv.tcx(), param_ty)
|
||||
}
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
// Regression test for #88586: a higher-ranked outlives bound on Self in a trait
|
||||
// definition caused an ICE when debug_assertions were enabled.
|
||||
//
|
||||
// The error output is incidentally unhelpful; this should be improved.
|
||||
// FIXME: The error output in the absence of the ICE is unhelpful; this should be improved.
|
||||
|
||||
trait A where for<'a> Self: 'a
|
||||
//~^ ERROR the parameter type `Self` may not live long enough
|
||||
|
Loading…
Reference in New Issue
Block a user