Skip to content

Commit e4684c7

Browse files
committed
Remove Freeze special-case for generators
1 parent 2b2986d commit e4684c7

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/librustc/traits/select.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2177,11 +2177,6 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
21772177
}
21782178
}
21792179
}
2180-
ty::Generator(..)
2181-
if self.tcx().lang_items().freeze_trait() == Some(def_id) =>
2182-
{
2183-
// For now, always consider generators to be !Freeze
2184-
}
21852180

21862181
_ => candidates.vec.push(AutoImplCandidate(def_id.clone())),
21872182
}

0 commit comments

Comments
 (0)