Skip to content

Commit a76dc25

Browse files
committed
---
yaml --- r: 206771 b: refs/heads/beta c: aa529ef h: refs/heads/master i: 206769: cde07fd 206767: 6b1ddc1 v: v3
1 parent 77d8b92 commit a76dc25

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
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: ef030555c67988878e1a68743da25b5107bd2787
32+
refs/heads/beta: aa529ef52e54039fcfaa8aa7914be4c581179497
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: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,17 +53,17 @@ has been imported into the current module.
5353
5454
Wrong example:
5555
```
56-
extern a;
57-
extern crate_a as a;
56+
extern crate a;
57+
extern crate crate_a as a;
5858
```
5959
6060
The solution is to choose a different name that doesn't conflict with any
6161
external crate imported into the current module.
6262
6363
Correct example:
6464
```
65-
extern a;
66-
extern crate_a as other_name;
65+
extern crate a;
66+
extern crate crate_a as other_name;
6767
```
6868
"##,
6969

@@ -72,7 +72,7 @@ The name for an item declaration conflicts with an external crate's name.
7272
7373
For instance,
7474
```
75-
extern abc;
75+
extern crate abc;
7676
7777
struct abc;
7878
```
@@ -82,15 +82,15 @@ There are two possible solutions:
8282
Solution #1: Rename the item.
8383
8484
```
85-
extern abc;
85+
extern crate abc;
8686
8787
struct xyz;
8888
```
8989
9090
Solution #2: Import the crate with a different name.
9191
9292
```
93-
extern abc as xyz;
93+
extern crate abc as xyz;
9494
9595
struct abc;
9696
```

0 commit comments

Comments
 (0)