File tree Expand file tree Collapse file tree 2 files changed +35
-2
lines changed
branches/snap-stage3/src/librustc_resolve Expand file tree Collapse file tree 2 files changed +35
-2
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: 38a97becdf3e6a6157f6f7ec2d98ade8d8edc193
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
- refs/heads/snap-stage3: e7fa00a3e24f094012f878945bef8a62df1678c1
4
+ refs/heads/snap-stage3: 60ec4ab220385be1ad2aef237733d7f38c2196b3
5
5
refs/heads/try: 7b4ef47b7805a402d756fb8157101f64880a522f
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
Original file line number Diff line number Diff line change @@ -67,6 +67,40 @@ extern crate_a as other_name;
67
67
```
68
68
"## ,
69
69
70
+ E0260 : r##"
71
+ The name for an item declaration conflicts with an external crate's name.
72
+
73
+ For instance,
74
+ ```
75
+ extern abc;
76
+
77
+ struct abc;
78
+ ```
79
+
80
+ There are two possible solutions:
81
+
82
+ Solution #1: Rename the item.
83
+
84
+ ```
85
+ extern abc;
86
+
87
+ struct xyz;
88
+ ```
89
+
90
+ Solution #2: Import the crate with a different name.
91
+
92
+ ```
93
+ extern abc as xyz;
94
+
95
+ struct abc;
96
+ ```
97
+
98
+ See the Declaration Statements section of the reference for more information
99
+ about what constitutes an Item declaration and what does not:
100
+
101
+ http://doc.rust-lang.org/reference.html#statements
102
+ "## ,
103
+
70
104
E0317 : r##"
71
105
User-defined types or type parameters cannot shadow the primitive types.
72
106
This error indicates you tried to define a type, struct or enum with the same
@@ -91,7 +125,6 @@ register_diagnostics! {
91
125
E0256 , // import conflicts with type in this module
92
126
E0257 , // inherent implementations are only allowed on types defined in the current module
93
127
E0258 , // import conflicts with existing submodule
94
- E0260 , // name conflicts with an external crate that has been imported into this module
95
128
E0364 , // item is private
96
129
E0365 // item is private
97
130
}
You can’t perform that action at this time.
0 commit comments