Skip to content

Commit 4a1746c

Browse files
committed
fixup! trait_sel: temporary impl Sized for scalable vecs
1 parent cc9818a commit 4a1746c

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_trait_selection/src/traits/select

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2138,7 +2138,7 @@ impl<'tcx> SelectionContext<'_, 'tcx> {
21382138
// line will be required anyway and will be correct, just that in the host effect
21392139
// builtin impl for sizedness, it won't be `const Sized`.
21402140
if def.repr().scalable() {
2141-
return Where(ty::Binder::dummy(Vec::new()));
2141+
return ty::Binder::dummy(vec![]);
21422142
}
21432143

21442144
if let Some(crit) = def.sizedness_constraint(self.tcx(), sizedness) {

0 commit comments

Comments
 (0)