Skip to content

Commit

Permalink
Ignore doctests for unexported macros
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
zombiepigdragon authored and rtzoeller committed Jul 17, 2022
1 parent cb8b4c0 commit 4e36069
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ macro_rules! feature {
/// The `libc` crate must be in scope with the name `libc`.
///
/// # Example
/// ```
/// ```ignore
/// libc_bitflags!{
/// pub struct ProtFlags: libc::c_int {
/// PROT_NONE;
Expand All @@ -39,7 +39,7 @@ macro_rules! feature {
/// various flags have different types, so we cast the broken ones to the right
/// type.
///
/// ```
/// ```ignore
/// libc_bitflags!{
/// pub struct SaFlags: libc::c_ulong {
/// SA_NOCLDSTOP as libc::c_ulong;
Expand Down Expand Up @@ -80,7 +80,7 @@ macro_rules! libc_bitflags {
/// The `libc` crate must be in scope with the name `libc`.
///
/// # Example
/// ```
/// ```ignore
/// libc_enum!{
/// pub enum ProtFlags {
/// PROT_NONE,
Expand Down

0 comments on commit 4e36069

Please sign in to comment.