diff options
author | Camille GILLOT <gillot.camille@gmail.com> | 2022-05-08 15:53:19 +0200 |
---|---|---|
committer | Camille GILLOT <gillot.camille@gmail.com> | 2023-04-20 17:48:32 +0000 |
commit | b275d2c30b6e88cc48747f349f7137076d450658 (patch) | |
tree | b834a60fd639a6badc5f2838974455658522542b /compiler/rustc_codegen_cranelift | |
parent | 0e017fc94a5b35250fd1b0732e004e0112d09728 (diff) | |
download | rust-b275d2c30b6e88cc48747f349f7137076d450658.tar.gz |
Remove WithOptconstParam.
Diffstat (limited to 'compiler/rustc_codegen_cranelift')
-rw-r--r-- | compiler/rustc_codegen_cranelift/src/constant.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_cranelift/src/constant.rs b/compiler/rustc_codegen_cranelift/src/constant.rs index e87f4e25891..aacf37bb5b7 100644 --- a/compiler/rustc_codegen_cranelift/src/constant.rs +++ b/compiler/rustc_codegen_cranelift/src/constant.rs @@ -91,7 +91,7 @@ pub(crate) fn eval_mir_constant<'tcx>( ), }, ConstantKind::Unevaluated(mir::UnevaluatedConst { def, .. }, _) - if fx.tcx.is_static(def.did) => + if fx.tcx.is_static(def) => { span_bug!(constant.span, "MIR constant refers to static"); } |