aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crates/project_model/src/workspace.rs15
1 files changed, 0 insertions, 15 deletions
diff --git a/crates/project_model/src/workspace.rs b/crates/project_model/src/workspace.rs
index 8a1a60e0e..9ebb0a811 100644
--- a/crates/project_model/src/workspace.rs
+++ b/crates/project_model/src/workspace.rs
@@ -190,21 +190,6 @@ impl ProjectWorkspace {
190 } 190 }
191 } 191 }
192 192
193 pub fn proc_macro_dylib_paths(&self) -> Vec<AbsPathBuf> {
194 match self {
195 ProjectWorkspace::Json { project, sysroot: _ } => project
196 .crates()
197 .filter_map(|(_, krate)| krate.proc_macro_dylib_path.as_ref())
198 .cloned()
199 .collect(),
200 ProjectWorkspace::Cargo { cargo, sysroot: _sysroot, rustc: _rustc_crates } => cargo
201 .packages()
202 .filter_map(|pkg| cargo[pkg].proc_macro_dylib_path.as_ref())
203 .cloned()
204 .collect(),
205 }
206 }
207
208 pub fn n_packages(&self) -> usize { 193 pub fn n_packages(&self) -> usize {
209 match self { 194 match self {
210 ProjectWorkspace::Json { project, .. } => project.n_crates(), 195 ProjectWorkspace::Json { project, .. } => project.n_crates(),