Skip to content

Commit 71da5b4

Browse files
---
yaml --- r: 232651 b: refs/heads/try c: 73685af h: refs/heads/master i: 232649: 86b07fa 232647: bda57d8 v: v3
1 parent 2f7e575 commit 71da5b4

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
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: edeb4f1c86cbf6af8ef9874d4b3af50f721ea1b8
33
refs/heads/snap-stage3: 1af31d4974e33027a68126fa5a5a3c2c6491824f
4-
refs/heads/try: 768111fa93ec801735f30a38c5fd2ef4774a9d3a
4+
refs/heads/try: 73685afb8a76148d25d17ea80d0eb26a48839f9b
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: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2774,6 +2774,22 @@ For more information see the [opt-in builtin traits RFC](https://github.com/rust
27742774
-lang/rfcs/blob/master/text/0019-opt-in-builtin-traits.md).
27752775
"##,
27762776

2777+
E0390: r##"
2778+
You tried to implement on an `*mut T` type. Erroneous code example:
2779+
2780+
```
2781+
struct Foo {
2782+
x: i32
2783+
}
2784+
2785+
impl *mut Foo {}
2786+
// error: only a single inherent implementation marked with
2787+
// `#[lang = "mut_ptr"]` is allowed for the `*mut T` primitive
2788+
```
2789+
2790+
To fix this, please follow the compiler recommendations.
2791+
"##,
2792+
27772793
E0391: r##"
27782794
This error indicates that some types or traits depend on each other
27792795
and therefore cannot be constructed.
@@ -2928,8 +2944,6 @@ register_diagnostics! {
29282944
// between structures
29292945
E0377, // the trait `CoerceUnsized` may only be implemented for a coercion
29302946
// between structures with the same definition
2931-
E0390, // only a single inherent implementation marked with
2932-
// `#[lang = \"{}\"]` is allowed for the `{}` primitive
29332947
E0393, // the type parameter `{}` must be explicitly specified in an object
29342948
// type because its default value `{}` references the type `Self`"
29352949
E0399, // trait items need to be implemented because the associated

0 commit comments

Comments
 (0)