Skip to content

Commit 4966e64

Browse files
---
yaml --- r: 233652 b: refs/heads/beta c: 5650709 h: refs/heads/master v: v3
1 parent 815230c commit 4966e64

File tree

2 files changed

+15
-9
lines changed

2 files changed

+15
-9
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ refs/tags/0.9: 36870b185fc5f5486636d4515f0e22677493f225
2323
refs/tags/0.10: ac33f2b15782272ae348dbd7b14b8257b2148b5a
2424
refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
2525
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
26-
refs/heads/beta: 73b369d7ab5999eaebeff402edd1b2405b766a4a
26+
refs/heads/beta: 565070948f8b2aff522d522b7a4be65790570b41
2727
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
2828
refs/heads/tmp: 370fe2786109360f7c35b8ba552b83b773dd71d6
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f

branches/beta/src/librustc_typeck/diagnostics.rs

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2482,7 +2482,8 @@ impl Foo for Bar {
24822482
}
24832483
```
24842484
2485-
To fix this error, please verify you didn't misspell the method name. Example:
2485+
To fix this error, please verify that the method name wasn't misspelled and
2486+
verify that you are indeed implementing the correct trait items. Example:
24862487
24872488
```
24882489
struct Bar;
@@ -2519,9 +2520,8 @@ impl Foo for Bar {
25192520
}
25202521
```
25212522
2522-
To fix this error, please verify you didn't misspell the associated type name
2523-
and that your trait item implementation corresponds to the trait definition.
2524-
Example:
2523+
Please verify that the associated type name wasn't misspelled and your
2524+
implementation corresponds to the trait definition. Example:
25252525
25262526
```
25272527
struct Bar;
@@ -2722,8 +2722,8 @@ let x = 12f32; // error: binary operation `<<` cannot be applied to
27222722
x << 2;
27232723
```
27242724
2725-
To fix this error, please check this type implements this binary operation.
2726-
Example:
2725+
To fix this error, please check that this type implements this binary
2726+
operation. Example:
27272727
27282728
```
27292729
let x = 12u32; // the `u32` type does implement it:
@@ -2775,7 +2775,8 @@ For more information see the [opt-in builtin traits RFC](https://github.com/rust
27752775
"##,
27762776

27772777
E0390: r##"
2778-
You tried to implement on an `*mut T` type. Erroneous code example:
2778+
You tried to implement methods for a mutable raw pointer (*mut T). Erroneous
2779+
code example:
27792780
27802781
```
27812782
struct Foo {
@@ -2787,7 +2788,12 @@ impl *mut Foo {}
27872788
// `#[lang = "mut_ptr"]` is allowed for the `*mut T` primitive
27882789
```
27892790
2790-
To fix this, please follow the compiler recommendations.
2791+
This isn't allowed, perhaps you might get the desired effects by wrapping the
2792+
raw pointer in a struct. Example:
2793+
2794+
```
2795+
struct FooPtr(pub *mut Foo);
2796+
```
27912797
"##,
27922798

27932799
E0391: r##"

0 commit comments

Comments
 (0)