about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbjorn3 <bjorn3@users.noreply.github.com>2021-12-30 12:56:45 +0100
committerbjorn3 <bjorn3@users.noreply.github.com>2021-12-30 12:56:45 +0100
commitf6d0e14b7925f6eb0cedaf1df5fd83a3400d4683 (patch)
treeeb9e9e146d46258740e801c7f95809bfa5f0a694
parent6b4e640dcb76473a84e96af5d63b2ec8e3cd536d (diff)
downloadrust-f6d0e14b7925f6eb0cedaf1df5fd83a3400d4683.tar.gz
rust-f6d0e14b7925f6eb0cedaf1df5fd83a3400d4683.zip
Fix dead code warning on windows
-rw-r--r--src/debuginfo/emit.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/debuginfo/emit.rs b/src/debuginfo/emit.rs
index 4120ba6e533..589910ede96 100644
--- a/src/debuginfo/emit.rs
+++ b/src/debuginfo/emit.rs
@@ -67,7 +67,7 @@ impl WriterRelocate {
     }
 
     /// Perform the collected relocations to be usable for JIT usage.
-    #[cfg(feature = "jit")]
+    #[cfg(all(feature = "jit", not(windows)))]
     pub(super) fn relocate_for_jit(mut self, jit_module: &cranelift_jit::JITModule) -> Vec<u8> {
         for reloc in self.relocs.drain(..) {
             match reloc.name {