Skip to content

Commit

Permalink
Fix build failure due to missing_docs lint
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Sep 6, 2021
1 parent 0c7e244 commit d6f07f8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
4 changes: 2 additions & 2 deletions library/core/src/str/pattern.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,13 +161,13 @@ pub trait Pattern<'a>: Sized {
pub enum SearchStep {
/// Expresses that a match of the pattern has been found at
/// `haystack[a..b]`.
Match(usize, usize),
Match(#[allow(missing_docs)] usize, #[allow(missing_docs)] usize),
/// Expresses that `haystack[a..b]` has been rejected as a possible match
/// of the pattern.
///
/// Note that there might be more than one `Reject` between two `Match`es,
/// there is no requirement for them to be combined into one.
Reject(usize, usize),
Reject(#[allow(missing_docs)] usize, #[allow(missing_docs)] usize),
/// Expresses that every byte of the haystack has been visited, ending
/// the iteration.
Done,
Expand Down
16 changes: 12 additions & 4 deletions library/std/src/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,12 @@ pub enum Prefix<'a> {
/// server's hostname and a share name.
#[stable(feature = "rust1", since = "1.0.0")]
VerbatimUNC(
#[stable(feature = "rust1", since = "1.0.0")] &'a OsStr,
#[stable(feature = "rust1", since = "1.0.0")] &'a OsStr,
#[stable(feature = "rust1", since = "1.0.0")]
#[allow(missing_docs)]
&'a OsStr,
#[stable(feature = "rust1", since = "1.0.0")]
#[allow(missing_docs)]
&'a OsStr,
),

/// Verbatim disk prefix, e.g., `\\?\C:`.
Expand All @@ -171,8 +175,12 @@ pub enum Prefix<'a> {
/// UNC prefixes consist of the server's hostname and a share name.
#[stable(feature = "rust1", since = "1.0.0")]
UNC(
#[stable(feature = "rust1", since = "1.0.0")] &'a OsStr,
#[stable(feature = "rust1", since = "1.0.0")] &'a OsStr,
#[stable(feature = "rust1", since = "1.0.0")]
#[allow(missing_docs)]
&'a OsStr,
#[stable(feature = "rust1", since = "1.0.0")]
#[allow(missing_docs)]
&'a OsStr,
),

/// Prefix `C:` for the given disk drive.
Expand Down

0 comments on commit d6f07f8

Please sign in to comment.