Skip to content

Commit 57fc8d2

Browse files
---
yaml --- r: 226100 b: refs/heads/stable c: 97e1615 h: refs/heads/master v: v3
1 parent fecebaf commit 57fc8d2

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
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: 3f9fc39ab91a4d75b9499d3b3591db875649a0b7
32+
refs/heads/stable: 97e161573514f6f016a6e7e6db85e30d75258eb3
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b

branches/stable/src/librustc_typeck/diagnostics.rs

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,23 @@ fn main() {
380380
```
381381
"##,
382382

383+
E0045: r##"
384+
Variadic parameters are only allowed in extern "C" code. Example of
385+
erroneous codes:
386+
387+
```
388+
extern "rust-call" { fn foo(x: u8, ...); }
389+
// or
390+
fn foo(x: u8, ...) {}
391+
```
392+
393+
To fix these codes, put them in extern "C" block:
394+
395+
```
396+
extern "C" { fn foo(x: u8, ...); }
397+
```
398+
"##,
399+
383400
E0046: r##"
384401
When trying to make some type implement a trait `Foo`, you must, at minimum,
385402
provide implementations for all of `Foo`'s required methods (meaning the
@@ -1467,7 +1484,6 @@ For more information see the [opt-in builtin traits RFC](https://github.com/rust
14671484

14681485
register_diagnostics! {
14691486
E0044, // foreign items may not have type parameters
1470-
E0045, // variadic function must have C calling convention
14711487
E0068,
14721488
E0071,
14731489
E0074,

0 commit comments

Comments
 (0)