Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-ty/src/mir/eval/shim.rs')
-rw-r--r--crates/hir-ty/src/mir/eval/shim.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/hir-ty/src/mir/eval/shim.rs b/crates/hir-ty/src/mir/eval/shim.rs
index 591c12ec24..42c11113ee 100644
--- a/crates/hir-ty/src/mir/eval/shim.rs
+++ b/crates/hir-ty/src/mir/eval/shim.rs
@@ -840,7 +840,7 @@ impl<'db> Evaluator<'db> {
"size_of generic arg is not provided".into(),
));
};
- let result = match has_drop_glue(&self.infcx, ty, self.trait_env.clone()) {
+ let result = match has_drop_glue(&self.infcx, ty, self.param_env.param_env) {
DropGlue::HasDropGlue => true,
DropGlue::None => false,
DropGlue::DependOnParams => {