@@ -430,17 +430,6 @@ pub fn start_async_codegen<B: ExtraBackendMethods>(
430
430
let crate_attrs = tcx. hir ( ) . attrs ( rustc_hir:: CRATE_HIR_ID ) ;
431
431
let no_builtins = tcx. sess . contains_name ( crate_attrs, sym:: no_builtins) ;
432
432
let is_compiler_builtins = tcx. sess . contains_name ( crate_attrs, sym:: compiler_builtins) ;
433
- let subsystem = tcx. sess . first_attr_value_str_by_name ( crate_attrs, sym:: windows_subsystem) ;
434
- let windows_subsystem = subsystem. map ( |subsystem| {
435
- if subsystem != sym:: windows && subsystem != sym:: console {
436
- tcx. sess . fatal ( & format ! (
437
- "invalid windows subsystem `{}`, only \
438
- `windows` and `console` are allowed",
439
- subsystem
440
- ) ) ;
441
- }
442
- subsystem. to_string ( )
443
- } ) ;
444
433
445
434
let linker_info = LinkerInfo :: new ( tcx, target_cpu) ;
446
435
let crate_info = CrateInfo :: new ( tcx) ;
@@ -474,7 +463,6 @@ pub fn start_async_codegen<B: ExtraBackendMethods>(
474
463
backend,
475
464
crate_name,
476
465
metadata,
477
- windows_subsystem,
478
466
linker_info,
479
467
crate_info,
480
468
@@ -1814,7 +1802,6 @@ pub struct OngoingCodegen<B: ExtraBackendMethods> {
1814
1802
pub backend : B ,
1815
1803
pub crate_name : Symbol ,
1816
1804
pub metadata : EncodedMetadata ,
1817
- pub windows_subsystem : Option < String > ,
1818
1805
pub linker_info : LinkerInfo ,
1819
1806
pub crate_info : CrateInfo ,
1820
1807
pub coordinator_send : Sender < Box < dyn Any + Send > > ,
@@ -1859,7 +1846,6 @@ impl<B: ExtraBackendMethods> OngoingCodegen<B> {
1859
1846
CodegenResults {
1860
1847
crate_name : self . crate_name ,
1861
1848
metadata : self . metadata ,
1862
- windows_subsystem : self . windows_subsystem ,
1863
1849
linker_info : self . linker_info ,
1864
1850
crate_info : self . crate_info ,
1865
1851
0 commit comments