Skip to content

Commit cde07fd

Browse files
committed
---
yaml --- r: 206769 b: refs/heads/beta c: 60ec4ab h: refs/heads/master i: 206767: 6b1ddc1 v: v3
1 parent 2516b99 commit cde07fd

File tree

2 files changed

+35
-2
lines changed

2 files changed

+35
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
2929
refs/heads/automation-fail: 1bf06495443584539b958873e04cc2f864ab10e4
3030
refs/heads/batch: b7fd822592a4fb577552d93010c4a4e14f314346
3131
refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
32-
refs/heads/beta: e7fa00a3e24f094012f878945bef8a62df1678c1
32+
refs/heads/beta: 60ec4ab220385be1ad2aef237733d7f38c2196b3
3333
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
3434
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
3535
refs/heads/tmp: 579e31929feff51dcaf8d444648eff8de735f91a

branches/beta/src/librustc_resolve/diagnostics.rs

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,40 @@ extern crate_a as other_name;
6767
```
6868
"##,
6969

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+
70104
E0317: r##"
71105
User-defined types or type parameters cannot shadow the primitive types.
72106
This error indicates you tried to define a type, struct or enum with the same
@@ -91,7 +125,6 @@ register_diagnostics! {
91125
E0256, // import conflicts with type in this module
92126
E0257, // inherent implementations are only allowed on types defined in the current module
93127
E0258, // import conflicts with existing submodule
94-
E0260, // name conflicts with an external crate that has been imported into this module
95128
E0364, // item is private
96129
E0365 // item is private
97130
}

0 commit comments

Comments
 (0)