Skip to content

Commit d6f07f8

Browse files
Fix build failure due to missing_docs lint
1 parent 0c7e244 commit d6f07f8

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

library/core/src/str/pattern.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,13 +161,13 @@ pub trait Pattern<'a>: Sized {
161161
pub enum SearchStep {
162162
/// Expresses that a match of the pattern has been found at
163163
/// `haystack[a..b]`.
164-
Match(usize, usize),
164+
Match(#[allow(missing_docs)] usize, #[allow(missing_docs)] usize),
165165
/// Expresses that `haystack[a..b]` has been rejected as a possible match
166166
/// of the pattern.
167167
///
168168
/// Note that there might be more than one `Reject` between two `Match`es,
169169
/// there is no requirement for them to be combined into one.
170-
Reject(usize, usize),
170+
Reject(#[allow(missing_docs)] usize, #[allow(missing_docs)] usize),
171171
/// Expresses that every byte of the haystack has been visited, ending
172172
/// the iteration.
173173
Done,

library/std/src/path.rs

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,12 @@ pub enum Prefix<'a> {
147147
/// server's hostname and a share name.
148148
#[stable(feature = "rust1", since = "1.0.0")]
149149
VerbatimUNC(
150-
#[stable(feature = "rust1", since = "1.0.0")] &'a OsStr,
151-
#[stable(feature = "rust1", since = "1.0.0")] &'a OsStr,
150+
#[stable(feature = "rust1", since = "1.0.0")]
151+
#[allow(missing_docs)]
152+
&'a OsStr,
153+
#[stable(feature = "rust1", since = "1.0.0")]
154+
#[allow(missing_docs)]
155+
&'a OsStr,
152156
),
153157

154158
/// Verbatim disk prefix, e.g., `\\?\C:`.
@@ -171,8 +175,12 @@ pub enum Prefix<'a> {
171175
/// UNC prefixes consist of the server's hostname and a share name.
172176
#[stable(feature = "rust1", since = "1.0.0")]
173177
UNC(
174-
#[stable(feature = "rust1", since = "1.0.0")] &'a OsStr,
175-
#[stable(feature = "rust1", since = "1.0.0")] &'a OsStr,
178+
#[stable(feature = "rust1", since = "1.0.0")]
179+
#[allow(missing_docs)]
180+
&'a OsStr,
181+
#[stable(feature = "rust1", since = "1.0.0")]
182+
#[allow(missing_docs)]
183+
&'a OsStr,
176184
),
177185

178186
/// Prefix `C:` for the given disk drive.

0 commit comments

Comments
 (0)