Skip to content

Commit f81b2da

Browse files
committed
remove needs_drop impl
1 parent 110c98b commit f81b2da

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/intrinsic.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -272,16 +272,6 @@ impl<'a, 'mir, 'tcx> EvalContextExt<'tcx> for EvalContext<'a, 'mir, 'tcx, super:
272272
self.copy_op(args[1], ptr.into())?;
273273
}
274274

275-
"needs_drop" => {
276-
let ty = substs.type_at(0);
277-
let env = ty::ParamEnv::reveal_all();
278-
let needs_drop = ty.needs_drop(self.tcx.tcx, env);
279-
self.write_scalar(
280-
Scalar::from_bool(needs_drop),
281-
dest,
282-
)?;
283-
}
284-
285275
"offset" => {
286276
let offset = self.read_scalar(args[1])?.to_isize(&self)?;
287277
let ptr = self.read_scalar(args[0])?.not_undef()?;

0 commit comments

Comments
 (0)