File tree Expand file tree Collapse file tree 2 files changed +21
-2
lines changed
branches/stable/src/librustc_resolve Expand file tree Collapse file tree 2 files changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -29,5 +29,5 @@ refs/heads/tmp: 378a370ff2057afeb1eae86eb6e78c476866a4a6
29
29
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
30
30
refs/tags/homu-tmp: a5286998df566e736b32f6795bfc3803bdaf453d
31
31
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32
- refs/heads/stable: f3a3684614c0baf01e2d22e662b67e6a1408b718
32
+ refs/heads/stable: e7fa00a3e24f094012f878945bef8a62df1678c1
33
33
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
Original file line number Diff line number Diff line change @@ -47,6 +47,26 @@ about what constitutes an Item declaration and what does not:
47
47
http://doc.rust-lang.org/reference.html#statements
48
48
"## ,
49
49
50
+ E0259 : r##"
51
+ The name chosen for an external crate conflicts with another external crate that
52
+ has been imported into the current module.
53
+
54
+ Wrong example:
55
+ ```
56
+ extern a;
57
+ extern crate_a as a;
58
+ ```
59
+
60
+ The solution is to choose a different name that doesn't conflict with any
61
+ external crate imported into the current module.
62
+
63
+ Correct example:
64
+ ```
65
+ extern a;
66
+ extern crate_a as other_name;
67
+ ```
68
+ "## ,
69
+
50
70
E0317 : r##"
51
71
User-defined types or type parameters cannot shadow the primitive types.
52
72
This error indicates you tried to define a type, struct or enum with the same
@@ -71,7 +91,6 @@ register_diagnostics! {
71
91
E0256 , // import conflicts with type in this module
72
92
E0257 , // inherent implementations are only allowed on types defined in the current module
73
93
E0258 , // import conflicts with existing submodule
74
- E0259 , // an extern crate has already been imported into this module
75
94
E0260 , // name conflicts with an external crate that has been imported into this module
76
95
E0364 , // item is private
77
96
E0365 // item is private
You can’t perform that action at this time.
0 commit comments