1
Fork 0

remove #[cmse_nonsecure_entry]

This commit is contained in:
Folkert 2024-07-31 21:04:06 +02:00 committed by Folkert de Vries
parent 1ddd67a79a
commit 5722a80782
23 changed files with 50 additions and 162 deletions

View file

@ -3,11 +3,10 @@ extension.
Erroneous code example:
```compile_fail,E0775
```ignore (no longer emitted)
#![feature(cmse_nonsecure_entry)]
#[cmse_nonsecure_entry]
pub extern "C" fn entry_function() {}
pub extern "C-cmse-nonsecure-entry" fn entry_function() {}
```
To fix this error, compile your code for a Rust target that supports the

View file

@ -1,8 +1,10 @@
#### Note: this error code is no longer emitted by the compiler.
`#[cmse_nonsecure_entry]` functions require a C ABI
Erroneous code example:
```compile_fail,E0776
```ignore (no longer emitted)
#![feature(cmse_nonsecure_entry)]
#[no_mangle]

View file

@ -681,4 +681,5 @@ E0800: 0800,
// E0723, // unstable feature in `const` context
// E0738, // Removed; errored on `#[track_caller] fn`s in `extern "Rust" { ... }`.
// E0744, // merged into E0728
// E0776, // Removed; cmse_nonsecure_entry is now `C-cmse-nonsecure-entry`
// E0796, // unused error code. We use `static_mut_refs` lint instead.