]> git.lizzy.rs Git - rust.git/commitdiff
Remove E0222 from errors list
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Mon, 22 Jun 2015 16:39:46 +0000 (18:39 +0200)
committerGuillaume Gomez <guillaume1.gomez@gmail.com>
Mon, 22 Jun 2015 19:53:19 +0000 (21:53 +0200)
src/librustc_typeck/diagnostics.rs

index 44c6be01ee9f75277f8b9d86c37dea7e6403c536..ee3200051abf746e250ef5f7c02b3c73a46d5976 100644 (file)
@@ -381,8 +381,8 @@ fn main() {
 "##,
 
 E0045: r##"
-Variadic parameters are only allowed in extern "C" code. Example of
-erroneous codes:
+Variadic parameters are only allowed in extern "C" code. Examples of
+erroneous code:
 
 ```
 extern "rust-call" { fn foo(x: u8, ...); }
@@ -390,10 +390,10 @@ fn main() {
 fn foo(x: u8, ...) {}
 ```
 
-To fix these codes, put them in extern "C" block:
+To fix such code, put them in extern "C" block:
 
 ```
-extern "C" { fn foo(x: u8, ...); }
+extern "C" fn foo (x: u8, ...);
 ```
 "##,
 
@@ -1551,7 +1551,6 @@ impl Baz for Bar { } // Note: This is OK
     E0219, // associated type defined in higher-ranked supertrait
     E0220, // associated type not found for type parameter
     E0221, // ambiguous associated type in bounds
-    E0222, // variadic function must have C calling convention
     E0223, // ambiguous associated type
     E0224, // at least one non-builtin train is required for an object type
     E0225, // only the builtin traits can be used as closure or object bounds