Skip to content

Commit c7b4e37

Browse files
committed
core doctests support panic=abort
1 parent 2be0f55 commit c7b4e37

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • library/core/src/intrinsics

library/core/src/intrinsics/mir.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@
6262
//!
6363
//! # Examples
6464
//!
65-
//! ```rust
65+
#![cfg_attr(panic = "unwind", doc = "```rust")]
66+
// This test can't support panic=abort because it generates an UnwindContinue MIR terminator.
67+
#![cfg_attr(panic = "abort", doc = "```ignore")]
6668
//! #![feature(core_intrinsics, custom_mir)]
6769
//! #![allow(internal_features)]
6870
//! #![allow(unused_assignments)]

0 commit comments

Comments
 (0)