about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBrian Olsen <brian@maven-group.org>2024-08-28T13·39+0200
committerclbot <clbot@tvl.fyi>2024-08-28T14·08+0000
commit743407e7abf9cf56274c8c9bcb1edb10d8f943ed (patch)
tree741568804ca3aaccfd9f036eda2c07384cab66bb
parent7bf6563da1b6c2989289c5a753e1dd806aae4570 (diff)
fix(tvix/nix-compat-derive): Fix doctest for Rust older than 1.80 r/8601
Exclusive range patterns were stabilized in Rust version 1.80 but Tvix
still uses Rust 1.79 and so would fail this one test when you ran
doctests from `mg shell //tvix:shell`.

It was not caught by CI because that does not currently run doctests.

The fix is just to use an inclusive pattern instead.

Fixes: b/417
Change-Id: Ifea7a3b84bb8f6f8c76e277979833713bdf51f46
Reviewed-on: https://cl.tvl.fyi/c/depot/+/12375
Autosubmit: Brian Olsen <me@griff.name>
Reviewed-by: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
-rw-r--r--tvix/nix-compat-derive/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tvix/nix-compat-derive/src/lib.rs b/tvix/nix-compat-derive/src/lib.rs
index 5c0dd5c2d480..59ed9a4f170c 100644
--- a/tvix/nix-compat-derive/src/lib.rs
+++ b/tvix/nix-compat-derive/src/lib.rs
@@ -64,7 +64,7 @@
 //! #[derive(NixDeserialize)]
 //! #[nix(crate="nix_compat")] // <-- This is also a container attribute
 //! enum E {
-//!     #[nix(version="..10")] // <-- This is a variant attribute
+//!     #[nix(version="..=9")] // <-- This is a variant attribute
 //!     A(u64),
 //!     #[nix(version="10..")] // <-- This is also a variant attribute
 //!     B(String),