Skip to content

Commit d1acee6

Browse files
author
duncan
committed
remove hack_recover_crate_name
1 parent b112760 commit d1acee6

File tree

4 files changed

+2
-34
lines changed

4 files changed

+2
-34
lines changed

crates/rust-analyzer/src/hack_recover_crate_name.rs

Lines changed: 0 additions & 25 deletions
This file was deleted.

crates/rust-analyzer/src/handlers/request.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ use crate::{
3636
config::{Config, RustfmtConfig, WorkspaceSymbolConfig},
3737
diagnostics::convert_diagnostic,
3838
global_state::{FetchWorkspaceRequest, GlobalState, GlobalStateSnapshot},
39-
hack_recover_crate_name,
4039
line_index::LineEndings,
4140
lsp::{
4241
ext::{
@@ -299,9 +298,7 @@ pub(crate) fn handle_discover_test(
299298
}
300299
None => (snap.analysis.discover_test_roots()?, None),
301300
};
302-
for t in &tests {
303-
hack_recover_crate_name::insert_name(t.id.clone());
304-
}
301+
305302
Ok(lsp_ext::DiscoverTestResults {
306303
tests: tests
307304
.into_iter()

crates/rust-analyzer/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ mod command;
1515
mod diagnostics;
1616
mod discover;
1717
mod flycheck;
18-
mod hack_recover_crate_name;
1918
mod line_index;
2019
mod main_loop;
2120
mod mem_docs;

crates/rust-analyzer/src/main_loop.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ use crate::{
2626
file_id_to_url, url_to_file_id, FetchBuildDataResponse, FetchWorkspaceRequest,
2727
FetchWorkspaceResponse, GlobalState,
2828
},
29-
hack_recover_crate_name,
3029
handlers::dispatch::{NotificationDispatcher, RequestDispatcher},
3130
lsp::{
3231
from_proto, to_proto,
@@ -634,9 +633,7 @@ impl GlobalState {
634633
.filter_map(|f| snapshot.analysis.discover_tests_in_file(f).ok())
635634
.flatten()
636635
.collect::<Vec<_>>();
637-
for t in &tests {
638-
hack_recover_crate_name::insert_name(t.id.clone());
639-
}
636+
640637
Task::DiscoverTest(lsp_ext::DiscoverTestResults {
641638
tests: tests
642639
.into_iter()

0 commit comments

Comments
 (0)