[core] Rename LockRankSet::name to member_name.

This commit is contained in:
Jim Blandy authored and Erich Gubler committed 2024-08-28 22:44:20 -04:00
1 parent 0ce5996891
commit f56914cea9
2 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -63,7 +63,7 @@ macro_rules! define_lock_ranks {
}
impl LockRankSet {
pub fn name(self) -> &'static str {
pub fn member_name(self) -> &'static str {
match self {
$(
LockRankSet:: $name => $member,
+4 -4
View File
@@ -144,12 +144,12 @@ fn acquire(new_rank: LockRank, location: &'static Location<'static>) -> LockStat
last locked {:<35} at {}\n\
now locking {:<35} at {}\n\
Locking {} after locking {} is not permitted.",
last_rank.bit.name(),
last_rank.bit.member_name(),
last_location,
new_rank.bit.name(),
new_rank.bit.member_name(),
location,
new_rank.bit.name(),
last_rank.bit.name(),
new_rank.bit.member_name(),
last_rank.bit.member_name(),
);
}
LOCK_STATE.set(LockState {