]> git.lizzy.rs Git - rust.git/blobdiff - src/stacked_borrows.rs
deduplicate RangeMap elements in iter_mut
[rust.git] / src / stacked_borrows.rs
index 27d4a4f7f7b5801adf3bbe2e1cf7d37f11d9393a..1fc705c03bb5e30c06a5ea0537b0b6aa150f4e07 100644 (file)
@@ -67,7 +67,7 @@ pub enum BorStackItem {
 }
 
 /// Extra per-location state
-#[derive(Clone, Debug)]
+#[derive(Clone, Debug, PartialEq, Eq)]
 pub struct Stack {
     borrows: Vec<BorStackItem>, // used as a stack; never empty
     frozen_since: Option<Timestamp>, // virtual frozen "item" on top of the stack