Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 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.rs
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,7 @@ E0698: include_str!("./error_codes/E0698.md"),
E0699: include_str!("./error_codes/E0699.md"),
E0700: include_str!("./error_codes/E0700.md"),
E0701: include_str!("./error_codes/E0701.md"),
E0703: include_str!("./error_codes/E0703.md"),
E0704: include_str!("./error_codes/E0704.md"),
E0705: include_str!("./error_codes/E0705.md"),
E0706: include_str!("./error_codes/E0706.md"),
Expand Down Expand Up @@ -599,7 +600,6 @@ E0748: include_str!("./error_codes/E0748.md"),
// E0694, // an unknown tool name found in scoped attributes
E0696, // `continue` pointing to a labeled block
// E0702, // replaced with a generic attribute input check
E0703, // invalid ABI
// E0707, // multiple elided lifetimes used in arguments of `async fn`
E0708, // `async` non-`move` closures with parameters are not currently
// supported
Expand Down
19 changes: 19 additions & 0 deletions src/librustc_error_codes/error_codes/E0703.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Invalid ABI (Application Binary Interface) used in the code.

Erroneous code example:

```compile_fail,E0703
extern "invalid" fn foo() {} // error!

# fn main() {}
```

At present few predefined ABI's (like Rust, C, system, etc.) can be
used in Rust. Verify that the ABI is predefined. For example you can
replace the given ABI from 'Rust'.

```
extern "Rust" fn foo() {} // ok!

# fn main() { }
```
1 change: 1 addition & 0 deletions src/test/ui/codemap_tests/unicode.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ LL | extern "路濫狼á́́" fn foo() {}

error: aborting due to previous error

For more information about this error, try `rustc --explain E0703`.
1 change: 1 addition & 0 deletions src/test/ui/parser/issue-8537.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ LL | "invalid-ab_isize"

error: aborting due to previous error

For more information about this error, try `rustc --explain E0703`.