File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 23
23
#![ doc( html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png" ,
24
24
html_favicon_url = "http://www.rust-lang.org/favicon.ico" ,
25
25
html_root_url = "http://doc.rust-lang.org/glob/" ) ]
26
- #![ cfg_attr( test, deny ( warnings ) ) ]
26
+ #![ cfg_attr( test, feature ( io ) ) ]
27
27
#![ cfg_attr( all( test, windows) , feature( std_misc) ) ]
28
- #![ feature( path , io ) ]
28
+ #![ feature( path_components_peek , unmarked_api ) ]
29
29
30
30
use std:: ascii:: AsciiExt ;
31
31
use std:: cell:: Cell ;
@@ -157,7 +157,7 @@ pub fn glob_with(pattern: &str, options: &MatchOptions)
157
157
let mut components = Path :: new ( pattern) . components ( ) ;
158
158
loop {
159
159
match components. peek ( ) {
160
- Some ( Component :: Prefix { .. } ) |
160
+ Some ( Component :: Prefix ( .. ) ) |
161
161
Some ( Component :: RootDir ) => { components. next ( ) ; }
162
162
_ => break ,
163
163
}
Original file line number Diff line number Diff line change 10
10
11
11
// ignore-windows TempDir may cause IoError on windows: #10462
12
12
13
- #![ feature( path) ]
14
-
15
13
extern crate glob;
16
14
extern crate tempdir;
17
15
You can’t perform that action at this time.
0 commit comments