mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-04 10:50:15 +00:00
Remove salsa from proc-macro server dep tree
This commit is contained in:
parent
2780dfd80c
commit
3d63140758
9 changed files with 88 additions and 15 deletions
|
@ -23,11 +23,9 @@ indexmap.workspace = true
|
|||
paths = { workspace = true, features = ["serde1"] }
|
||||
tt.workspace = true
|
||||
stdx.workspace = true
|
||||
# Ideally this crate would not depend on salsa things, but we need span information here which wraps
|
||||
# InternIds for the syntax context
|
||||
span.workspace = true
|
||||
# only here due to the `Env` newtype :/
|
||||
base-db.workspace = true
|
||||
# span = {workspace = true, default-features = false} does not work
|
||||
span = { path = "../span", version = "0.0.0", default-features = false}
|
||||
|
||||
intern.workspace = true
|
||||
|
||||
[lints]
|
||||
|
|
|
@ -9,7 +9,6 @@ pub mod json;
|
|||
pub mod msg;
|
||||
mod process;
|
||||
|
||||
use base_db::Env;
|
||||
use paths::{AbsPath, AbsPathBuf};
|
||||
use span::Span;
|
||||
use std::{fmt, io, sync::Arc};
|
||||
|
@ -148,7 +147,7 @@ impl ProcMacro {
|
|||
&self,
|
||||
subtree: &tt::Subtree<Span>,
|
||||
attr: Option<&tt::Subtree<Span>>,
|
||||
env: Env,
|
||||
env: Vec<(String, String)>,
|
||||
def_site: Span,
|
||||
call_site: Span,
|
||||
mixed_site: Span,
|
||||
|
@ -179,7 +178,7 @@ impl ProcMacro {
|
|||
},
|
||||
},
|
||||
lib: self.dylib_path.to_path_buf().into(),
|
||||
env: env.into(),
|
||||
env,
|
||||
current_dir,
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue