about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/coverage/mod.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 /compiler/rustc_mir_transform/src/coverage/mod.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 'compiler/rustc_mir_transform/src/coverage/mod.rs')
0 files changed, 0 insertions, 0 deletions