]> git.lizzy.rs Git - rust.git/commit
Add illegal_floating_point_literal_pattern compat lint
authorest31 <MTest31@outlook.com>
Sat, 29 Apr 2017 07:15:07 +0000 (09:15 +0200)
committerest31 <MTest31@outlook.com>
Tue, 2 May 2017 17:59:22 +0000 (19:59 +0200)
commitde7dda7bf413dc214e3f1552d6cb3f8052283513
tree9c06491c00734f6c57b7a1c9c8f2d893577d354a
parented1f26ddda15b2bcf613a257e813e8b02ee14dff
Add illegal_floating_point_literal_pattern compat lint

Adds a compatibility lint to disallow floating point literals in
patterns like in match.

See the tracking issue #41620.
src/librustc_lint/builtin.rs
src/librustc_lint/lib.rs
src/test/compile-fail/issue-41255.rs [new file with mode: 0644]