rust/src/test
bors 3d5b8c6266 Auto merge of #42278 - gentoo90:gdb-pretty-printers, r=michaelwoerister
Fix GDB pretty-printer for tuples and pointers

Names of children should not be the same, because GDB uses them to distinguish the children.

|Before|After|
|---|---|
|![tuples_before](https://cloud.githubusercontent.com/assets/1297574/26527639/5d6cf10e-43a0-11e7-9498-abfcddb08055.png)|![tuples_after](https://cloud.githubusercontent.com/assets/1297574/26527655/9699233a-43a0-11e7-83c6-f58f713b51a0.png)|

`main.rs`
```rust
enum Test {
    Zero,
    One(i32),
    Two(i32, String),
    Three(i32, String, Vec<String>),
}

fn main() {
    let tuple = (1, 2, "Asdfgh");
    let zero = Test::Zero;
    let one = Test::One(10);
    let two = Test::Two(42, "Qwerty".to_owned());
    let three = Test::Three(9000,
                            "Zxcvbn".to_owned(),
                            vec!["lorem".to_owned(), "ipsum".to_owned(), "dolor".to_owned()]);
    println!(""); // breakpoint here
}
```

`launch.json`
```json
{
    "version": "0.2.0",
    "configurations": [
        {
            "type": "gdb",
            "request": "launch",
            "gdbpath": "rust-gdb",
            "name": "Launch Program",
            "valuesFormatting": "prettyPrinters", //this requires plugin Native Debug >= 0.20.0
            "target": "./target/debug/test_pretty_printers",
            "cwd": "${workspaceRoot}"
        }
    ]
}
```
2017-06-09 18:17:15 +00:00
..
codegen rustc_trans: do not store pair fields if they are ZSTs. 2017-06-06 21:13:13 +03:00
codegen-units translate drop glue using MIR 2017-03-18 02:53:08 +02:00
compile-fail Rollup merge of #42490 - gaurikholkar:master, r=eddyb 2017-06-07 21:58:44 -04:00
compile-fail-fulldeps Remove some needless // gate-test- comments 2017-05-23 20:17:38 +02:00
debuginfo Pretty-printers tests: gdbr -> gdb 2017-06-09 18:51:28 +03:00
incremental incr.comp.: Track expanded spans instead of FileMaps. 2017-05-23 18:20:51 +02:00
mir-opt move "ADT master drop flag" logic to open_drop_for_adt_contents 2017-05-28 10:43:24 +03:00
parse-fail Auto merge of #41990 - qnighy:disallow-underscore-suffix-for-string-like-literals, r=nikomatsakis 2017-06-06 02:56:17 +00:00
pretty Update pretty test for derive attributes 2017-02-05 12:22:29 +10:30
run-fail Unignore tests which work fine now. 2017-04-28 22:31:10 -06:00
run-fail-fulldeps Implement a file-path remapping feature in support of debuginfo and reproducible builds. 2017-04-26 15:44:02 +02:00
run-make Add run-make test for Command::spawn on Windows 2017-06-05 17:57:32 +01:00
run-pass Auto merge of #42482 - eddyb:issue-42467, r=nikomatsakis 2017-06-07 10:09:11 +00:00
run-pass-fulldeps Add conversions from File and Child* handles to Stdio 2017-06-06 15:42:55 -07:00
run-pass-valgrind Removes FIXMEs related to #22405 2017-01-31 21:27:13 -05:00
rustdoc Document direct implementations on type aliases. 2017-06-09 10:57:08 +09:00
ui Auto merge of #42443 - tommyip:better_closure_msg, r=nikomatsakis 2017-06-08 08:37:48 +00:00
ui-fulldeps Introduce 'run-pass' header to 'ui' tests in compiletest. Fix issue #36516. 2017-06-02 23:28:22 +08:00
COMPILER_TESTS.md Move COMPILER_TESTS.md out of the root directory 2017-02-25 00:13:00 -06:00