Skip to content

Commit d604720

Browse files
committed
---
yaml --- r: 221544 b: refs/heads/snap-stage3 c: d6be183 h: refs/heads/master v: v3
1 parent 5869aa5 commit d604720

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
refs/heads/master: 607f74df2ad6b6fb32ce5b862a9e48a8c4afdad2
3-
refs/heads/snap-stage3: 74768e9a6ccac85f813e4125c76f9cb52a2ac618
3+
refs/heads/snap-stage3: d6be183af1d76a2716f1a3dc00b3ad3a2b746b37
44
refs/heads/try: b53c0f93eedcdedd4fd89bccc5a3a09d1c5cd23e
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
66
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,6 +1002,14 @@ you prefer them unqualified, you can import the variants into scope:
10021002
use Method::*;
10031003
enum Method { GET, POST }
10041004
```
1005+
1006+
If you want others to be able to import variants from your module directly, use
1007+
`pub use`:
1008+
1009+
```
1010+
pub use Method::*;
1011+
enum Method { GET, POST }
1012+
```
10051013
"##,
10061014

10071015
E0261: r##"

0 commit comments

Comments
 (0)