This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-17
lines changed
compiler/rustc_target/src Expand file tree Collapse file tree 2 files changed +5
-17
lines changed Original file line number Diff line number Diff line change 77//! more 'stuff' here in the future. It does not have a dependency on
88//! LLVM.
99
10+ // tidy-alphabetical-start
11+ #![ allow( internal_features) ]
1012#![ doc( html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/" ) ]
1113#![ doc( rust_logo) ]
12- #![ feature( min_exhaustive_patterns) ]
13- #![ feature( rustdoc_internals) ]
1414#![ feature( assert_matches) ]
1515#![ feature( iter_intersperse) ]
1616#![ feature( let_chains) ]
17+ #![ feature( min_exhaustive_patterns) ]
1718#![ feature( rustc_attrs) ]
18- #![ feature( step_trait ) ]
19- #! [ allow ( internal_features ) ]
19+ #![ feature( rustdoc_internals ) ]
20+ // tidy-alphabetical-end
2021
2122use std:: path:: { Path , PathBuf } ;
2223
Original file line number Diff line number Diff line change @@ -603,19 +603,6 @@ impl LinkSelfContainedDefault {
603603 self == LinkSelfContainedDefault :: False
604604 }
605605
606- /// Returns whether the target spec explicitly requests self-contained linking, i.e. not via
607- /// inference.
608- pub fn is_linker_enabled ( self ) -> bool {
609- match self {
610- LinkSelfContainedDefault :: True => true ,
611- LinkSelfContainedDefault :: False => false ,
612- LinkSelfContainedDefault :: WithComponents ( c) => {
613- c. contains ( LinkSelfContainedComponents :: LINKER )
614- }
615- _ => false ,
616- }
617- }
618-
619606 /// Returns the key to use when serializing the setting to json:
620607 /// - individual components in a `link-self-contained` object value
621608 /// - the other variants as a backwards-compatible `crt-objects-fallback` string
You can’t perform that action at this time.
0 commit comments