1
Fork 0

Rollup merge of #135321 - matthiaskrgr:out_of_into, r=lqd

remove more redundant into() conversions
This commit is contained in:
Jacob Pratt 2025-01-10 03:55:23 -05:00 committed by GitHub
commit b557f1baa7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 5 deletions

View file

@ -1036,7 +1036,7 @@ pub(super) fn const_conditions<'tcx>(
icx.lowerer().lower_bounds(
tcx.types.self_param,
supertraits.into_iter(),
supertraits,
&mut bounds,
ty::List::empty(),
PredicateFilter::ConstIfConst,

View file

@ -367,9 +367,8 @@ fn calc_test_vectors_index(conditions: &mut Vec<MCDCBranch>) -> usize {
})
.collect::<FxIndexMap<_, _>>();
let mut queue = std::collections::VecDeque::from_iter(
next_conditions.swap_remove(&ConditionId::START).into_iter(),
);
let mut queue =
std::collections::VecDeque::from_iter(next_conditions.swap_remove(&ConditionId::START));
num_paths_stats[ConditionId::START] = 1;
let mut decision_end_nodes = Vec::new();
while let Some(branch) = queue.pop_front() {

View file

@ -691,7 +691,7 @@ impl Subdiagnostic for LocalLabel<'_> {
for dtor in self.destructors {
dtor.add_to_diag_with(diag, f);
}
let msg = f(diag, crate::fluent_generated::mir_transform_label_local_epilogue.into());
let msg = f(diag, crate::fluent_generated::mir_transform_label_local_epilogue);
diag.span_label(self.span, msg);
}
}