1
Fork 0

Rollup merge of #122028 - oli-obk:drop_in_place_leftovers, r=compiler-errors

Remove some dead code

drop_in_place has been a lang item, not an intrinsic, for forever
This commit is contained in:
Matthias Krüger 2024-03-05 22:10:03 +01:00 committed by GitHub
commit 4f73d2a53c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1 additions and 2 deletions

View file

@ -852,7 +852,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
}
let instance = match intrinsic {
None | Some(ty::IntrinsicDef { name: sym::drop_in_place, .. }) => instance,
None => instance,
Some(intrinsic) => {
let mut llargs = Vec::with_capacity(1);
let ret_dest = self.make_return_dest(