@@ -205,7 +205,7 @@ impl EarlyProps {
205
205
fn ignore_lldb ( config : & Config , line : & str ) -> bool {
206
206
if let Some ( ref actual_version) = config. lldb_version {
207
207
if line. starts_with ( "min-lldb-version" ) {
208
- let min_version = line. trim_right ( )
208
+ let min_version = line. trim_end ( )
209
209
. rsplit ( ' ' )
210
210
. next ( )
211
211
. expect ( "Malformed lldb version directive" ) ;
@@ -228,15 +228,15 @@ impl EarlyProps {
228
228
}
229
229
if let Some ( ref actual_version) = config. llvm_version {
230
230
if line. starts_with ( "min-llvm-version" ) {
231
- let min_version = line. trim_right ( )
231
+ let min_version = line. trim_end ( )
232
232
. rsplit ( ' ' )
233
233
. next ( )
234
234
. expect ( "Malformed llvm version directive" ) ;
235
235
// Ignore if actual version is smaller the minimum required
236
236
// version
237
237
& actual_version[ ..] < min_version
238
238
} else if line. starts_with ( "min-system-llvm-version" ) {
239
- let min_version = line. trim_right ( )
239
+ let min_version = line. trim_end ( )
240
240
. rsplit ( ' ' )
241
241
. next ( )
242
242
. expect ( "Malformed llvm version directive" ) ;
@@ -573,14 +573,14 @@ fn iter_header(testfile: &Path, cfg: Option<&str>, it: &mut dyn FnMut(&str)) {
573
573
None => false ,
574
574
} ;
575
575
if matches {
576
- it ( ln[ ( close_brace + 1 ) ..] . trim_left ( ) ) ;
576
+ it ( ln[ ( close_brace + 1 ) ..] . trim_start ( ) ) ;
577
577
}
578
578
} else {
579
579
panic ! ( "malformed condition directive: expected `{}foo]`, found `{}`" ,
580
580
comment_with_brace, ln)
581
581
}
582
582
} else if ln. starts_with ( comment) {
583
- it ( ln[ comment. len ( ) ..] . trim_left ( ) ) ;
583
+ it ( ln[ comment. len ( ) ..] . trim_start ( ) ) ;
584
584
}
585
585
}
586
586
return ;
0 commit comments