Skip to content

Commit 6d030a5

Browse files
[debuginfo] Update src/test/debuginfo/mutex.rs for new cpp-like enum debuginfo encoding.
1 parent ee634fb commit 6d030a5

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/test/debuginfo/mutex.rs

+7-5
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,20 @@
2020
// cdb-check: [<Raw View>] [Type: core::cell::UnsafeCell<i32>]
2121

2222
//
23-
// cdb-command:dx lock,d
24-
// cdb-check:lock,d : Ok [Type: enum2$<core::result::Result<std::sync::mutex::MutexGuard<i32>,enum2$<std::sync::poison::TryLockError<std::sync::mutex::MutexGuard<i32> >, 0, 1, Poisoned> > >]
25-
// cdb-check: [variant] : Ok
23+
// cdb-command:dx _lock,d
24+
// cdb-check:_lock,d : Ok [Type: enum2$<core::result::Result<std::sync::mutex::MutexGuard<i32>,enum2$<std::sync::poison::TryLockError<std::sync::mutex::MutexGuard<i32> > > > >]
2625
// cdb-check: [...] __0 [Type: std::sync::mutex::MutexGuard<i32>]
2726

2827
use std::sync::Mutex;
2928

30-
#[allow(unused_variables)]
3129
fn main() {
3230
let m = Mutex::new(0);
33-
let lock = m.try_lock();
31+
let _lock = m.try_lock();
32+
33+
println!("this line avoids an `Ambiguous symbol error` while setting the breakpoint");
34+
3435
zzz(); // #break
3536
}
3637

38+
#[inline(never)]
3739
fn zzz() {}

0 commit comments

Comments
 (0)