diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2023-08-20 16:50:08 +0000 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2023-09-01 16:18:50 +0000 |
| commit | 905fd1ba17617c273f7ff04fbb23e7253ccd77c4 (patch) | |
| tree | 25ea47d8aefbc759c11cf82113d5df2bc59b76f7 | |
| parent | 6cec91d6470eebcc6dd16e15eaca09d39769a8e5 (diff) | |
| download | rust-905fd1ba17617c273f7ff04fbb23e7253ccd77c4.tar.gz rust-905fd1ba17617c273f7ff04fbb23e7253ccd77c4.zip | |
Support bootstrap.
| -rw-r--r-- | library/core/src/intrinsics/mir.rs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/library/core/src/intrinsics/mir.rs b/library/core/src/intrinsics/mir.rs index 02c6f0295fc..cab195dad9b 100644 --- a/library/core/src/intrinsics/mir.rs +++ b/library/core/src/intrinsics/mir.rs @@ -12,7 +12,8 @@ //! //! Typical usage will look like this: //! -//! ```rust +#![cfg_attr(bootstrap, doc = "```rust,ignore")] +#![cfg_attr(not(bootstrap), doc = "```rust")] //! #![feature(core_intrinsics, custom_mir)] //! #![allow(internal_features)] //! @@ -62,7 +63,8 @@ //! //! # Examples //! -//! ```rust +#![cfg_attr(bootstrap, doc = "```rust,ignore")] +#![cfg_attr(not(bootstrap), doc = "```rust")] //! #![feature(core_intrinsics, custom_mir)] //! #![allow(internal_features)] //! @@ -317,7 +319,8 @@ define!( /// /// # Examples /// - /// ```rust + #[cfg_attr(bootstrap, doc = "```rust,ignore")] + #[cfg_attr(not(bootstrap), doc = "```rust")] /// #![allow(internal_features)] /// #![feature(custom_mir, core_intrinsics)] /// |
