diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-02-06 22:38:37 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-06 22:38:37 +0100 |
| commit | 0e294cf39548a9e3f5d73fbec2f3dde91a6253f9 (patch) | |
| tree | d462b236d8706b728baa7b8085c78240d9ba7780 /src | |
| parent | cc3a0e458c64612dd4b8bb4257ab4648c86548bb (diff) | |
| parent | 534c3eaf286e612ef9196a2744a211285b2fff83 (diff) | |
| download | rust-0e294cf39548a9e3f5d73fbec2f3dde91a6253f9.tar.gz rust-0e294cf39548a9e3f5d73fbec2f3dde91a6253f9.zip | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc_error_codes/error_codes/E0511.md | 2 | ||||
| -rw-r--r-- | src/librustc_error_codes/error_codes/E0534.md | 2 | ||||
| -rw-r--r-- | src/librustc_error_codes/error_codes/E0535.md | 2 | ||||
| -rw-r--r-- | src/librustc_error_codes/error_codes/E0633.md | 4 | ||||
| -rw-r--r-- | src/librustc_error_codes/error_codes/E0668.md | 2 |
5 files changed, 7 insertions, 5 deletions
diff --git a/src/librustc_error_codes/error_codes/E0511.md b/src/librustc_error_codes/error_codes/E0511.md index 2d6ff8241e6..4f6644f3582 100644 --- a/src/librustc_error_codes/error_codes/E0511.md +++ b/src/librustc_error_codes/error_codes/E0511.md @@ -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" { diff --git a/src/librustc_error_codes/error_codes/E0534.md b/src/librustc_error_codes/error_codes/E0534.md index e50b84764b4..0afa4a8c958 100644 --- a/src/librustc_error_codes/error_codes/E0534.md +++ b/src/librustc_error_codes/error_codes/E0534.md @@ -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() {} diff --git a/src/librustc_error_codes/error_codes/E0535.md b/src/librustc_error_codes/error_codes/E0535.md index e9abfe5dda1..035d395b76f 100644 --- a/src/librustc_error_codes/error_codes/E0535.md +++ b/src/librustc_error_codes/error_codes/E0535.md @@ -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() {} diff --git a/src/librustc_error_codes/error_codes/E0633.md b/src/librustc_error_codes/error_codes/E0633.md index 65cdf90036a..7f488cde664 100644 --- a/src/librustc_error_codes/error_codes/E0633.md +++ b/src/librustc_error_codes/error_codes/E0633.md @@ -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() {} diff --git a/src/librustc_error_codes/error_codes/E0668.md b/src/librustc_error_codes/error_codes/E0668.md index 2621a31a9e0..f5d26244fb9 100644 --- a/src/librustc_error_codes/error_codes/E0668.md +++ b/src/librustc_error_codes/error_codes/E0668.md @@ -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() { |
