File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -279,8 +279,6 @@ impl TransCrate for MetadataOnlyTransCrate {
279279 sess. abort_if_errors ( ) ;
280280 if !sess. opts . crate_types . contains ( & CrateType :: CrateTypeRlib )
281281 && !sess. opts . crate_types . contains ( & CrateType :: CrateTypeDylib )
282- // Don't error when running under compiletest
283- && :: std:: env:: var ( "RUSTC_COMPILETEST" ) != Ok ( "1" . to_string ( ) )
284282 {
285283 sess. fatal ( "Executables are not supported by the metadata-only backend." ) ;
286284 }
Original file line number Diff line number Diff line change @@ -1278,7 +1278,7 @@ impl<'test> TestCx<'test> {
12781278 TargetLocation :: ThisFile ( self . make_exe_name ( ) ) ,
12791279 ) ;
12801280
1281- rustc. arg ( "-L" ) . arg ( & self . aux_output_dir_name ( ) ) . env ( "RUSTC_COMPILETEST" , "1" ) ;
1281+ rustc. arg ( "-L" ) . arg ( & self . aux_output_dir_name ( ) ) ;
12821282
12831283 match self . config . mode {
12841284 CompileFail | Ui => {
You can’t perform that action at this time.
0 commit comments