Skip to content

Commit 5d5bc83

Browse files
ivarflakstadoli-obk
authored andcommitted
Remove redundant upcast
Co-authored-by: Oli Scherer <github35764891676564198441@oli-obk.de>
1 parent a9eb450 commit 5d5bc83

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

compiler/rustc_const_eval/src/interpret/intrinsics.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,6 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> {
241241

242242
let type_impls_trait = preds.iter().all(|pred| {
243243
let trait_ref = ty::TraitRef::new(tcx, pred.def_id(), [tp_ty]);
244-
let pred: ty::Predicate<'tcx> = trait_ref.upcast(tcx);
245244

246245
let ocx = ObligationCtxt::new(&infcx);
247246
ocx.register_obligation(Obligation::new(

0 commit comments

Comments
 (0)