about summary refs log tree commit diff
path: root/compiler/rustc_const_eval/src
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2022-07-04 23:44:41 +0000
committerMichael Goulet <michael@errs.io>2022-07-11 00:04:00 +0000
commita1634642e079d4517e31a75fa002ea0496148cda (patch)
treec970a1ddc4e0096d880852426a7117fcfac3f6c0 /compiler/rustc_const_eval/src
parentc396bb3b8a16b1f2762b7c6078dc3e023f6a2493 (diff)
downloadrust-a1634642e079d4517e31a75fa002ea0496148cda.tar.gz
rust-a1634642e079d4517e31a75fa002ea0496148cda.zip
Deny floats even when adt_const_params is enabled
Diffstat (limited to 'compiler/rustc_const_eval/src')
-rw-r--r--compiler/rustc_const_eval/src/transform/check_consts/qualifs.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/transform/check_consts/qualifs.rs b/compiler/rustc_const_eval/src/transform/check_consts/qualifs.rs
index 6e5a0c813ac..0aa7b117b89 100644
--- a/compiler/rustc_const_eval/src/transform/check_consts/qualifs.rs
+++ b/compiler/rustc_const_eval/src/transform/check_consts/qualifs.rs
@@ -226,7 +226,7 @@ impl Qualif for CustomEq {
         // because that component may be part of an enum variant (e.g.,
         // `Option::<NonStructuralMatchTy>::Some`), in which case some values of this type may be
         // structural-match (`Option::None`).
-        traits::search_for_structural_match_violation(cx.body.span, cx.tcx, ty).is_some()
+        traits::search_for_structural_match_violation(cx.body.span, cx.tcx, ty, true).is_some()
     }
 
     fn in_adt_inherently<'tcx>(