@@ -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" ) ;
@@ -405,14 +405,14 @@ fn iter_header(testfile: &Path, cfg: Option<&str>, it: &mut FnMut(&str)) {
405405 None => false ,
406406 } ;
407407 if matches {
408- it ( ln[ ( close_brace + 1 ) ..] . trim_left ( ) ) ;
408+ it ( ln[ ( close_brace + 1 ) ..] . trim_start ( ) ) ;
409409 }
410410 } else {
411411 panic ! ( "malformed condition directive: expected `//[foo]`, found `{}`" ,
412412 ln)
413413 }
414414 } else if ln. starts_with ( "//" ) {
415- it ( ln[ 2 ..] . trim_left ( ) ) ;
415+ it ( ln[ 2 ..] . trim_start ( ) ) ;
416416 }
417417 }
418418 return ;
0 commit comments