]> git.proxmox.com Git - rustc.git/blobdiff - compiler/rustc_codegen_cranelift/src/debuginfo/emit.rs
New upstream version 1.59.0+dfsg1
[rustc.git] / compiler / rustc_codegen_cranelift / src / debuginfo / emit.rs
index c8c2d50b03409619bcc05a668f4e0002a5d3e0d4..589910ede9688ce330e42bc2552ae3b9ea67cd54 100644 (file)
@@ -67,10 +67,8 @@ 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> {
-        use std::convert::TryInto;
-
         for reloc in self.relocs.drain(..) {
             match reloc.name {
                 super::DebugRelocName::Section(_) => unreachable!(),