Move mark & compact GC to top-level module.

This commit is contained in:
Stu Black 2019-07-23 17:56:56 -04:00
parent 650b240dc5
commit 112b6865de
4 changed files with 2 additions and 3 deletions

View File

@ -13,6 +13,7 @@
//! * [mutators](mutators/index.html) is a read-write analogue of `nav`.
pub(crate) mod base;
pub(crate) mod mark_compact;
pub mod mutators;
pub mod nav;
pub mod search;

View File

@ -14,8 +14,6 @@ use crate::Graph;
use symbol_map::indexing::{Indexing, Insertion};
use symbol_map::SymbolId;
pub(crate) mod mark_compact;
/// Mutable handle to a graph vertex ("node handle").
///
/// This zipper-like type enables traversal of a graph along the vertex's

View File

@ -473,7 +473,7 @@ where
/// As `retain_reachable_from`, but working over raw `VertexId`s.
fn retain_reachable_from_ids(mut self, root_ids: &[VertexId]) {
mutators::mark_compact::Collector::retain_reachable(&mut self.graph, root_ids);
crate::mark_compact::Collector::retain_reachable(&mut self.graph, root_ids);
}
}