mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-01 04:27:38 +00:00

Approved in [ACP 491](https://github.com/rust-lang/libs-team/issues/491). Remove the `unsafe` on `core::intrinsics::breakpoint()`, since it's a safe intrinsic to call and has no prerequisites. (Thanks to @zachs18 for figuring out the `bootstrap`/`not(bootstrap)` logic.)
7 lines
250 B
Rust
7 lines
250 B
Rust
#![feature(intrinsics)]
|
|
extern "rust-intrinsic" {
|
|
pub static atomic_singlethreadfence_seqcst : unsafe extern "rust-intrinsic" fn();
|
|
//~^ ERROR intrinsic must be a function [E0622]
|
|
}
|
|
fn main() { unsafe { atomic_singlethreadfence_seqcst(); } }
|