Skip to content

Commit 905fd1b

Browse files
committed
Support bootstrap.
1 parent 6cec91d commit 905fd1b

File tree

1 file changed

+6
-3
lines changed
  • library/core/src/intrinsics

1 file changed

+6
-3
lines changed

library/core/src/intrinsics/mir.rs

+6-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
//!
1313
//! Typical usage will look like this:
1414
//!
15-
//! ```rust
15+
#![cfg_attr(bootstrap, doc = "```rust,ignore")]
16+
#![cfg_attr(not(bootstrap), doc = "```rust")]
1617
//! #![feature(core_intrinsics, custom_mir)]
1718
//! #![allow(internal_features)]
1819
//!
@@ -62,7 +63,8 @@
6263
//!
6364
//! # Examples
6465
//!
65-
//! ```rust
66+
#![cfg_attr(bootstrap, doc = "```rust,ignore")]
67+
#![cfg_attr(not(bootstrap), doc = "```rust")]
6668
//! #![feature(core_intrinsics, custom_mir)]
6769
//! #![allow(internal_features)]
6870
//!
@@ -317,7 +319,8 @@ define!(
317319
///
318320
/// # Examples
319321
///
320-
/// ```rust
322+
#[cfg_attr(bootstrap, doc = "```rust,ignore")]
323+
#[cfg_attr(not(bootstrap), doc = "```rust")]
321324
/// #![allow(internal_features)]
322325
/// #![feature(custom_mir, core_intrinsics)]
323326
///

0 commit comments

Comments
 (0)