Skip to content

Commit 0f19400

Browse files
---
yaml --- r: 226101 b: refs/heads/stable c: 11f0f47 h: refs/heads/master i: 226099: fecebaf v: v3
1 parent 57fc8d2 commit 0f19400

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ refs/heads/tmp: e5d90d98402475b6e154ce216f9efcb80da1a747
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: 1fe32ca12c51afcd761d9962f51a74ff0d07a591
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32-
refs/heads/stable: 97e161573514f6f016a6e7e6db85e30d75258eb3
32+
refs/heads/stable: 11f0f4722027272319a556528a9000ca67e9b35a
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b

branches/stable/src/librustc_typeck/diagnostics.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -381,19 +381,19 @@ fn main() {
381381
"##,
382382

383383
E0045: r##"
384-
Variadic parameters are only allowed in extern "C" code. Example of
385-
erroneous codes:
384+
Variadic parameters are only allowed in extern "C" code. Examples of
385+
erroneous code:
386386
387387
```
388388
extern "rust-call" { fn foo(x: u8, ...); }
389389
// or
390390
fn foo(x: u8, ...) {}
391391
```
392392
393-
To fix these codes, put them in extern "C" block:
393+
To fix such code, put them in extern "C" block:
394394
395395
```
396-
extern "C" { fn foo(x: u8, ...); }
396+
extern "C" fn foo (x: u8, ...);
397397
```
398398
"##,
399399

@@ -1551,7 +1551,6 @@ register_diagnostics! {
15511551
E0219, // associated type defined in higher-ranked supertrait
15521552
E0220, // associated type not found for type parameter
15531553
E0221, // ambiguous associated type in bounds
1554-
E0222, // variadic function must have C calling convention
15551554
E0223, // ambiguous associated type
15561555
E0224, // at least one non-builtin train is required for an object type
15571556
E0225, // only the builtin traits can be used as closure or object bounds

0 commit comments

Comments
 (0)