diff --git a/src/internal.rs b/src/internal.rs index e5896799..bc431e69 100644 --- a/src/internal.rs +++ b/src/internal.rs @@ -47,7 +47,7 @@ impl Finish for IResult { /// Contains information on needed data if a parser returned `Incomplete` #[derive(Debug, PartialEq, Eq, Clone, Copy)] -#[cfg_attr(nightly, warn(rustdoc::missing_doc_code_examples))] +#[warn(rustdoc::missing_doc_code_examples))] pub enum Needed { /// Needs more data, but we do not know how much Unknown, @@ -99,7 +99,7 @@ impl Needed { /// See also: [`Finish`]. /// #[derive(Debug, Clone, PartialEq)] -#[cfg_attr(nightly, warn(rustdoc::missing_doc_code_examples))] +#[warn(rustdoc::missing_doc_code_examples))] pub enum Err { /// There was not enough data Incomplete(Needed), @@ -579,7 +579,7 @@ impl> Parser for Box { f: F, g: G, @@ -660,7 +660,7 @@ where } /// Implementation of `Parser::flat_map` -#[cfg_attr(nightly, warn(rustdoc::missing_doc_code_examples))] +#[warn(rustdoc::missing_doc_code_examples))] pub struct FlatMap { f: F, g: G, @@ -687,7 +687,7 @@ impl< } /// Implementation of `Parser::and_then` -#[cfg_attr(nightly, warn(rustdoc::missing_doc_code_examples))] +#[warn(rustdoc::missing_doc_code_examples))] pub struct AndThen { f: F, g: G, @@ -710,7 +710,7 @@ impl, G: Parser<>::Output, Error = { f: F, g: G, @@ -732,7 +732,7 @@ impl, F: Parser, G: Parser> Pars } /// Implementation of `Parser::or` -#[cfg_attr(nightly, warn(rustdoc::missing_doc_code_examples))] +#[warn(rustdoc::missing_doc_code_examples))] pub struct Or { f: F, g: G, @@ -761,7 +761,7 @@ impl< } /// Implementation of `Parser::into` -#[cfg_attr(nightly, warn(rustdoc::missing_doc_code_examples))] +#[warn(rustdoc::missing_doc_code_examples))] pub struct Into { f: F, phantom_out2: core::marker::PhantomData, diff --git a/src/lib.rs b/src/lib.rs index d6b5b15d..dd6620ce 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -379,7 +379,7 @@ #![cfg_attr(feature = "docsrs", feature(doc_cfg))] #![allow(clippy::doc_markdown)] #![deny(missing_docs)] -#[cfg_attr(nightly, warn(rustdoc::missing_doc_code_examples))] +#[warn(rustdoc::missing_doc_code_examples))] #[cfg(feature = "alloc")] #[macro_use] extern crate alloc; @@ -391,12 +391,12 @@ doc_comment::doctest!("../README.md"); /// Lib module to re-export everything needed from `std` or `core`/`alloc`. This is how `serde` does /// it, albeit there it is not public. -#[cfg_attr(nightly, allow(rustdoc::missing_doc_code_examples))] +#[allow(rustdoc::missing_doc_code_examples)] pub mod lib { /// `std` facade allowing `std`/`core` to be interchangeable. Reexports `alloc` crate optionally, /// as well as `core` or `std` #[cfg(not(feature = "std"))] - #[cfg_attr(nightly, allow(rustdoc::missing_doc_code_examples))] + #[allow(rustdoc::missing_doc_code_examples)] /// internal std exports for no_std compatibility pub mod std { #[doc(hidden)] @@ -418,7 +418,7 @@ pub mod lib { } #[cfg(feature = "std")] - #[cfg_attr(nightly, allow(rustdoc::missing_doc_code_examples))] + #[allow(rustdoc::missing_doc_code_examples)] /// internal std exports for no_std compatibility pub mod std { #[doc(hidden)]