File tree 2 files changed +1
-3
lines changed
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 {
279
279
sess. abort_if_errors ( ) ;
280
280
if !sess. opts . crate_types . contains ( & CrateType :: CrateTypeRlib )
281
281
&& !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 ( ) )
284
282
{
285
283
sess. fatal ( "Executables are not supported by the metadata-only backend." ) ;
286
284
}
Original file line number Diff line number Diff line change @@ -1278,7 +1278,7 @@ impl<'test> TestCx<'test> {
1278
1278
TargetLocation :: ThisFile ( self . make_exe_name ( ) ) ,
1279
1279
) ;
1280
1280
1281
- rustc. arg ( "-L" ) . arg ( & self . aux_output_dir_name ( ) ) . env ( "RUSTC_COMPILETEST" , "1" ) ;
1281
+ rustc. arg ( "-L" ) . arg ( & self . aux_output_dir_name ( ) ) ;
1282
1282
1283
1283
match self . config . mode {
1284
1284
CompileFail | Ui => {
You can’t perform that action at this time.
0 commit comments