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 7
7
//! more 'stuff' here in the future. It does not have a dependency on
8
8
//! LLVM.
9
9
10
+ // tidy-alphabetical-start
11
+ #![allow(internal_features)]
10
12
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
11
13
#![doc(rust_logo)]
12
- #![feature(min_exhaustive_patterns)]
13
- #![feature(rustdoc_internals)]
14
14
#![feature(assert_matches)]
15
15
#![feature(iter_intersperse)]
16
16
#![feature(let_chains)]
17
+ #![feature(min_exhaustive_patterns)]
17
18
#![feature(rustc_attrs)]
18
- #![feature(step_trait )]
19
- #![allow(internal_features)]
19
+ #![feature(rustdoc_internals )]
20
+ // tidy-alphabetical-end
20
21
21
22
use std::path::{Path, PathBuf};
22
23
Original file line number Diff line number Diff line change @@ -603,19 +603,6 @@ impl LinkSelfContainedDefault {
603
603
self == LinkSelfContainedDefault::False
604
604
}
605
605
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
-
619
606
/// Returns the key to use when serializing the setting to json:
620
607
/// - individual components in a `link-self-contained` object value
621
608
/// - the other variants as a backwards-compatible `crt-objects-fallback` string
You can’t perform that action at this time.
0 commit comments