Skip to content

Commit 2f890eb

Browse files
authored
[core] Improve assert failure message for id epoch mismatches. (#7871)
1 parent 92cda27 commit 2f890eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wgpu-core/src/storage.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ where
9696
let (index, epoch) = id.unzip();
9797
match mem::replace(&mut self.map[index as usize], Element::Vacant) {
9898
Element::Occupied(value, storage_epoch) => {
99-
assert_eq!(epoch, storage_epoch);
99+
assert_eq!(epoch, storage_epoch, "id epoch mismatch");
100100
value
101101
}
102102
Element::Vacant => panic!("Cannot remove a vacant resource"),

0 commit comments

Comments
 (0)