You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rust-jiff/0001-EPEL9-Ignore-doctests-...

31 lines
1.1 KiB

From 82676b976a5a6397eda4e83bcbf9af8953bfbdf3 Mon Sep 17 00:00:00 2001
From: "Benjamin A. Beasley" <code@musicinmybrain.net>
Date: Thu, 19 Sep 2024 06:59:15 -0400
Subject: [PATCH] EPEL9: Ignore doctests that require very recent Rust
compilers
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
In this crate, doctests and examples (but not the lib and integration tests) are allowed to use Rust features from versions newer than the MSRV. Its therefore necessary to ignore some of them on EPEL9. If this patch becomes too unwieldy, we could choose to start skipping doctests and/or examples there entirely.
---
src/lib.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lib.rs b/src/lib.rs
index b058186..5e791fd 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -262,7 +262,7 @@ println!("{zdt}");
You can eliminate the possibility of a panic at runtime by using `time` in
a `const` block:
-```
+```ignore
use jiff::{civil::time, Zoned};
let zdt = Zoned::now().with().time(const { time(14, 0, 0, 0) }).build()?;
--
2.46.0