mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 20:09:19 +00:00
Auto merge of #14348 - Veykril:rustc-proc, r=Veykril
fix: Fix rustc proc-macro handling being broken on the rustc workspace itself Also addresses https://github.com/rust-lang/rust-analyzer/issues/13591#issuecomment-1466966952
This commit is contained in:
commit
6f297b9076
2 changed files with 11 additions and 4 deletions
|
@ -429,8 +429,9 @@ impl WorkspaceBuildScripts {
|
|||
for p in rustc.packages() {
|
||||
let package = &rustc[p];
|
||||
if package.targets.iter().any(|&it| rustc[it].is_proc_macro) {
|
||||
if let Some((_, path)) =
|
||||
proc_macro_dylibs.iter().find(|(name, _)| *name == package.name)
|
||||
if let Some((_, path)) = proc_macro_dylibs
|
||||
.iter()
|
||||
.find(|(name, _)| *name.trim_start_matches("lib") == package.name)
|
||||
{
|
||||
bs.outputs[p].proc_macro_dylib_path = Some(path.clone());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue