about summary refs log tree commit diff
path: root/src/librustc_error_codes/error_codes
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-03-28 17:15:32 +0000
committerbors <bors@rust-lang.org>2020-03-28 17:15:32 +0000
commitc52cee172fcd2e223100d8bdd5e105dc37aaca23 (patch)
tree1dbbe3d2d019f59bf1c2fae6b674096effae9670 /src/librustc_error_codes/error_codes
parente768d6f0bc6db7a46c9ef08254a944ba100bc5dd (diff)
parente3ccd5ba49e9b3811dda14f66e5ca8417b3aa4fb (diff)
downloadrust-c52cee172fcd2e223100d8bdd5e105dc37aaca23.tar.gz
rust-c52cee172fcd2e223100d8bdd5e105dc37aaca23.zip
Auto merge of #70499 - Dylan-DPC:rollup-f9je1l8, r=Dylan-DPC
Rollup of 5 pull requests

Successful merges:

 - #70418 (Add long error explanation for E0703)
 - #70448 (Create output dir in rustdoc markdown render)
 - #70486 (Shrink Unicode tables (even more))
 - #70493 (Fix rustdoc.css CSS tab-size property)
 - #70495 (Replace last mention of IRC with Discord)

Failed merges:

r? @ghost
Diffstat (limited to 'src/librustc_error_codes/error_codes')
-rw-r--r--src/librustc_error_codes/error_codes/E0703.md17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/librustc_error_codes/error_codes/E0703.md b/src/librustc_error_codes/error_codes/E0703.md
new file mode 100644
index 00000000000..b42677d52cb
--- /dev/null
+++ b/src/librustc_error_codes/error_codes/E0703.md
@@ -0,0 +1,17 @@
+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() { }
+```