Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error code examples: replace some more ignore with compile_fail #68888

Merged
merged 1 commit into from
Feb 7, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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