]> git.lizzy.rs Git - rust.git/commit
tidy: forbid since values for features that point to the current release or future...
authorest31 <MTest31@outlook.com>
Mon, 15 Aug 2022 14:57:46 +0000 (16:57 +0200)
committerest31 <MTest31@outlook.com>
Sat, 27 Aug 2022 15:08:52 +0000 (17:08 +0200)
commitd06e0e53eb083895c0a98b918699e7047f7c87d7
treed0c51d579c9064dd8d495de0d2a2225ce43bbe0b
parent3b3f3b72c5f6ebee82a0530ae40284926bb193b3
tidy: forbid since values for features that point to the current release or future ones

It's a common phenomenon that feature stabilizations don't make it into
a particular release, but the version is still inaccurate. Often this
leads to subsequent changes to adjust/correct the version.

Instead, require people to put a placeholder that gets replaced during
beta branching time with the current rust version. That way, there is
no chance that an error can be introduced.

Usage of the placeholder is required on the nightly channel, and forbidden
on the stable and beta channels.
src/tools/tidy/src/features.rs
src/tools/tidy/src/features/version.rs
src/tools/tidy/src/lib.rs