Closed
Description
This is with 1.48.0-beta.8, and previously all passed in 1.47.0. On Debian I see this failure on all architectures.
test [ui] ui/feature-gates/feature-gate-cfg-version.rs ... FAILED
------------------------------------------
diff of stderr:
118 = note: see issue #64796 <https://github.com/rust-lang/rust/issues/64796> for more information
119 = help: add `#![feature(cfg_version)]` to the crate attributes to enable
120
+ error: invalid version literal
+ --> $DIR/feature-gate-cfg-version.rs:30:15
+ |
+ LL | #[cfg(version("1.65536.2"))]
+ | ^^^^^^^^^^^
+
121 error[E0658]: `cfg(version)` is experimental and subject to change
122 --> $DIR/feature-gate-cfg-version.rs:40:18
123 |
127 = note: see issue #64796 <https://github.com/rust-lang/rust/issues/64796> for more information
128 = help: add `#![feature(cfg_version)]` to the crate attributes to enable
129
- error: aborting due to 16 previous errors
+ error[E0425]: cannot find function `version_check_bug` in this scope
+ --> $DIR/feature-gate-cfg-version.rs:37:5
+ |
+ LL | version_check_bug();
+ | ^^^^^^^^^^^^^^^^^ not found in this scope
131
- For more information about this error, try `rustc --explain E0658`.
+ error: aborting due to 18 previous errors
+
+ Some errors have detailed explanations: E0425, E0658.
+ For more information about an error, try `rustc --explain E0425`.
133
It seems the failure is due to version_check
being upgraded from 0.9.1 to 0.9.2 which now treats 1.65536.2 as malformed for some reason, even though I can't see this mentioned as part of https://semver.org/
SergioBenitez/version_check@v0.9.1...v0.9.2
Shouldn't this have been caught by rust CI, or is this not run on beta releases?