Skip to content

Commit

Permalink
remove obsolete nightly check (#1748)
Browse files Browse the repository at this point in the history
* remove obsolete nightly check

* fix

* remove entirely
  • Loading branch information
Geal committed May 5, 2024
1 parent 4262fd8 commit d8e67fe
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 13 deletions.
8 changes: 0 additions & 8 deletions src/internal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ 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))]
pub enum Needed {
/// Needs more data, but we do not know how much
Unknown,
Expand Down Expand Up @@ -99,7 +98,6 @@ impl Needed {
/// See also: [`Finish`].
///
#[derive(Debug, Clone, PartialEq)]
#[cfg_attr(nightly, 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 +577,6 @@ 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))]
pub struct Map<F, G> {
f: F,
g: G,
Expand Down Expand Up @@ -660,7 +657,6 @@ where
}

/// Implementation of `Parser::flat_map`
#[cfg_attr(nightly, warn(rustdoc::missing_doc_code_examples))]
pub struct FlatMap<F, G> {
f: F,
g: G,
Expand All @@ -687,7 +683,6 @@ impl<
}

/// Implementation of `Parser::and_then`
#[cfg_attr(nightly, warn(rustdoc::missing_doc_code_examples))]
pub struct AndThen<F, G> {
f: F,
g: G,
Expand All @@ -710,7 +705,6 @@ 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))]
pub struct And<F, G> {
f: F,
g: G,
Expand All @@ -732,7 +726,6 @@ 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))]
pub struct Or<F, G> {
f: F,
g: G,
Expand Down Expand Up @@ -761,7 +754,6 @@ impl<
}

/// Implementation of `Parser::into`
#[cfg_attr(nightly, warn(rustdoc::missing_doc_code_examples))]
pub struct Into<F, O2, E2> {
f: F,
phantom_out2: core::marker::PhantomData<O2>,
Expand Down
4 changes: 0 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,6 @@
#![cfg_attr(feature = "docsrs", feature(doc_cfg))]
#![allow(clippy::doc_markdown)]
#![deny(missing_docs)]
#[cfg_attr(nightly, warn(rustdoc::missing_doc_code_examples))]
#[cfg(feature = "alloc")]
#[macro_use]
extern crate alloc;
Expand All @@ -391,12 +390,10 @@ 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))]
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))]
/// internal std exports for no_std compatibility
pub mod std {
#[doc(hidden)]
Expand All @@ -418,7 +415,6 @@ pub mod lib {
}

#[cfg(feature = "std")]
#[cfg_attr(nightly, allow(rustdoc::missing_doc_code_examples))]
/// internal std exports for no_std compatibility
pub mod std {
#[doc(hidden)]
Expand Down
2 changes: 1 addition & 1 deletion src/multi/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ where
/// [`cut`][crate::combinator::cut].
///
/// # Arguments
/// * `sep` Parses the separator between list elements. Must be consuming.
/// * `sep` Parses the separator between list elements. Must be consuming.
/// * `f` Parses the elements of the list.
///
/// ```rust
Expand Down

0 comments on commit d8e67fe

Please sign in to comment.