Rollup merge of #68888 - tspiteri:ignore-to-compile_fail, r=petrochenkov

error code examples: replace some more ignore with compile_fail

Now that #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.
This commit is contained in:
Dylan DPC 2020-02-06 22:38:37 +01:00 committed by GitHub
commit 0e294cf395
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 5 deletions

View File

@ -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" {

View File

@ -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() {}

View File

@ -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() {}

View File

@ -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() {}

View File

@ -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() {