I tried this code:
struct S(i32);
fn main() {
let s = &S(1);
println!("Hello, world!");
}
When using LLDB with nightly Rust's pretty printers, I expect v --ptr-depth 1 to dereference the pointer to the struct and display its contents:
Process stopped
* thread #1, name = 'pp', stop reason = step over
frame #0: 0x0000555555568bd0 pp`pp::main::hf3117127974a188e at main.rs:5:5
2
3 fn main() {
4 let s = &S(1);
-> 5 println!("Hello, world!");
6 }
(lldb) v --ptr-depth 1
(pp::S *) s = 0x0000555555559a84 {
__0 = 1
}
Instead, it only prints the pointer address:
Process stopped
* thread #1, name = 'pp', stop reason = step over
frame #0: 0x0000555555568bd0 pp`pp::main::hf3117127974a188e at main.rs:5:5
2
3 fn main() {
4 let s = &S(1);
-> 5 println!("Hello, world!");
6 }
(lldb) v --ptr-depth 1
(pp::S *) s = 0x0000555555559a84
This regressed in c39ebea
Meta
rustc --version --verbose:
rustc 1.92.0-nightly (3d8c1c1fc 2025-10-06)
lldb --version:
I tried this code:
When using LLDB with nightly Rust's pretty printers, I expect
v --ptr-depth 1to dereference the pointer to the struct and display its contents:Instead, it only prints the pointer address:
This regressed in c39ebea
Meta
rustc --version --verbose:lldb --version: