about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-05-09 10:54:38 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2024-05-09 10:54:38 +1000
commit69b86f6cae4e5e3a00b0dbdbb89ac6f247984b2f (patch)
treeb65e826b5eb387955d7e35bc9dd7b1122c4dfe6d
parent56dc98b580b6bc7e816bf1b5d73e7df6eafd6245 (diff)
downloadrust-69b86f6cae4e5e3a00b0dbdbb89ac6f247984b2f.tar.gz
rust-69b86f6cae4e5e3a00b0dbdbb89ac6f247984b2f.zip
Remove unused `LinkSelfContainedDefault::is_linker_enabled` method.
-rw-r--r--compiler/rustc_target/src/spec/mod.rs13
1 files changed, 0 insertions, 13 deletions
diff --git a/compiler/rustc_target/src/spec/mod.rs b/compiler/rustc_target/src/spec/mod.rs
index cbb248a0fc2..8307803676e 100644
--- a/compiler/rustc_target/src/spec/mod.rs
+++ b/compiler/rustc_target/src/spec/mod.rs
@@ -603,19 +603,6 @@ impl LinkSelfContainedDefault {
         self == LinkSelfContainedDefault::False
     }
 
-    /// Returns whether the target spec explicitly requests self-contained linking, i.e. not via
-    /// inference.
-    pub fn is_linker_enabled(self) -> bool {
-        match self {
-            LinkSelfContainedDefault::True => true,
-            LinkSelfContainedDefault::False => false,
-            LinkSelfContainedDefault::WithComponents(c) => {
-                c.contains(LinkSelfContainedComponents::LINKER)
-            }
-            _ => false,
-        }
-    }
-
     /// Returns the key to use when serializing the setting to json:
     /// - individual components in a `link-self-contained` object value
     /// - the other variants as a backwards-compatible `crt-objects-fallback` string