incompatible_msrv false negative: tests #14277
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-negative
Issue: The lint should have been triggered on code, but wasn't
Summary
I disagree with the resolution of #12257, and think that
incompatible_msrv
should apply to tests. Given the conflicting desires, I think it would make sense to provide a config option for this lint.I would like something akin to the following:
Background: jj currently has an MSRV of
1.76
. However, it's encouraged to use newer / nightly compilers during development, to take advantage of speed improvements / parallel frontend / etc. As such, they do not force a version usingrust-toolchain.toml
. A PRs that added arust-toolchain.toml
pin was closed under the assumption thatincompatible_msrv
would help with this (jj-vcs/jj#1913 (comment)).#12257 makes the argument:
However, tests are compiled when the tests are ran in CI. We would like to keep the CI pinned to MSRV, and do not want to have separate
Build (MSRV)
andTest (latest stable)
CI jobs.Lint Name
incompatible_msrv
Reproducer
$ cargo clippy --tests # no output...
Version
The text was updated successfully, but these errors were encountered: