File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ impl LockMetadata {
124
124
res
125
125
}
126
126
127
- fn pre_lock ( this : & Arc < LockMetadata > , double_lock_self_allowed : bool ) {
127
+ fn pre_lock ( this : & Arc < LockMetadata > , _double_lock_self_allowed : bool ) {
128
128
LOCKS_HELD . with ( |held| {
129
129
// For each lock which is currently locked, check that no lock's locked-before
130
130
// set includes the lock we're about to lock, which would imply a lockorder
@@ -136,7 +136,7 @@ impl LockMetadata {
136
136
// must be maintained, and doing so across a set of otherwise-identical mutexes
137
137
// is fraught with issues.
138
138
#[ cfg( feature = "backtrace" ) ]
139
- debug_assert ! ( double_lock_self_allowed ,
139
+ debug_assert ! ( _double_lock_self_allowed ,
140
140
"Tried to acquire a lock while it was held!\n Lock constructed at {}" ,
141
141
get_construction_location( & this. _lock_construction_bt) ) ;
142
142
#[ cfg( not( feature = "backtrace" ) ) ]
You can’t perform that action at this time.
0 commit comments