1
Fork 0

Deny floats even when adt_const_params is enabled

This commit is contained in:
Michael Goulet 2022-07-04 23:44:41 +00:00
parent c396bb3b8a
commit a1634642e0
7 changed files with 135 additions and 66 deletions

View file

@ -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>(