Skip to content

Commit 0c41e3d

Browse files
committed
ignore doctests for non-exported macro_rules! macros
This fixes building doctests with Rust 1.62, which now actually runs doctests for non-exported macros: rust-lang/rust#97030
1 parent 7a52b57 commit 0c41e3d

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

alga/src/general/one_operator.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ pub trait AbstractQuasigroup<O: Operator>:
8585
/// Implements the quasigroup trait for types provided.
8686
/// # Examples
8787
///
88-
/// ```
88+
/// ```ignore
8989
/// # #[macro_use]
9090
/// # extern crate alga;
9191
/// # use alga::general::{AbstractMagma, AbstractQuasigroup, Additive, TwoSidedInverse};
@@ -146,7 +146,7 @@ pub trait AbstractSemigroup<O: Operator>: PartialEq + AbstractMagma<O> {
146146
/// Implements the semigroup trait for types provided.
147147
/// # Examples
148148
///
149-
/// ```
149+
/// ```ignore
150150
/// # #[macro_use]
151151
/// # extern crate alga;
152152
/// # use alga::general::{AbstractMagma, AbstractSemigroup, Additive};
@@ -191,7 +191,7 @@ pub trait AbstractLoop<O: Operator>: AbstractQuasigroup<O> + Identity<O> {}
191191
/// Implements the loop trait for types provided.
192192
/// # Examples
193193
///
194-
/// ```
194+
/// ```ignore
195195
/// # #[macro_use]
196196
/// # extern crate alga;
197197
/// # use alga::general::{AbstractMagma, AbstractLoop, Additive, TwoSidedInverse, Identity};
@@ -262,7 +262,7 @@ pub trait AbstractMonoid<O: Operator>: AbstractSemigroup<O> + Identity<O> {
262262
/// Implements the monoid trait for types provided.
263263
/// # Examples
264264
///
265-
/// ```
265+
/// ```ignore
266266
/// # #[macro_use]
267267
/// # extern crate alga;
268268
/// # use alga::general::{AbstractMagma, AbstractMonoid, Additive, Identity};
@@ -299,7 +299,7 @@ pub trait AbstractGroup<O: Operator>: AbstractLoop<O> + AbstractMonoid<O> {}
299299
/// Implements the group trait for types provided.
300300
/// # Examples
301301
///
302-
/// ```
302+
/// ```ignore
303303
/// # #[macro_use]
304304
/// # extern crate alga;
305305
/// # use alga::general::{AbstractMagma, AbstractGroup, Additive, TwoSidedInverse, Identity};
@@ -369,7 +369,7 @@ pub trait AbstractGroupAbelian<O: Operator>: AbstractGroup<O> {
369369
/// Implements the Abelian group trait for types provided.
370370
/// # Examples
371371
///
372-
/// ```
372+
/// ```ignore
373373
/// # #[macro_use]
374374
/// # extern crate alga;
375375
/// # use alga::general::{AbstractMagma, AbstractGroupAbelian, Additive, TwoSidedInverse, Identity};

alga/src/general/two_operators.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ pub trait AbstractRing<A: Operator = Additive, M: Operator = Multiplicative>:
6868
/// Implements the ring trait for types provided.
6969
/// # Examples
7070
///
71-
/// ```
71+
/// ```ignore
7272
/// # #[macro_use]
7373
/// # extern crate alga;
7474
/// # use alga::general::{AbstractMagma, AbstractRing, Additive, Multiplicative, TwoSidedInverse, Identity};
@@ -158,7 +158,7 @@ pub trait AbstractRingCommutative<A: Operator = Additive, M: Operator = Multipli
158158
/// Implements the commutative ring trait for types provided.
159159
/// # Examples
160160
///
161-
/// ```
161+
/// ```ignore
162162
/// # #[macro_use]
163163
/// # extern crate alga;
164164
/// # use alga::general::{AbstractMagma, AbstractRingCommutative, Additive, Multiplicative, TwoSidedInverse, Identity};
@@ -218,7 +218,7 @@ pub trait AbstractField<A: Operator = Additive, M: Operator = Multiplicative>:
218218
/// Implements the field trait for types provided.
219219
/// # Examples
220220
///
221-
/// ```
221+
/// ```ignore
222222
/// # #[macro_use]
223223
/// # extern crate alga;
224224
/// # use alga::general::{AbstractMagma, AbstractField, Additive, Multiplicative, TwoSidedInverse, Identity};

alga/src/macros.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@
1616
/// Implements empty traits aka marker traits for types provided.
1717
/// # Examples
1818
///
19-
/// ```
19+
/// ```ignore
2020
/// # #[macro_use]
2121
/// # extern crate alga;
2222
/// # fn main() {}
2323
/// trait Marker {}
2424
/// struct Struct;
2525
/// impl_marker!(Marker; u32; Struct);
2626
/// ```
27-
/// ```
27+
/// ```ignore
2828
/// # #[macro_use]
2929
/// # extern crate alga;
3030
/// # use std::fmt::Debug;

0 commit comments

Comments
 (0)