mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
Remove client side proc-macro version check
This commit is contained in:
parent
39e86e78c3
commit
3ae9bfe266
2 changed files with 3 additions and 14 deletions
|
@ -648,8 +648,7 @@ pub(crate) fn load_proc_macro(
|
|||
) -> ProcMacroLoadResult {
|
||||
let server = server.map_err(ToOwned::to_owned)?;
|
||||
let res: Result<Vec<_>, String> = (|| {
|
||||
let dylib = MacroDylib::new(path.to_path_buf())
|
||||
.map_err(|io| format!("Proc-macro dylib loading failed: {io}"))?;
|
||||
let dylib = MacroDylib::new(path.to_path_buf());
|
||||
let vec = server.load_dylib(dylib).map_err(|e| format!("{e}"))?;
|
||||
if vec.is_empty() {
|
||||
return Err("proc macro library returned no proc macros".to_string());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue