mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
Revert "Handle dev-dependency cycles"
This commit is contained in:
parent
a96bb452a7
commit
10d7d7304b
13 changed files with 52 additions and 1798 deletions
|
@ -417,11 +417,6 @@ impl CrateGraph {
|
|||
Ok(())
|
||||
}
|
||||
|
||||
pub fn duplicate(&mut self, id: CrateId) -> CrateId {
|
||||
let data = self[id].clone();
|
||||
self.arena.alloc(data)
|
||||
}
|
||||
|
||||
pub fn add_dep(
|
||||
&mut self,
|
||||
from: CrateId,
|
||||
|
@ -617,12 +612,6 @@ impl ops::Index<CrateId> for CrateGraph {
|
|||
}
|
||||
}
|
||||
|
||||
impl ops::IndexMut<CrateId> for CrateGraph {
|
||||
fn index_mut(&mut self, crate_id: CrateId) -> &mut CrateData {
|
||||
&mut self.arena[crate_id]
|
||||
}
|
||||
}
|
||||
|
||||
impl CrateData {
|
||||
fn add_dep(&mut self, dep: Dependency) {
|
||||
self.dependencies.push(dep)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue