@@ -122,7 +122,7 @@ impl EarlyProps {
122122
123123 if let Some ( ref actual_version) = config. lldb_version {
124124 if line. starts_with ( "min-lldb-version" ) {
125- let min_version = line. trim_right ( )
125+ let min_version = line. trim_end ( )
126126 . rsplit ( ' ' )
127127 . next ( )
128128 . expect ( "Malformed lldb version directive" ) ;
@@ -143,15 +143,15 @@ impl EarlyProps {
143143 }
144144 if let Some ( ref actual_version) = config. llvm_version {
145145 if line. starts_with ( "min-llvm-version" ) {
146- let min_version = line. trim_right ( )
146+ let min_version = line. trim_end ( )
147147 . rsplit ( ' ' )
148148 . next ( )
149149 . expect ( "Malformed llvm version directive" ) ;
150150 // Ignore if actual version is smaller the minimum required
151151 // version
152152 & actual_version[ ..] < min_version
153153 } else if line. starts_with ( "min-system-llvm-version" ) {
154- let min_version = line. trim_right ( )
154+ let min_version = line. trim_end ( )
155155 . rsplit ( ' ' )
156156 . next ( )
157157 . expect ( "Malformed llvm version directive" ) ;
@@ -418,14 +418,14 @@ fn iter_header(testfile: &Path, cfg: Option<&str>, it: &mut FnMut(&str)) {
418418 None => false ,
419419 } ;
420420 if matches {
421- it ( ln[ ( close_brace + 1 ) ..] . trim_left ( ) ) ;
421+ it ( ln[ ( close_brace + 1 ) ..] . trim_start ( ) ) ;
422422 }
423423 } else {
424424 panic ! ( "malformed condition directive: expected `//[foo]`, found `{}`" ,
425425 ln)
426426 }
427427 } else if ln. starts_with ( "//" ) {
428- it ( ln[ 2 ..] . trim_left ( ) ) ;
428+ it ( ln[ 2 ..] . trim_start ( ) ) ;
429429 }
430430 }
431431 return ;
0 commit comments