about summary refs log tree commit diff
path: root/tests/coverage/branch/lazy-boolean.coverage
diff options
context:
space:
mode:
authorCatherine Flores <catherine.3.flores@gmail.com>2024-11-17 04:24:43 +0000
committerGitHub <noreply@github.com>2024-11-17 04:24:43 +0000
commit8698c31f88763c3499b2f18215cf6f8d474e09f9 (patch)
treeb16633fa435f900b08ef0f23cb20e69c1424af28 /tests/coverage/branch/lazy-boolean.coverage
parent5f05ce4c70b39c61265873fa1bc680863132e7ab (diff)
parent88598473733d8004d2366a88471fc922a9bc795d (diff)
downloadrust-8698c31f88763c3499b2f18215cf6f8d474e09f9.tar.gz
rust-8698c31f88763c3499b2f18215cf6f8d474e09f9.zip
Don't lint CStr literals, do lint float literals in `redundant_guards` (#13698)
Two changes to `redundant_guards`:

- Lint float literals. We used to do that before but that was changed in
#11305 because at the time there was a future compat warning and it was
planned to make pattern matching floats a hard error.

In rust-lang/rust#116284 it was decided to actually remove the lint and
only make matching `NAN` specifically a hard error. The `NAN` part isn't
relevant/important here because this PR only changes what literals are
warned and `f64::NAN` isn't a literal, but I've added a test anyway to
make sure we continue to not lint there.
- Don't lint CStr literals because that can't be a pattern right now
(fixes #13681)

changelog: none
Diffstat (limited to 'tests/coverage/branch/lazy-boolean.coverage')
0 files changed, 0 insertions, 0 deletions