Compare commits

..

No commits in common. 'epel10' and 'epel9' have entirely different histories.

@ -1,48 +0,0 @@
From 58396cbc2d0fe7ca7919e70a0fd0229963f6484a Mon Sep 17 00:00:00 2001
From: Fabio Valentini <decathorpe@gmail.com>
Date: Thu, 8 Aug 2024 21:37:48 +0200
Subject: [PATCH] Skip doctests that don't compile with Rust 1.80+
---
src/arr.rs | 4 ++--
src/lib.rs | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/arr.rs b/src/arr.rs
index cdcc038..b085043 100644
--- a/src/arr.rs
+++ b/src/arr.rs
@@ -81,7 +81,7 @@ mod doctests_only {
/// }
/// ```
///
- /// ```rust
+ /// ```compile_fail
/// #[macro_use] extern crate generic_array;
/// fn main() {
/// fn unsound_lifetime_extension<'a, A>(a: &'a A) -> &'a A {
@@ -112,7 +112,7 @@ mod doctests_only {
/// }
/// ```
///
- /// ```rust
+ /// ```compile_fail
/// #[macro_use] extern crate generic_array;
/// fn main() {
/// fn unsound_lifetime_extension<'a, A>(a: &'a A) -> &'a A {
diff --git a/src/lib.rs b/src/lib.rs
index 14a2797..a4cdf00 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -2,7 +2,7 @@
//! Core Rust array types `[T; N]` can't be used generically with
//! respect to `N`, so for example this:
//!
-//! ```rust{compile_fail}
+//! ```rust,ignore
//! struct Foo<T, N> {
//! data: [T; N]
//! }
--
2.46.0

@ -12,8 +12,6 @@ Summary: Generic types implementing functionality of arrays
License: MIT
URL: https://crates.io/crates/generic-array
Source: %{crates_source}
# * skip some doctests that fail with syntax errors in Rust 1.80+
Patch: 0001-Skip-doctests-that-don-t-compile-with-Rust-1.80.patch
BuildRequires: rust-packaging >= 21

Loading…
Cancel
Save