Skip to content

Commit 30866df

Browse files
---
yaml --- r: 228202 b: refs/heads/try c: 6f01aa0 h: refs/heads/master v: v3
1 parent 1af5b45 commit 30866df

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: aca2057ed5fb7af3f8905b2bc01f72fa001c35c8
33
refs/heads/snap-stage3: 1af31d4974e33027a68126fa5a5a3c2c6491824f
4-
refs/heads/try: c01c1fd715bc2a61a250d53f8bc50299078c010c
4+
refs/heads/try: 6f01aa0fc8c7d74fb51e20444d9c51ce707a1de4
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
66
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
77
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try/src/librustc_typeck/diagnostics.rs

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1563,7 +1563,7 @@ type Foo = Trait; // error: the value of the associated type `Bar` (from
15631563
// the trait `Trait`) must be specified
15641564
```
15651565
1566-
Please verify you specified all associated types of the trait or that you
1566+
Please verify you specified all associated types of the trait and that you
15671567
used the right trait. Example:
15681568
15691569
```
@@ -1869,7 +1869,7 @@ type Foo = Trait<F=i32>; // error: associated type `F` not found for
18691869
// `Trait`
18701870
```
18711871
1872-
Please verify you used the good trait or you didn't mispelled the
1872+
Please verify you used the right trait or you didn't misspell the
18731873
associated type name. Example:
18741874
18751875
```
@@ -1881,6 +1881,22 @@ type Foo = Trait<Bar=i32>; // ok!
18811881
```
18821882
"##,
18831883

1884+
E0232: r##"
1885+
The attribute must have a value. Erroneous code example:
1886+
1887+
```
1888+
#[rustc_on_unimplemented] // error: this attribute must have a value
1889+
trait Bar {}
1890+
```
1891+
1892+
Please supply the missing value of the attribute. Example:
1893+
1894+
```
1895+
#[rustc_on_unimplemented = "foo"] // ok!
1896+
trait Bar {}
1897+
```
1898+
"##,
1899+
18841900
E0243: r##"
18851901
This error indicates that not enough type parameters were found in a type or
18861902
trait.
@@ -2153,7 +2169,6 @@ register_diagnostics! {
21532169
E0229, // associated type bindings are not allowed here
21542170
E0230, // there is no type parameter on trait
21552171
E0231, // only named substitution parameters are allowed
2156-
E0232, // this attribute must have a value
21572172
E0233,
21582173
E0234,
21592174
E0235, // structure constructor specifies a structure of type but

0 commit comments

Comments
 (0)