Skip to content

Commit 65a770c

Browse files
committed
Handle bootstrap in doc comment.
1 parent 9f73f16 commit 65a770c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

library/core/src/primitive_docs.rs

+1
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ mod prim_bool {}
130130
/// [`Result<String, !>`] which we can unpack like this:
131131
///
132132
/// ```
133+
/// # #![cfg_attr(bootstrap, feature(exhaustive_patterns))]
133134
/// use std::str::FromStr;
134135
/// let Ok(s) = String::from_str("hello");
135136
/// ```

library/std/src/primitive_docs.rs

+1
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ mod prim_bool {}
130130
/// [`Result<String, !>`] which we can unpack like this:
131131
///
132132
/// ```
133+
/// # #![cfg_attr(bootstrap, feature(exhaustive_patterns))]
133134
/// use std::str::FromStr;
134135
/// let Ok(s) = String::from_str("hello");
135136
/// ```

0 commit comments

Comments
 (0)