Skip to content

Commit 8b1504f

Browse files
zombiepigdragonrtzoeller
authored andcommitted
Ignore doctests for unexported macros
Due to rust-lang/rust#97030, cargo test will fail to doctest macros unless they are exported, breaking the examples for libc_bitflags! and libc_enum!. Adds `ignore` to the examples for these macros to stop tests from failing.
1 parent 7eb07b8 commit 8b1504f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/macros.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/// The `libc` crate must be in scope with the name `libc`.
66
///
77
/// # Example
8-
/// ```
8+
/// ```ignore
99
/// libc_bitflags!{
1010
/// pub struct ProtFlags: libc::c_int {
1111
/// PROT_NONE;
@@ -25,7 +25,7 @@
2525
/// various flags have different types, so we cast the broken ones to the right
2626
/// type.
2727
///
28-
/// ```
28+
/// ```ignore
2929
/// libc_bitflags!{
3030
/// pub struct SaFlags: libc::c_ulong {
3131
/// SA_NOCLDSTOP as libc::c_ulong;
@@ -66,7 +66,7 @@ macro_rules! libc_bitflags {
6666
/// The `libc` crate must be in scope with the name `libc`.
6767
///
6868
/// # Example
69-
/// ```
69+
/// ```ignore
7070
/// libc_enum!{
7171
/// pub enum ProtFlags {
7272
/// PROT_NONE,

0 commit comments

Comments
 (0)