Skip to content

Commit 36a2876

Browse files
committed
---
yaml --- r: 208370 b: refs/heads/snap-stage3 c: e7fa00a h: refs/heads/master v: v3
1 parent 6b20df2 commit 36a2876

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
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: 38a97becdf3e6a6157f6f7ec2d98ade8d8edc193
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: f3a3684614c0baf01e2d22e662b67e6a1408b718
4+
refs/heads/snap-stage3: e7fa00a3e24f094012f878945bef8a62df1678c1
55
refs/heads/try: 7b4ef47b7805a402d756fb8157101f64880a522f
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d

branches/snap-stage3/src/librustc_resolve/diagnostics.rs

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,26 @@ about what constitutes an Item declaration and what does not:
4747
http://doc.rust-lang.org/reference.html#statements
4848
"##,
4949

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+
5070
E0317: r##"
5171
User-defined types or type parameters cannot shadow the primitive types.
5272
This error indicates you tried to define a type, struct or enum with the same
@@ -71,7 +91,6 @@ register_diagnostics! {
7191
E0256, // import conflicts with type in this module
7292
E0257, // inherent implementations are only allowed on types defined in the current module
7393
E0258, // import conflicts with existing submodule
74-
E0259, // an extern crate has already been imported into this module
7594
E0260, // name conflicts with an external crate that has been imported into this module
7695
E0364, // item is private
7796
E0365 // item is private

0 commit comments

Comments
 (0)