diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-01-06 15:24:52 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-01-06 15:24:52 -0800 |
| commit | f358dbf1e7c3c3b474164f3d8bb4bd9f8e563c29 (patch) | |
| tree | 4f89b89075c76c44705aa0da56d47d487ab725a6 /src/test/debuginfo | |
| parent | e2f97f51ad4cf902e5a5835b5332447fe59089c4 (diff) | |
| parent | d33857208f9af74fd414c79eeda40bdf50bf4574 (diff) | |
| download | rust-f358dbf1e7c3c3b474164f3d8bb4bd9f8e563c29.tar.gz rust-f358dbf1e7c3c3b474164f3d8bb4bd9f8e563c29.zip | |
rollup merge of #20557: cactorium/prettyprinters
As per https://github.com/rust-lang/rust/issues/20405. To be more precise, the changes just the processing of enums when the name is "RUST$ENCODED$ENUM$..." so it correctly parses when there is more than one number encoding the location of the field it's looking for to determine state of the enum
Diffstat (limited to 'src/test/debuginfo')
| -rw-r--r-- | src/test/debuginfo/gdb-pretty-struct-and-enums.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/debuginfo/gdb-pretty-struct-and-enums.rs b/src/test/debuginfo/gdb-pretty-struct-and-enums.rs index 64c120e1ab3..4b2628b2a1f 100644 --- a/src/test/debuginfo/gdb-pretty-struct-and-enums.rs +++ b/src/test/debuginfo/gdb-pretty-struct-and-enums.rs @@ -69,6 +69,12 @@ // gdb-command: print nested_variant2 // gdb-check:$16 = NestedVariant2 = {abc = NestedStruct = {regular_struct = RegularStruct = {the_first_field = 117, the_second_field = 118.5, the_third_field = false, the_fourth_field = "NestedStructString10"}, tuple_struct = TupleStruct = {119.5, 120}, empty_struct = EmptyStruct, c_style_enum = CStyleEnumVar3, mixed_enum = MixedEnumStructVar = {field1 = 121.5, field2 = -122}}} +// gdb-command: print none_check1 +// gdb-check:$17 = None + +// gdb-command: print none_check2 +// gdb-check:$18 = None + use self::CStyleEnum::{CStyleEnumVar1, CStyleEnumVar2, CStyleEnumVar3}; use self::MixedEnum::{MixedEnumCStyleVar, MixedEnumTupleVar, MixedEnumStructVar}; use self::NestedEnum::{NestedVariant1, NestedVariant2}; @@ -170,6 +176,9 @@ fn main() { } }; + let none_check1: Option<(uint, Vec<uint>)> = None; + let none_check2: Option<String> = None; + zzz(); // #break } |
