mirror of
https://github.com/salsa-rs/salsa.git
synced 2025-01-23 13:10:19 +00:00
more descriptive assertion failure for overflow
This commit is contained in:
parent
e42c68913e
commit
a45d482a97
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ where
|
||||||
}
|
}
|
||||||
|
|
||||||
let old_revision = self.shared_state.revision.fetch_add(1, Ordering::SeqCst);
|
let old_revision = self.shared_state.revision.fetch_add(1, Ordering::SeqCst);
|
||||||
assert!(old_revision != usize::max_value());
|
assert!(old_revision != usize::max_value(), "revision overflow");
|
||||||
let result = Revision {
|
let result = Revision {
|
||||||
generation: 1 + old_revision as u64,
|
generation: 1 + old_revision as u64,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue