Remove some dead or leftover code related to rustc-intrinsic abi removal

This commit is contained in:
Oli Scherer 2025-04-08 10:52:16 +00:00
parent c6c179662d
commit b2aa9d0620
6 changed files with 13 additions and 60 deletions

View file

@ -1,14 +0,0 @@
#![feature(intrinsics)]
extern "C" {
#[rustc_intrinsic]
pub static atomic_singlethreadfence_seqcst: unsafe extern "C" fn();
//~^ ERROR intrinsic must be a function [E0622]
}
fn main() {
unsafe {
atomic_singlethreadfence_seqcst();
}
}

View file

@ -1,9 +0,0 @@
error[E0622]: intrinsic must be a function
--> $DIR/E0622.rs:6:5
|
LL | pub static atomic_singlethreadfence_seqcst: unsafe extern "C" fn();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected a function
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0622`.