Skip to content

Commit 1ce0552

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

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

rust-toolchain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
nightly-2018-09-29
1+
nightly-2018-10-01

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)