]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #5752 - chrisduerr:pedantic_ranges, r=flip1995
authorPhilipp Krones <hello@philkrones.com>
Mon, 13 Jul 2020 13:59:42 +0000 (15:59 +0200)
committerGitHub <noreply@github.com>
Mon, 13 Jul 2020 13:59:42 +0000 (15:59 +0200)
Move range_minus_one to pedantic

This moves the range_minus_one lint to the pedantic category, so there
will not be any warnings emitted by default. This should work around
problems where the suggestion is impossible to resolve due to the range
consumer only accepting a specific range implementation, rather than the
`RangeBounds` trait (see #3307).

While it is possible to work around this by extracting the boundary into
a variable, I don't think clippy should encourage people to disable or
work around lints, but instead the lints should be fixable. So hopefully
this will help until a proper implementation checks what the range is
used for.

*Please keep the line below*
changelog: move [`range_minus_one`] to pedantic

1  2 
clippy_lints/src/lib.rs
src/lintlist/mod.rs

Simple merge
Simple merge