1 parent 92cda27 commit 33e1b8dCopy full SHA for 33e1b8d
1 file changed
wgpu-core/src/storage.rs
@@ -96,7 +96,7 @@ where
96
let (index, epoch) = id.unzip();
97
match mem::replace(&mut self.map[index as usize], Element::Vacant) {
98
Element::Occupied(value, storage_epoch) => {
99
- assert_eq!(epoch, storage_epoch);
+ assert_eq!(epoch, storage_epoch, "id epoch mismatch");
100
value
101
}
102
Element::Vacant => panic!("Cannot remove a vacant resource"),
0 commit comments