File tree Expand file tree Collapse file tree 2 files changed +17
-3
lines changed
branches/try/src/librustc_typeck Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: edeb4f1c86cbf6af8ef9874d4b3af50f721ea1b8
3
3
refs/heads/snap-stage3: 1af31d4974e33027a68126fa5a5a3c2c6491824f
4
- refs/heads/try: 768111fa93ec801735f30a38c5fd2ef4774a9d3a
4
+ refs/heads/try: 73685afb8a76148d25d17ea80d0eb26a48839f9b
5
5
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
6
6
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
7
7
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
Original file line number Diff line number Diff line change @@ -2774,6 +2774,22 @@ For more information see the [opt-in builtin traits RFC](https://github.com/rust
2774
2774
-lang/rfcs/blob/master/text/0019-opt-in-builtin-traits.md).
2775
2775
"## ,
2776
2776
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
+
2777
2793
E0391 : r##"
2778
2794
This error indicates that some types or traits depend on each other
2779
2795
and therefore cannot be constructed.
@@ -2928,8 +2944,6 @@ register_diagnostics! {
2928
2944
// between structures
2929
2945
E0377 , // the trait `CoerceUnsized` may only be implemented for a coercion
2930
2946
// between structures with the same definition
2931
- E0390 , // only a single inherent implementation marked with
2932
- // `#[lang = \"{}\"]` is allowed for the `{}` primitive
2933
2947
E0393 , // the type parameter `{}` must be explicitly specified in an object
2934
2948
// type because its default value `{}` references the type `Self`"
2935
2949
E0399 , // trait items need to be implemented because the associated
You can’t perform that action at this time.
0 commit comments