about summary refs log tree commit diff
path: root/tests/ui/half-open-range-patterns/half-open-range-pats-semantics.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-02-05 11:07:26 +0100
committerGitHub <noreply@github.com>2024-02-05 11:07:26 +0100
commited27148812cd3652eaa97191422328812a28149c (patch)
tree618ec7d42454d520d63ed1154ef05dc7f418bc80 /tests/ui/half-open-range-patterns/half-open-range-pats-semantics.rs
parentfd8ea258824020fd97b971caec8e2b9d232d8092 (diff)
parent9f14fc4af4554b5ae8b727ae68460777051f1f74 (diff)
downloadrust-ed27148812cd3652eaa97191422328812a28149c.tar.gz
rust-ed27148812cd3652eaa97191422328812a28149c.zip
Rollup merge of #116284 - RalfJung:no-nan-match, r=cjgillot
make matching on NaN a hard error, and remove the rest of illegal_floating_point_literal_pattern

These arms would never be hit anyway, so the pattern makes little sense. We have had a future-compat lint against float matches in general for a *long* time, so I hope we can get away with immediately making this a hard error.

This is part of implementing https://github.com/rust-lang/rfcs/pull/3535.

Closes https://github.com/rust-lang/rust/issues/41620 by removing the lint.

https://github.com/rust-lang/reference/pull/1456 updates the reference to match.
Diffstat (limited to 'tests/ui/half-open-range-patterns/half-open-range-pats-semantics.rs')
-rw-r--r--tests/ui/half-open-range-patterns/half-open-range-pats-semantics.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/ui/half-open-range-patterns/half-open-range-pats-semantics.rs b/tests/ui/half-open-range-patterns/half-open-range-pats-semantics.rs
index 6c6ba93196b..d5af7bea543 100644
--- a/tests/ui/half-open-range-patterns/half-open-range-pats-semantics.rs
+++ b/tests/ui/half-open-range-patterns/half-open-range-pats-semantics.rs
@@ -4,7 +4,6 @@
 // via `.contains(...)` and make sure the dynamic semantics match.
 
 #![feature(exclusive_range_pattern)]
-#![allow(illegal_floating_point_literal_pattern)]
 #![allow(unreachable_patterns)]
 
 macro_rules! yes {