We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ParamEnv
Instance::resolve
1 parent d20646b commit 465b862Copy full SHA for 465b862
src/librustc/ty/instance.rs
@@ -285,7 +285,7 @@ impl<'tcx> Instance<'tcx> {
285
_ => {
286
if Some(def_id) == tcx.lang_items().drop_in_place_fn() {
287
let ty = substs.type_at(0);
288
- if ty.needs_drop(tcx, ty::ParamEnv::reveal_all()) {
+ if ty.needs_drop(tcx, param_env.with_reveal_all()) {
289
debug!(" => nontrivial drop glue");
290
ty::InstanceDef::DropGlue(def_id, Some(ty))
291
} else {
0 commit comments