@@ -205,7 +205,7 @@ impl EarlyProps {
205205 fn ignore_lldb ( config : & Config , line : & str ) -> bool {
206206 if let Some ( ref actual_version) = config. lldb_version {
207207 if line. starts_with ( "min-lldb-version" ) {
208- let min_version = line. trim_right ( )
208+ let min_version = line. trim_end ( )
209209 . rsplit ( ' ' )
210210 . next ( )
211211 . expect ( "Malformed lldb version directive" ) ;
@@ -228,15 +228,15 @@ impl EarlyProps {
228228 }
229229 if let Some ( ref actual_version) = config. llvm_version {
230230 if line. starts_with ( "min-llvm-version" ) {
231- let min_version = line. trim_right ( )
231+ let min_version = line. trim_end ( )
232232 . rsplit ( ' ' )
233233 . next ( )
234234 . expect ( "Malformed llvm version directive" ) ;
235235 // Ignore if actual version is smaller the minimum required
236236 // version
237237 & actual_version[ ..] < min_version
238238 } else if line. starts_with ( "min-system-llvm-version" ) {
239- let min_version = line. trim_right ( )
239+ let min_version = line. trim_end ( )
240240 . rsplit ( ' ' )
241241 . next ( )
242242 . expect ( "Malformed llvm version directive" ) ;
@@ -573,14 +573,14 @@ fn iter_header(testfile: &Path, cfg: Option<&str>, it: &mut dyn FnMut(&str)) {
573573 None => false ,
574574 } ;
575575 if matches {
576- it ( ln[ ( close_brace + 1 ) ..] . trim_left ( ) ) ;
576+ it ( ln[ ( close_brace + 1 ) ..] . trim_start ( ) ) ;
577577 }
578578 } else {
579579 panic ! ( "malformed condition directive: expected `{}foo]`, found `{}`" ,
580580 comment_with_brace, ln)
581581 }
582582 } else if ln. starts_with ( comment) {
583- it ( ln[ comment. len ( ) ..] . trim_left ( ) ) ;
583+ it ( ln[ comment. len ( ) ..] . trim_start ( ) ) ;
584584 }
585585 }
586586 return ;
0 commit comments