Skip to content

Commit 15dc93a

Browse files
committed
Update to Rust nightly
1 parent eb6d079 commit 15dc93a

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
2424
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
2525
html_root_url = "http://doc.rust-lang.org/glob/")]
26-
#![cfg_attr(test, deny(warnings))]
26+
#![cfg_attr(test, feature(io))]
2727
#![cfg_attr(all(test, windows), feature(std_misc))]
28-
#![feature(path, io)]
28+
#![feature(path_components_peek, unmarked_api)]
2929

3030
use std::ascii::AsciiExt;
3131
use std::cell::Cell;
@@ -157,7 +157,7 @@ pub fn glob_with(pattern: &str, options: &MatchOptions)
157157
let mut components = Path::new(pattern).components();
158158
loop {
159159
match components.peek() {
160-
Some(Component::Prefix { .. }) |
160+
Some(Component::Prefix(..)) |
161161
Some(Component::RootDir) => { components.next(); }
162162
_ => break,
163163
}

tests/glob-std.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010

1111
// ignore-windows TempDir may cause IoError on windows: #10462
1212

13-
#![feature(path)]
14-
1513
extern crate glob;
1614
extern crate tempdir;
1715

0 commit comments

Comments
 (0)