From 6d030a51dd40541b3ae80f6b0278e2026c56b95a Mon Sep 17 00:00:00 2001 From: Michael Woerister Date: Fri, 12 Aug 2022 17:16:55 +0200 Subject: [PATCH] [debuginfo] Update src/test/debuginfo/mutex.rs for new cpp-like enum debuginfo encoding. --- src/test/debuginfo/mutex.rs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/test/debuginfo/mutex.rs b/src/test/debuginfo/mutex.rs index e5b8ff1bcfd38..314ba40b0e3d0 100644 --- a/src/test/debuginfo/mutex.rs +++ b/src/test/debuginfo/mutex.rs @@ -20,18 +20,20 @@ // cdb-check: [] [Type: core::cell::UnsafeCell] // -// cdb-command:dx lock,d -// cdb-check:lock,d : Ok [Type: enum2$,enum2$ >, 0, 1, Poisoned> > >] -// cdb-check: [variant] : Ok +// cdb-command:dx _lock,d +// cdb-check:_lock,d : Ok [Type: enum2$,enum2$ > > > >] // cdb-check: [...] __0 [Type: std::sync::mutex::MutexGuard] use std::sync::Mutex; -#[allow(unused_variables)] fn main() { let m = Mutex::new(0); - let lock = m.try_lock(); + let _lock = m.try_lock(); + + println!("this line avoids an `Ambiguous symbol error` while setting the breakpoint"); + zzz(); // #break } +#[inline(never)] fn zzz() {}