[core] Rename LockRankSet::name to member_name.

This commit is contained in:
Jim Blandy 2024-04-23 11:11:09 -07:00 committed by Erich Gubler
parent 0ce5996891
commit f56914cea9
2 changed files with 5 additions and 5 deletions

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,

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 {