Skip to content

Commit 6df2c78

Browse files
committed
Address PR feedback
1 parent 9155f67 commit 6df2c78

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/rustc_typeck/src/collect.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2438,7 +2438,7 @@ fn predicates_from_bound<'tcx>(
24382438
bound_vars: &'tcx ty::List<ty::BoundVariableKind>,
24392439
) -> Vec<(ty::Predicate<'tcx>, Span)> {
24402440
let mut bounds = Bounds::default();
2441-
astconv.add_bounds(param_ty, std::array::IntoIter::new([bound]), &mut bounds, bound_vars);
2441+
astconv.add_bounds(param_ty, [bound].into_iter(), &mut bounds, bound_vars);
24422442
bounds.predicates(astconv.tcx(), param_ty)
24432443
}
24442444

src/test/ui/higher-rank-trait-bounds/issue-88586-hr-self-outlives-in-trait-def.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Regression test for #88586: a higher-ranked outlives bound on Self in a trait
22
// definition caused an ICE when debug_assertions were enabled.
33
//
4-
// The error output is incidentally unhelpful; this should be improved.
4+
// FIXME: The error output in the absence of the ICE is unhelpful; this should be improved.
55

66
trait A where for<'a> Self: 'a
77
//~^ ERROR the parameter type `Self` may not live long enough

0 commit comments

Comments
 (0)