diff --git a/crates/ra_proc_macro_srv/src/dylib.rs b/crates/ra_proc_macro_srv/src/dylib.rs index 525c7ac7b5..738b10d566 100644 --- a/crates/ra_proc_macro_srv/src/dylib.rs +++ b/crates/ra_proc_macro_srv/src/dylib.rs @@ -91,8 +91,7 @@ fn load_library(file: &Path) -> Result { struct ProcMacroLibraryLibloading { // Hold the dylib to prevent it for unloadeding - #[allow(dead_code)] - lib: Library, + _lib: Library, exported_macros: Vec, } @@ -110,7 +109,7 @@ impl ProcMacroLibraryLibloading { macros.to_vec() }; - Ok(ProcMacroLibraryLibloading { lib, exported_macros }) + Ok(ProcMacroLibraryLibloading { _lib: lib, exported_macros }) } }