about summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa/src
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2023-07-21 08:38:28 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2023-07-31 16:21:02 +1000
commit4a120f33f78961808875460048e6fc4d4e8ba532 (patch)
tree0ac33eb5fd54cbc33e11338ecb7c8e7aa372976f /compiler/rustc_codegen_ssa/src
parente78fb95dfa40ee9fdf1997009e572fb7ce737080 (diff)
downloadrust-4a120f33f78961808875460048e6fc4d4e8ba532.tar.gz
rust-4a120f33f78961808875460048e6fc4d4e8ba532.zip
Remove `ExtraBackendMethods::spawn_thread`.
It's no longer used, and `spawn_named_thread` is preferable, because
naming threads is helpful when profiling.
Diffstat (limited to 'compiler/rustc_codegen_ssa/src')
-rw-r--r--compiler/rustc_codegen_ssa/src/traits/backend.rs9
1 files changed, 0 insertions, 9 deletions
diff --git a/compiler/rustc_codegen_ssa/src/traits/backend.rs b/compiler/rustc_codegen_ssa/src/traits/backend.rs
index 1991b55f191..0a02ca6b317 100644
--- a/compiler/rustc_codegen_ssa/src/traits/backend.rs
+++ b/compiler/rustc_codegen_ssa/src/traits/backend.rs
@@ -142,15 +142,6 @@ pub trait ExtraBackendMethods:
         target_features: &[String],
     ) -> TargetMachineFactoryFn<Self>;
 
-    fn spawn_thread<F, T>(_time_trace: bool, f: F) -> std::thread::JoinHandle<T>
-    where
-        F: FnOnce() -> T,
-        F: Send + 'static,
-        T: Send + 'static,
-    {
-        std::thread::spawn(f)
-    }
-
     fn spawn_named_thread<F, T>(
         _time_trace: bool,
         name: String,