Register snapshots

This commit is contained in:
Brian Anderson
2013-05-04 14:25:41 -07:00
parent b872900a5b
commit 8081e8debf
47 changed files with 16 additions and 5720 deletions

View File

@@ -451,17 +451,6 @@ impl <K: Eq + Hash + IterBytes ,V: Copy> MapChain<K,V>{
// ugh: can't get this to compile with mut because of the
// lack of flow sensitivity.
#[cfg(stage0)]
fn get_map(&self) -> &'self HashMap<K,@V> {
match *self {
BaseMapChain (~ref map) => map,
ConsMapChain (~ref map,_) => map
}
}
// ugh: can't get this to compile with mut because of the
// lack of flow sensitivity.
#[cfg(not(stage0))]
fn get_map<'a>(&'a self) -> &'a HashMap<K,@V> {
match *self {
BaseMapChain (~ref map) => map,