]> git.lizzy.rs Git - rust.git/commit
Fix clippy's const fn stability check for CURRENT_RUSTC_VERSION
authorNilstrieb <48135649+Nilstrieb@users.noreply.github.com>
Fri, 23 Sep 2022 19:04:54 +0000 (21:04 +0200)
committerNilstrieb <48135649+Nilstrieb@users.noreply.github.com>
Fri, 23 Sep 2022 19:04:54 +0000 (21:04 +0200)
commit66484c0a21b840b30f865e92fdd5b3bad877816f
treee2d5eba90157aa2b2d43eb10d960bd3212be1310
parentaa35ab81ea4bd427a86e0c781c342835a020e6fe
Fix clippy's const fn stability check for CURRENT_RUSTC_VERSION

Since clippy can use a projects MSRV for its lints, it might not want
to consider functions as const stable if they have been added lately.

Functions that have been stabilized this version use
CURRENT_RUSTC_VERSION as their version, which gets then turned into the
current version, which might be something like `1.66.0-dev`. The version
parser cannot deal with this version, so it has to be stripped off.
src/tools/clippy/clippy_utils/src/qualify_min_const_fn.rs