File tree Expand file tree Collapse file tree 2 files changed +4
-15
lines changed Expand file tree Collapse file tree 2 files changed +4
-15
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: c82e59d774eb8fa98f0742105a3ed2b8f0ac702d
2
+ refs/heads/master: dd0baf7f01fc470fb7406b785d03e24fa116ed1c
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 023dfb0c898d851dee6ace2f8339b73b5287136b
5
5
refs/heads/try: f5d619caf9f32458680fae55526b99582ca682dd
Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ use util::logv;
21
21
#[ cfg( target_os = "windows" ) ]
22
22
use util;
23
23
24
+ #[ cfg( target_os = "windows" ) ]
25
+ use std:: ascii:: AsciiExt ;
24
26
use std:: io:: File ;
25
27
use std:: io:: fs:: PathExtensions ;
26
28
use std:: io:: fs;
@@ -985,22 +987,9 @@ fn check_expected_errors(expected_errors: Vec<errors::ExpectedError> ,
985
987
format ! ( "{}:{}:" , testfile. display( ) , ee. line)
986
988
} ) . collect :: < Vec < String > > ( ) ;
987
989
988
- #[ cfg( target_os = "windows" ) ]
989
- fn to_lower ( s : & str ) -> String {
990
- let i = s. chars ( ) ;
991
- let c : Vec < char > = i. map ( |c| {
992
- if c. is_ascii ( ) {
993
- c. to_ascii ( ) . to_lowercase ( ) . as_char ( )
994
- } else {
995
- c
996
- }
997
- } ) . collect ( ) ;
998
- String :: from_chars ( c. as_slice ( ) )
999
- }
1000
-
1001
990
#[ cfg( windows) ]
1002
991
fn prefix_matches ( line : & str , prefix : & str ) -> bool {
1003
- to_lower ( line) . as_slice ( ) . starts_with ( to_lower ( prefix) . as_slice ( ) )
992
+ line. to_ascii_lowercase ( ) . starts_with ( prefix. to_ascii_lowercase ( ) . as_slice ( ) )
1004
993
}
1005
994
1006
995
#[ cfg( unix) ]
You can’t perform that action at this time.
0 commit comments