Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/proc-macro-srv/src/server_impl/token_id.rs')
-rw-r--r--crates/proc-macro-srv/src/server_impl/token_id.rs18
1 files changed, 4 insertions, 14 deletions
diff --git a/crates/proc-macro-srv/src/server_impl/token_id.rs b/crates/proc-macro-srv/src/server_impl/token_id.rs
index e1c96095c8..6c393b8bef 100644
--- a/crates/proc-macro-srv/src/server_impl/token_id.rs
+++ b/crates/proc-macro-srv/src/server_impl/token_id.rs
@@ -1,9 +1,6 @@
//! proc-macro server backend based on [`proc_macro_api::msg::SpanId`] as the backing span.
//! This backend is rather inflexible, used by RustRover and older rust-analyzer versions.
-use std::{
- collections::{HashMap, HashSet},
- ops::{Bound, Range},
-};
+use std::ops::{Bound, Range};
use intern::Symbol;
use rustc_proc_macro::bridge::server;
@@ -26,10 +23,6 @@ impl std::fmt::Debug for SpanId {
type Span = SpanId;
pub struct SpanIdServer<'a> {
- // FIXME: Report this back to the caller to track as dependencies
- pub tracked_env_vars: HashMap<Box<str>, Option<Box<str>>>,
- // FIXME: Report this back to the caller to track as dependencies
- pub tracked_paths: HashSet<Box<str>>,
pub call_site: Span,
pub def_site: Span,
pub mixed_site: Span,
@@ -60,12 +53,9 @@ impl server::Server for SpanIdServer<'_> {
fn injected_env_var(&mut self, _: &str) -> Option<std::string::String> {
None
}
- fn track_env_var(&mut self, var: &str, value: Option<&str>) {
- self.tracked_env_vars.insert(var.into(), value.map(Into::into));
- }
- fn track_path(&mut self, path: &str) {
- self.tracked_paths.insert(path.into());
- }
+ fn track_env_var(&mut self, _: &str, _: Option<&str>) {}
+
+ fn track_path(&mut self, _: &str) {}
fn literal_from_str(&mut self, s: &str) -> Result<Literal<Self::Span>, String> {
literal_from_str(s, self.call_site)