Auto merge of #12515 - Veykril:rustc-proc-macros, r=Veykril
fix: Pass the build data to rustc_private crates With this all proc-macros should resolve in rustc now when setting up the build script running command properly.
This commit is contained in:
@@ -550,7 +550,7 @@ pub(crate) fn load_proc_macro(
|
||||
}
|
||||
};
|
||||
|
||||
return client
|
||||
let proc_macros: Vec<_> = client
|
||||
.map(|it| it.load_dylib(dylib))
|
||||
.into_iter()
|
||||
.flat_map(|it| match it {
|
||||
@@ -568,6 +568,12 @@ pub(crate) fn load_proc_macro(
|
||||
})
|
||||
.map(|expander| expander_to_proc_macro(expander, dummy_replace))
|
||||
.collect();
|
||||
tracing::info!(
|
||||
"Loaded proc-macros for {}: {:?}",
|
||||
path.display(),
|
||||
proc_macros.iter().map(|it| it.name.clone()).collect::<Vec<_>>()
|
||||
);
|
||||
return proc_macros;
|
||||
|
||||
fn expander_to_proc_macro(
|
||||
expander: proc_macro_api::ProcMacro,
|
||||
|
||||
Reference in New Issue
Block a user