Skip to content

Commit a85ea91

Browse files
committed
ignore code blocks in unused error message code
1 parent 80f7c18 commit a85ea91

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

compiler/rustc_error_codes/src/error_codes/E0775.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ extension.
33

44
Erroneous code example:
55

6-
```compile_fail,E0775
6+
```ignore (no longer emitted)
77
#![feature(cmse_nonsecure_entry)]
88
99
pub extern "C-cmse-nonsecure-entry" fn entry_function() {}

compiler/rustc_error_codes/src/error_codes/E0776.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
Erroneous code example:
66

7-
```
7+
```ignore (no longer emitted)
88
#![feature(cmse_nonsecure_entry)]
99
1010
#[no_mangle]
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,22 @@
1-
//@ build-pass
21
//@ compile-flags: --target thumbv8m.main-none-eabi --crate-type lib
32
//@ needs-llvm-components: arm
3+
//@ assembly-output: emit-asm
4+
//@ needs-asm-support
45
#![feature(cmse_nonsecure_entry, no_core, lang_items)]
56
#![no_core]
7+
#![crate_type = "lib"]
68
#[lang = "sized"]
79
trait Sized {}
810
#[lang = "copy"]
911
trait Copy {}
1012
impl Copy for u32 {}
1113

14+
//@ build-pass
15+
// @ compile-flags: -C no-prepopulate-passes -Zbranch-protection=bti
16+
17+
// CHECK-LABEL: @entry_function
1218
#[no_mangle]
1319
pub extern "C-cmse-nonsecure-entry" fn entry_function(_: u32, _: u32, _: u32, d: u32) -> u32 {
20+
// CHECK: florpsz
1421
d
1522
}

0 commit comments

Comments
 (0)