Skip to content

Commit

Permalink
Rollup merge of rust-lang#68888 - tspiteri:ignore-to-compile_fail, r=…
Browse files Browse the repository at this point in the history
…petrochenkov

error code examples: replace some more ignore with compile_fail

Now that rust-lang#68664 has been merged and `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.
  • Loading branch information
Dylan-DPC authored Feb 6, 2020
2 parents cc3a0e4 + 534c3ea commit 0e294cf
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/librustc_error_codes/error_codes/E0511.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Invalid monomorphization of an intrinsic function was used. Erroneous code
example:

```ignore (error-emitted-at-codegen-which-cannot-be-handled-by-compile_fail)
```compile_fail,E0511
#![feature(platform_intrinsics)]
extern "platform-intrinsic" {
Expand Down
2 changes: 1 addition & 1 deletion src/librustc_error_codes/error_codes/E0534.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ The `inline` attribute was malformed.

Erroneous code example:

```ignore (compile_fail not working here; see Issue #43707)
```compile_fail,E0534
#[inline()] // error: expected one argument
pub fn something() {}
Expand Down
2 changes: 1 addition & 1 deletion src/librustc_error_codes/error_codes/E0535.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ An unknown argument was given to the `inline` attribute.

Erroneous code example:

```ignore (compile_fail not working here; see Issue #43707)
```compile_fail,E0535
#[inline(unknown)] // error: invalid argument
pub fn something() {}
Expand Down
4 changes: 3 additions & 1 deletion src/librustc_error_codes/error_codes/E0633.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ The `unwind` attribute was malformed.

Erroneous code example:

```ignore (compile_fail not working here; see Issue #43707)
```compile_fail,E0633
#![feature(unwind_attributes)]
#[unwind()] // error: expected one argument
pub extern fn something() {}
Expand Down
2 changes: 1 addition & 1 deletion src/librustc_error_codes/error_codes/E0668.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ assembly call.

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

0 comments on commit 0e294cf

Please sign in to comment.