Skip to content

Commit

Permalink
compiler/rustc_codegen_llvm/src/lib.rs: remove "unsafe impl Send/Sync"
Browse files Browse the repository at this point in the history
  • Loading branch information
safinaskar committed Feb 11, 2025
1 parent 851cc4b commit 51f49d8
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions compiler/rustc_codegen_llvm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,6 @@ impl WriteBackendMethods for LlvmCodegenBackend {
}
}

unsafe impl Send for LlvmCodegenBackend {} // Llvm is on a per-thread basis
unsafe impl Sync for LlvmCodegenBackend {}

impl LlvmCodegenBackend {
pub fn new() -> Box<dyn CodegenBackend> {
Box::new(LlvmCodegenBackend(()))
Expand Down

0 comments on commit 51f49d8

Please sign in to comment.