mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-12-08 21:26:17 +00:00
[core] Improve assert failure message for id epoch mismatches. (#7871)
This commit is contained in:
parent
92cda27b41
commit
2f890eb9b2
@ -96,7 +96,7 @@ where
|
||||
let (index, epoch) = id.unzip();
|
||||
match mem::replace(&mut self.map[index as usize], Element::Vacant) {
|
||||
Element::Occupied(value, storage_epoch) => {
|
||||
assert_eq!(epoch, storage_epoch);
|
||||
assert_eq!(epoch, storage_epoch, "id epoch mismatch");
|
||||
value
|
||||
}
|
||||
Element::Vacant => panic!("Cannot remove a vacant resource"),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user