Skip to content
This repository has been archived by the owner on May 21, 2019. It is now read-only.

Printing Option::None #17

Open
tromey opened this issue Aug 9, 2018 · 0 comments
Open

Printing Option::None #17

tromey opened this issue Aug 9, 2018 · 0 comments

Comments

@tromey
Copy link
Collaborator

tromey commented Aug 9, 2018

See the reduced test case from #16:

use std::option::Option;
enum Union { A(usize), B(usize) }
fn main() {
    let union_none: Option<Union> = Option::None;
    println!("yay");
}

Breaking on the println and doing:

(lldb) fr v
(core::option::Option<tt::Union>) union_none = {}

(Note that this is with the patches to use DW_TAG_variant et al.)

Here gdb prints:

(gdb) p union_none
$1 = core::option::Option<tt::Union>::None

I think lldb should do something similar.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant