Skip to content

Commit 218e5b2

Browse files
author
Lukas Markeffsky
committed
fix custom mir doc tests
1 parent 4b1f736 commit 218e5b2

File tree

1 file changed

+4
-2
lines changed
  • library/core/src/intrinsics

1 file changed

+4
-2
lines changed

library/core/src/intrinsics/mir.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@
6060
//!
6161
//! # Examples
6262
//!
63-
//! ```rust
63+
#![cfg_attr(bootstrap, doc = "```rust,compile_fail")]
64+
#![cfg_attr(not(bootstrap), doc = "```rust")]
6465
//! #![feature(core_intrinsics, custom_mir)]
6566
//!
6667
//! extern crate core;
@@ -291,7 +292,8 @@ define!(
291292
///
292293
/// # Examples
293294
///
294-
/// ```rust
295+
#[cfg_attr(bootstrap, doc = "```rust,compile_fail")]
296+
#[cfg_attr(not(bootstrap), doc = "```rust")]
295297
/// #![feature(custom_mir, core_intrinsics)]
296298
///
297299
/// extern crate core;

0 commit comments

Comments
 (0)