mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-21 07:41:58 +00:00
refactor: Remove CrateGraphBuilder::iter_mut
This commit is contained in:
parent
78aee2a424
commit
7edfeb9674
22 changed files with 75 additions and 1297 deletions
|
@ -311,6 +311,7 @@ pub struct CrateData<Id> {
|
|||
pub type CrateDataBuilder = CrateData<CrateBuilderId>;
|
||||
pub type BuiltCrateData = CrateData<Crate>;
|
||||
|
||||
/// Crate data unrelated to analysis.
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
pub struct ExtraCrateData {
|
||||
pub version: Option<String>,
|
||||
|
@ -601,12 +602,6 @@ impl CrateGraphBuilder {
|
|||
self.arena.iter().map(|(idx, _)| idx)
|
||||
}
|
||||
|
||||
// FIXME: used for fixing up the toolchain sysroot, should be removed and done differently
|
||||
#[doc(hidden)]
|
||||
pub fn iter_mut(&mut self) -> impl Iterator<Item = (CrateBuilderId, &mut CrateBuilder)> + '_ {
|
||||
self.arena.iter_mut()
|
||||
}
|
||||
|
||||
/// Returns an iterator over all transitive dependencies of the given crate,
|
||||
/// including the crate itself.
|
||||
pub fn transitive_deps(&self, of: CrateBuilderId) -> impl Iterator<Item = CrateBuilderId> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue