mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-28 05:53:45 +00:00
commit
07e535b6df
1 changed files with 1 additions and 1 deletions
|
@ -1266,7 +1266,7 @@ fn add_target_crate_root(
|
|||
if is_proc_macro {
|
||||
let proc_macro = match build_data.as_ref().map(|it| it.proc_macro_dylib_path.as_ref()) {
|
||||
Some(it) => it.cloned().map(|path| Ok((Some(cargo_name.to_owned()), path))),
|
||||
None => Some(Err("crate has not yet been build".to_owned())),
|
||||
None => Some(Err("crate has not yet been built".to_owned())),
|
||||
};
|
||||
if let Some(proc_macro) = proc_macro {
|
||||
proc_macros.insert(crate_id, proc_macro);
|
||||
|
|
Loading…
Reference in a new issue