Skip to content

Commit 802e184

Browse files
committed
Use correct ParamEnv in Instance::resolve
1 parent 837526c commit 802e184

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/ty/instance.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ impl<'tcx> Instance<'tcx> {
285285
_ => {
286286
if Some(def_id) == tcx.lang_items().drop_in_place_fn() {
287287
let ty = substs.type_at(0);
288-
if ty.needs_drop(tcx, ty::ParamEnv::reveal_all()) {
288+
if ty.needs_drop(tcx, param_env.with_reveal_all()) {
289289
debug!(" => nontrivial drop glue");
290290
ty::InstanceDef::DropGlue(def_id, Some(ty))
291291
} else {

0 commit comments

Comments
 (0)