Skip to content

Commit 670d20d

Browse files
committed
Attempt to pacify CI
1 parent 3f7469d commit 670d20d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_trait_selection/src/traits/select/confirmation.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
538538
{
539539
// Do not allow `foo::<fn() -> A>();` for `A: !Sized` (#82633)
540540
let fn_sig = obligation.predicate.self_ty().skip_binder().fn_sig(self.tcx());
541-
let ty = fn_sig.output().skip_binder();
541+
let ty = self.infcx.replace_bound_vars_with_placeholders(fn_sig.output());
542542
let trait_ref = ty::TraitRef {
543543
def_id: lang_items.sized_trait().unwrap(),
544544
substs: self.tcx().mk_substs_trait(ty, &[]),

0 commit comments

Comments
 (0)