Skip to content

Commit 69b86f6

Browse files
committed
Remove unused LinkSelfContainedDefault::is_linker_enabled method.
1 parent 56dc98b commit 69b86f6

File tree

1 file changed

+0
-13
lines changed
  • compiler/rustc_target/src/spec

1 file changed

+0
-13
lines changed

compiler/rustc_target/src/spec/mod.rs

-13
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)