Skip to content

Commit 7234ffb

Browse files
committed
Ungate globs.
These are in scope for 1.0, so this is good to e.g. make it easier find bugs.
1 parent fc2e0b1 commit 7234ffb

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/libsyntax/feature_gate.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ use std::ascii::AsciiExt;
3636

3737
// if you change this list without updating src/doc/reference.md, @cmr will be sad
3838
static KNOWN_FEATURES: &'static [(&'static str, Status)] = &[
39-
("globs", Active),
39+
("globs", Accepted),
4040
("macro_rules", Active),
4141
("struct_variant", Accepted),
4242
("asm", Active),
@@ -232,13 +232,7 @@ impl<'a, 'v> Visitor<'v> for PostExpansionVisitor<'a> {
232232

233233
fn visit_view_item(&mut self, i: &ast::ViewItem) {
234234
match i.node {
235-
ast::ViewItemUse(ref path) => {
236-
if let ast::ViewPathGlob(..) = path.node {
237-
self.gate_feature("globs", path.span,
238-
"glob import statements are \
239-
experimental and possibly buggy");
240-
}
241-
}
235+
ast::ViewItemUse(..) => {}
242236
ast::ViewItemExternCrate(..) => {
243237
for attr in i.attrs.iter() {
244238
if attr.name().get() == "phase"{

0 commit comments

Comments
 (0)