diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-02-05 11:07:26 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-05 11:07:26 +0100 |
| commit | ed27148812cd3652eaa97191422328812a28149c (patch) | |
| tree | 618ec7d42454d520d63ed1154ef05dc7f418bc80 /tests/ui/union | |
| parent | fd8ea258824020fd97b971caec8e2b9d232d8092 (diff) | |
| parent | 9f14fc4af4554b5ae8b727ae68460777051f1f74 (diff) | |
| download | rust-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/union')
| -rw-r--r-- | tests/ui/union/union-pat-refutability.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/ui/union/union-pat-refutability.rs b/tests/ui/union/union-pat-refutability.rs index 17ac6c6dfa9..edcc1add38f 100644 --- a/tests/ui/union/union-pat-refutability.rs +++ b/tests/ui/union/union-pat-refutability.rs @@ -1,7 +1,6 @@ // run-pass #![allow(dead_code)] -#![allow(illegal_floating_point_literal_pattern)] #[repr(u32)] enum Tag { |
