@@ -333,6 +333,8 @@ pub struct TestProps {
333333 pub assembly_output : Option < String > ,
334334 // If true, the test is expected to ICE
335335 pub should_ice : bool ,
336+ // If true, the stderr is expected to be different across bit-widths.
337+ pub stderr_per_bitwidth : bool ,
336338}
337339
338340impl TestProps {
@@ -372,6 +374,7 @@ impl TestProps {
372374 rustfix_only_machine_applicable : false ,
373375 assembly_output : None ,
374376 should_ice : false ,
377+ stderr_per_bitwidth : false ,
375378 }
376379 }
377380
@@ -538,6 +541,10 @@ impl TestProps {
538541 if self . assembly_output . is_none ( ) {
539542 self . assembly_output = config. parse_assembly_output ( ln) ;
540543 }
544+
545+ if !self . stderr_per_bitwidth {
546+ self . stderr_per_bitwidth = config. parse_stderr_per_bitwidth ( ln) ;
547+ }
541548 } ) ;
542549 }
543550
@@ -774,6 +781,10 @@ impl Config {
774781 self . parse_name_directive ( line, "ignore-pass" )
775782 }
776783
784+ fn parse_stderr_per_bitwidth ( & self , line : & str ) -> bool {
785+ self . parse_name_directive ( line, "stderr-per-bitwidth" )
786+ }
787+
777788 fn parse_assembly_output ( & self , line : & str ) -> Option < String > {
778789 self . parse_name_value_directive ( line, "assembly-output" ) . map ( |r| r. trim ( ) . to_string ( ) )
779790 }
0 commit comments