@@ -430,17 +430,6 @@ pub fn start_async_codegen<B: ExtraBackendMethods>(
430430 let crate_attrs = tcx. hir ( ) . attrs ( rustc_hir:: CRATE_HIR_ID ) ;
431431 let no_builtins = tcx. sess . contains_name ( crate_attrs, sym:: no_builtins) ;
432432 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- } ) ;
444433
445434 let linker_info = LinkerInfo :: new ( tcx, target_cpu) ;
446435 let crate_info = CrateInfo :: new ( tcx) ;
@@ -474,7 +463,6 @@ pub fn start_async_codegen<B: ExtraBackendMethods>(
474463 backend,
475464 crate_name,
476465 metadata,
477- windows_subsystem,
478466 linker_info,
479467 crate_info,
480468
@@ -1814,7 +1802,6 @@ pub struct OngoingCodegen<B: ExtraBackendMethods> {
18141802 pub backend : B ,
18151803 pub crate_name : Symbol ,
18161804 pub metadata : EncodedMetadata ,
1817- pub windows_subsystem : Option < String > ,
18181805 pub linker_info : LinkerInfo ,
18191806 pub crate_info : CrateInfo ,
18201807 pub coordinator_send : Sender < Box < dyn Any + Send > > ,
@@ -1859,7 +1846,6 @@ impl<B: ExtraBackendMethods> OngoingCodegen<B> {
18591846 CodegenResults {
18601847 crate_name : self . crate_name ,
18611848 metadata : self . metadata ,
1862- windows_subsystem : self . windows_subsystem ,
18631849 linker_info : self . linker_info ,
18641850 crate_info : self . crate_info ,
18651851
0 commit comments