File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
branches/beta/src/librustc_resolve Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
29
29
refs/heads/automation-fail: 1bf06495443584539b958873e04cc2f864ab10e4
30
30
refs/heads/batch: b7fd822592a4fb577552d93010c4a4e14f314346
31
31
refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
32
- refs/heads/beta: ef030555c67988878e1a68743da25b5107bd2787
32
+ refs/heads/beta: aa529ef52e54039fcfaa8aa7914be4c581179497
33
33
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
34
34
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
35
35
refs/heads/tmp: 579e31929feff51dcaf8d444648eff8de735f91a
Original file line number Diff line number Diff line change @@ -53,17 +53,17 @@ has been imported into the current module.
53
53
54
54
Wrong example:
55
55
```
56
- extern a;
57
- extern crate_a as a;
56
+ extern crate a;
57
+ extern crate crate_a as a;
58
58
```
59
59
60
60
The solution is to choose a different name that doesn't conflict with any
61
61
external crate imported into the current module.
62
62
63
63
Correct example:
64
64
```
65
- extern a;
66
- extern crate_a as other_name;
65
+ extern crate a;
66
+ extern crate crate_a as other_name;
67
67
```
68
68
"## ,
69
69
@@ -72,7 +72,7 @@ The name for an item declaration conflicts with an external crate's name.
72
72
73
73
For instance,
74
74
```
75
- extern abc;
75
+ extern crate abc;
76
76
77
77
struct abc;
78
78
```
@@ -82,15 +82,15 @@ There are two possible solutions:
82
82
Solution #1: Rename the item.
83
83
84
84
```
85
- extern abc;
85
+ extern crate abc;
86
86
87
87
struct xyz;
88
88
```
89
89
90
90
Solution #2: Import the crate with a different name.
91
91
92
92
```
93
- extern abc as xyz;
93
+ extern crate abc as xyz;
94
94
95
95
struct abc;
96
96
```
You can’t perform that action at this time.
0 commit comments