mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 20:09:19 +00:00
Thread global symbol interner through as if it was a local
This commit is contained in:
parent
c4582f6d18
commit
0522503f14
3 changed files with 39 additions and 26 deletions
|
@ -3,7 +3,7 @@
|
|||
use libloading::Library;
|
||||
use proc_macro_api::{ProcMacroKind, RustCInfo};
|
||||
|
||||
use crate::{dylib::LoadProcMacroDylibError, tt};
|
||||
use crate::{dylib::LoadProcMacroDylibError, server::SYMBOL_INTERNER, tt};
|
||||
|
||||
pub(crate) struct ProcMacros {
|
||||
exported_macros: Vec<proc_macro::bridge::client::ProcMacro>,
|
||||
|
@ -59,7 +59,7 @@ impl ProcMacros {
|
|||
} if *trait_name == macro_name => {
|
||||
let res = client.run(
|
||||
&proc_macro::bridge::server::SameThread,
|
||||
crate::server::RustAnalyzer::default(),
|
||||
crate::server::RustAnalyzer { interner: &SYMBOL_INTERNER },
|
||||
parsed_body,
|
||||
true,
|
||||
);
|
||||
|
@ -70,7 +70,7 @@ impl ProcMacros {
|
|||
{
|
||||
let res = client.run(
|
||||
&proc_macro::bridge::server::SameThread,
|
||||
crate::server::RustAnalyzer::default(),
|
||||
crate::server::RustAnalyzer { interner: &SYMBOL_INTERNER },
|
||||
parsed_body,
|
||||
true,
|
||||
);
|
||||
|
@ -81,7 +81,7 @@ impl ProcMacros {
|
|||
{
|
||||
let res = client.run(
|
||||
&proc_macro::bridge::server::SameThread,
|
||||
crate::server::RustAnalyzer::default(),
|
||||
crate::server::RustAnalyzer { interner: &SYMBOL_INTERNER },
|
||||
parsed_attributes,
|
||||
parsed_body,
|
||||
true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue