Skip to content

Commit 7a6064e

Browse files
---
yaml --- r: 235030 b: refs/heads/stable c: 0ba2db5 h: refs/heads/master v: v3
1 parent f45fd40 commit 7a6064e

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ refs/heads/tmp: afae2ff723393b3ab4ccffef6ac7c6d1809e2da0
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: f859507de8c410b648d934d8f5ec1c52daac971d
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32-
refs/heads/stable: ed6940fd384b1e42c3e3ad229e022af2e13b79c7
32+
refs/heads/stable: 0ba2db5fde29bfac76a69cff819cb8388be90392
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
3535
refs/tags/1.2.0: f557861f822c34f07270347b94b5280de20a597e

branches/stable/src/librustc_typeck/diagnostics.rs

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1528,6 +1528,29 @@ impl Copy for &'static Bar { } // error
15281528
```
15291529
"##,
15301530

1531+
E0211: r##"
1532+
You used an intrinsic function which doesn't correspond to its
1533+
definition. Erroneous code example:
1534+
1535+
```
1536+
#![feature(intrinsics)]
1537+
1538+
extern "rust-intrinsic" {
1539+
fn size_of<T>(); // error: intrinsic has wrong type
1540+
}
1541+
```
1542+
1543+
Please check the function definition. Example:
1544+
1545+
```
1546+
#![feature(intrinsics)]
1547+
1548+
extern "rust-intrinsic" {
1549+
fn size_of<T>() -> usize;
1550+
}
1551+
```
1552+
"##,
1553+
15311554
E0243: r##"
15321555
This error indicates that not enough type parameters were found in a type or
15331556
trait.
@@ -1790,7 +1813,6 @@ register_diagnostics! {
17901813
E0208,
17911814
E0209, // builtin traits can only be implemented on structs or enums
17921815
E0210, // type parameter is not constrained by any local type
1793-
E0211,
17941816
E0212, // cannot extract an associated type from a higher-ranked trait bound
17951817
E0213, // associated types are not accepted in this context
17961818
E0214, // parenthesized parameters may only be used with a trait

0 commit comments

Comments
 (0)