about summary refs log tree commit diff
path: root/compiler/rustc_interface/src
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2022-05-08 15:53:19 +0200
committerCamille GILLOT <gillot.camille@gmail.com>2023-04-20 17:48:32 +0000
commitb275d2c30b6e88cc48747f349f7137076d450658 (patch)
treeb834a60fd639a6badc5f2838974455658522542b /compiler/rustc_interface/src
parent0e017fc94a5b35250fd1b0732e004e0112d09728 (diff)
downloadrust-b275d2c30b6e88cc48747f349f7137076d450658.tar.gz
rust-b275d2c30b6e88cc48747f349f7137076d450658.zip
Remove WithOptconstParam.
Diffstat (limited to 'compiler/rustc_interface/src')
-rw-r--r--compiler/rustc_interface/src/passes.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_interface/src/passes.rs b/compiler/rustc_interface/src/passes.rs
index 0e4e20c7cd1..5fe9d344654 100644
--- a/compiler/rustc_interface/src/passes.rs
+++ b/compiler/rustc_interface/src/passes.rs
@@ -795,8 +795,7 @@ fn analysis(tcx: TyCtxt<'_>, (): ()) -> Result<()> {
             tcx.ensure().has_ffi_unwind_calls(def_id);
 
             if tcx.hir().body_const_context(def_id).is_some() {
-                tcx.ensure()
-                    .mir_drops_elaborated_and_const_checked(ty::WithOptConstParam::unknown(def_id));
+                tcx.ensure().mir_drops_elaborated_and_const_checked(def_id);
             }
         }
     });