Skip to content

Commit

Permalink
remove obsolete nightly check
Browse files Browse the repository at this point in the history
  • Loading branch information
Geal committed May 5, 2024
1 parent 4262fd8 commit 95477cf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
16 changes: 8 additions & 8 deletions src/internal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ impl<I, O, E> Finish<I, O, E> for IResult<I, O, E> {

/// 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,
Expand Down Expand Up @@ -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<Failure, Error = Failure> {
/// There was not enough data
Incomplete(Needed),
Expand Down Expand Up @@ -579,7 +579,7 @@ impl<I, O, E: ParseError<I>> Parser<I> for Box<dyn Parser<I, Output = O, Error =
}
*/
/// Implementation of `Parser::map`
#[cfg_attr(nightly, warn(rustdoc::missing_doc_code_examples))]
#[warn(rustdoc::missing_doc_code_examples))]
pub struct Map<F, G> {
f: F,
g: G,
Expand Down Expand Up @@ -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, G> {
f: F,
g: G,
Expand All @@ -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, G> {
f: F,
g: G,
Expand All @@ -710,7 +710,7 @@ impl<I, F: Parser<I>, G: Parser<<F as Parser<I>>::Output, Error = <F as Parser<I
}

/// Implementation of `Parser::and`
#[cfg_attr(nightly, warn(rustdoc::missing_doc_code_examples))]
#[warn(rustdoc::missing_doc_code_examples))]
pub struct And<F, G> {
f: F,
g: G,
Expand All @@ -732,7 +732,7 @@ impl<I, E: ParseError<I>, F: Parser<I, Error = E>, G: Parser<I, Error = E>> Pars
}

/// Implementation of `Parser::or`
#[cfg_attr(nightly, warn(rustdoc::missing_doc_code_examples))]
#[warn(rustdoc::missing_doc_code_examples))]
pub struct Or<F, G> {
f: F,
g: G,
Expand Down Expand Up @@ -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, O2, E2> {
f: F,
phantom_out2: core::marker::PhantomData<O2>,
Expand Down
8 changes: 4 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))]

Check failure on line 382 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Bench

mismatched closing delimiter: `)`

Check failure on line 382 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Bench

unexpected closing delimiter: `]`

Check failure on line 382 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test (stable, --features "std")

mismatched closing delimiter: `)`

Check failure on line 382 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test (stable, --features "std")

unexpected closing delimiter: `]`

Check failure on line 382 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Check formatting

mismatched closing delimiter: `)`

Check failure on line 382 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Check formatting

unexpected closing delimiter: `]`

Check failure on line 382 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test (stable, --no-default-features --features "alloc")

mismatched closing delimiter: `)`

Check failure on line 382 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test (stable, --no-default-features --features "alloc")

unexpected closing delimiter: `]`

Check failure on line 382 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test (1.65.0)

unexpected closing delimiter: `]`

Check failure on line 382 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test (1.65.0)

mismatched closing delimiter: `)`

Check failure on line 382 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test (nightly, --no-default-features --features "alloc")

mismatched closing delimiter: `)`

Check failure on line 382 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test (nightly, --no-default-features --features "alloc")

unexpected closing delimiter: `]`

Check failure on line 382 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test minimal rust version

unexpected closing delimiter: `]`

Check failure on line 382 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test minimal rust version

mismatched closing delimiter: `)`

Check failure on line 382 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test (nightly, --no-default-features)

mismatched closing delimiter: `)`

Check failure on line 382 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test (nightly, --no-default-features)

unexpected closing delimiter: `]`

Check failure on line 382 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test (stable)

mismatched closing delimiter: `)`

Check failure on line 382 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test (stable)

unexpected closing delimiter: `]`

Check failure on line 382 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Check formatting

mismatched closing delimiter: `)`

Check failure on line 382 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Check formatting

unexpected closing delimiter: `]`

Check failure on line 382 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Bench

mismatched closing delimiter: `)`

Check failure on line 382 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Bench

unexpected closing delimiter: `]`

Check failure on line 382 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Coverage

mismatched closing delimiter: `)`

Check failure on line 382 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test minimal rust version

unexpected closing delimiter: `]`

Check failure on line 382 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test minimal rust version

mismatched closing delimiter: `)`

Check failure on line 382 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Coverage

mismatched closing delimiter: `)`

Check failure on line 382 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test (nightly)

mismatched closing delimiter: `)`

Check failure on line 382 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test (nightly)

unexpected closing delimiter: `]`

Check failure on line 382 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test (nightly, --no-default-features)

mismatched closing delimiter: `)`

Check failure on line 382 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test (nightly, --no-default-features)

unexpected closing delimiter: `]`

Check failure on line 382 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test (beta)

mismatched closing delimiter: `)`

Check failure on line 382 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test (beta)

unexpected closing delimiter: `]`

Check failure on line 382 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test (stable, --no-default-features)

mismatched closing delimiter: `)`

Check failure on line 382 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test (stable, --no-default-features)

unexpected closing delimiter: `]`

Check failure on line 382 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test (1.65.0)

unexpected closing delimiter: `]`

Check failure on line 382 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test (1.65.0)

mismatched closing delimiter: `)`

Check failure on line 382 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test (nightly, --no-default-features --features "alloc")

mismatched closing delimiter: `)`

Check failure on line 382 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test (nightly, --no-default-features --features "alloc")

unexpected closing delimiter: `]`

Check failure on line 382 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test (stable, --features "std")

mismatched closing delimiter: `)`

Check failure on line 382 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test (stable, --features "std")

unexpected closing delimiter: `]`
#[cfg(feature = "alloc")]
#[macro_use]
extern crate alloc;
Expand All @@ -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)]
Expand All @@ -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)]
Expand Down

0 comments on commit 95477cf

Please sign in to comment.