@@ -586,7 +586,7 @@ fn build_aux_files(
586
586
build_manager : & BuildManager < ' _ > ,
587
587
) -> Result < Vec < OsString > , Errored > {
588
588
let mut extra_args = vec ! [ ] ;
589
- for rev in config. all ( ) {
589
+ for rev in config. comments ( ) {
590
590
for aux in & rev. aux_builds {
591
591
let line = aux. line ( ) ;
592
592
let aux = & * * aux;
@@ -1056,13 +1056,7 @@ fn check_output(
1056
1056
) -> PathBuf {
1057
1057
let target = config. config . target . as_ref ( ) . unwrap ( ) ;
1058
1058
let output = normalize ( output, config. comments , config. revision , kind) ;
1059
- let path = output_path (
1060
- config. path ,
1061
- config. comments ,
1062
- revised ( config. revision , kind) ,
1063
- target,
1064
- config. revision ,
1065
- ) ;
1059
+ let path = output_path ( config, revised ( config. revision , kind) , target) ;
1066
1060
match & config. config . output_conflict_handling {
1067
1061
OutputConflictHandling :: Error => {
1068
1062
let expected_output = std:: fs:: read ( & path) . unwrap_or_default ( ) ;
@@ -1087,20 +1081,13 @@ fn check_output(
1087
1081
path
1088
1082
}
1089
1083
1090
- fn output_path (
1091
- path : & Path ,
1092
- comments : & Comments ,
1093
- kind : String ,
1094
- target : & str ,
1095
- revision : & str ,
1096
- ) -> PathBuf {
1097
- if comments
1098
- . for_revision ( revision)
1099
- . any ( |r| r. stderr_per_bitwidth )
1100
- {
1101
- return path. with_extension ( format ! ( "{}bit.{kind}" , get_pointer_width( target) ) ) ;
1084
+ fn output_path ( config : & TestConfig < ' _ > , kind : String , target : & str ) -> PathBuf {
1085
+ if config. comments ( ) . any ( |r| r. stderr_per_bitwidth ) {
1086
+ return config
1087
+ . path
1088
+ . with_extension ( format ! ( "{}bit.{kind}" , get_pointer_width( target) ) ) ;
1102
1089
}
1103
- path. with_extension ( kind)
1090
+ config . path . with_extension ( kind)
1104
1091
}
1105
1092
1106
1093
// Taken 1:1 from compiletest-rs
0 commit comments