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.
This commit is contained in:
Trevor Spiteri 2020-02-06 15:31:21 +01:00
parent 1f8df2508f
commit 534c3eaf28
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() {