Skip to content

Commit 534c3ea

Browse files
committed
error code examples: replace some more ignore with compile_fail
Now that compile_fail attempts a full build rather than --emit=metadata, these errors should be caught by compile_fail and do not need to be ignored.
1 parent 1f8df25 commit 534c3ea

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

src/librustc_error_codes/error_codes/E0511.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Invalid monomorphization of an intrinsic function was used. Erroneous code
22
example:
33

4-
```ignore (error-emitted-at-codegen-which-cannot-be-handled-by-compile_fail)
4+
```compile_fail,E0511
55
#![feature(platform_intrinsics)]
66
77
extern "platform-intrinsic" {

src/librustc_error_codes/error_codes/E0534.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ The `inline` attribute was malformed.
22

33
Erroneous code example:
44

5-
```ignore (compile_fail not working here; see Issue #43707)
5+
```compile_fail,E0534
66
#[inline()] // error: expected one argument
77
pub fn something() {}
88

src/librustc_error_codes/error_codes/E0535.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ An unknown argument was given to the `inline` attribute.
22

33
Erroneous code example:
44

5-
```ignore (compile_fail not working here; see Issue #43707)
5+
```compile_fail,E0535
66
#[inline(unknown)] // error: invalid argument
77
pub fn something() {}
88

src/librustc_error_codes/error_codes/E0633.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ The `unwind` attribute was malformed.
22

33
Erroneous code example:
44

5-
```ignore (compile_fail not working here; see Issue #43707)
5+
```compile_fail,E0633
6+
#![feature(unwind_attributes)]
7+
68
#[unwind()] // error: expected one argument
79
pub extern fn something() {}
810

src/librustc_error_codes/error_codes/E0668.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ assembly call.
66

77
In particular, it can happen if you forgot the closing bracket of a register
88
constraint (see issue #51430):
9-
```ignore (error-emitted-at-codegen-which-cannot-be-handled-by-compile_fail)
9+
```compile_fail,E0668
1010
#![feature(asm)]
1111
1212
fn main() {

0 commit comments

Comments
 (0)