Skip to content

Commit 1f13089

Browse files
authored
Rollup merge of #70418 - PankajChaudhary5:master, r=Dylan-DPC
Add long error explanation for E0703 Add long explanation for the E0703 error code Part of #61137 r? @GuillaumeGomez
2 parents b9d5ee5 + c09b5a3 commit 1f13089

File tree

4 files changed

+20
-1
lines changed

4 files changed

+20
-1
lines changed

src/librustc_error_codes/error_codes.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,7 @@ E0698: include_str!("./error_codes/E0698.md"),
389389
E0699: include_str!("./error_codes/E0699.md"),
390390
E0700: include_str!("./error_codes/E0700.md"),
391391
E0701: include_str!("./error_codes/E0701.md"),
392+
E0703: include_str!("./error_codes/E0703.md"),
392393
E0704: include_str!("./error_codes/E0704.md"),
393394
E0705: include_str!("./error_codes/E0705.md"),
394395
E0706: include_str!("./error_codes/E0706.md"),
@@ -603,7 +604,6 @@ E0751: include_str!("./error_codes/E0751.md"),
603604
// E0694, // an unknown tool name found in scoped attributes
604605
E0696, // `continue` pointing to a labeled block
605606
// E0702, // replaced with a generic attribute input check
606-
E0703, // invalid ABI
607607
// E0707, // multiple elided lifetimes used in arguments of `async fn`
608608
E0708, // `async` non-`move` closures with parameters are not currently
609609
// supported
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
Invalid ABI (Application Binary Interface) used in the code.
2+
3+
Erroneous code example:
4+
5+
```compile_fail,E0703
6+
extern "invalid" fn foo() {} // error!
7+
# fn main() {}
8+
```
9+
10+
At present few predefined ABI's (like Rust, C, system, etc.) can be
11+
used in Rust. Verify that the ABI is predefined. For example you can
12+
replace the given ABI from 'Rust'.
13+
14+
```
15+
extern "Rust" fn foo() {} // ok!
16+
# fn main() { }
17+
```

src/test/ui/codemap_tests/unicode.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ LL | extern "路濫狼á́́" fn foo() {}
88

99
error: aborting due to previous error
1010

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

src/test/ui/parser/issue-8537.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ LL | "invalid-ab_isize"
88

99
error: aborting due to previous error
1010

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

0 commit comments

Comments
 (0)