cargo test
fails in doctests (nix-compat-derive)
#417
Opened by flokli at
running 2 tests test nix-compat/src/nar/writer/sync.rs - nar::writer::sync (line 11) ... ok test nix-compat/src/nar/writer/async.rs - nar::writer::r#async (line 11) ... ok test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.09s Doc-tests nix_compat_derive running 12 tests test nix-compat-derive/src/lib.rs - (line 53) ... FAILED test nix-compat-derive/src/lib.rs - (line 198) ... ok test nix-compat-derive/src/lib.rs - (line 141) ... ok test nix-compat-derive/src/lib.rs - (line 176) ... ok test nix-compat-derive/src/lib.rs - (line 23) ... ok test nix-compat-derive/src/lib.rs - (line 87) ... ok test nix-compat-derive/src/lib.rs - (line 242) ... ok test nix-compat-derive/src/lib.rs - (line 40) ... ok test nix-compat-derive/src/lib.rs - (line 219) ... ok test nix-compat-derive/src/lib.rs - (line 30) ... ok test nix-compat-derive/src/lib.rs - (line 116) ... ok test nix-compat-derive/src/lib.rs - nix_deserialize_remote (line 327) ... ok failures: ---- nix-compat-derive/src/lib.rs - (line 53) stdout ---- error[E0658]: exclusive range pattern syntax is experimental --> nix-compat-derive/src/lib.rs:68:19 | 18 | #[nix(version="..10")] // <-- This is a variant attribute | ^^^^^^ | = note: see issue #37854 <https://github.com/rust-lang/rust/issues/37854> for more information = help: use an inclusive range pattern, like N..=M error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0658`. Couldn't compile the test. failures: nix-compat-derive/src/lib.rs - (line 53) test result: FAILED. 11 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.78s error: doctest failed, to rerun pass `-p nix-compat-derive --doc`
This was fixed in https://cl.tvl.fyi/c/depot/+/12375, closing.
flokli at 2024-08-30T10·15+00
- flokli closed this issue at 2024-08-30T10·15+00