rust/src/test
bors a478e46eb7 Auto merge of #40857 - estebank:recursive, r=arielb1
Point at fields that make the type recursive

On recursive types of infinite size, point at all the fields that make
the type recursive.

```rust
struct Foo {
    bar: Bar,
}

struct Bar {
    foo: Foo,
}
```

outputs

```
error[E0072]: recursive type `Foo` has infinite size
 --> file.rs:1:1
1 | struct Foo {
  | ^^^^^^^^^^ recursive type has infinite size
2 |     bar: Bar,
  |     -------- recursive here
  |
  = help: insert indirection (e.g., a `Box`, `Rc`, or `&`) at some point to make `Foo` representable

error[E0072]: recursive type `Bar` has infinite size
 --> file.rs:5:1
  |
5 | struct Bar {
  | ^^^^^^^^^^ recursive type has infinite size
6 |     foo: Foo,
  |     -------- recursive here
  |
  = help: insert indirection (e.g., a `Box`, `Rc`, or `&`) at some point to make `Bar` representable
```
2017-05-07 13:57:36 +00:00
..
codegen Add simple [repr(align)] codegen test. 2017-05-01 23:13:22 +10:00
codegen-units translate drop glue using MIR 2017-03-18 02:53:08 +02:00
compile-fail Auto merge of #40857 - estebank:recursive, r=arielb1 2017-05-07 13:57:36 +00:00
compile-fail-fulldeps Implement a file-path remapping feature in support of debuginfo and reproducible builds. 2017-04-26 15:44:02 +02:00
debuginfo update gdbr tests 2017-03-09 22:12:36 +01:00
incremental rustc: use monomorphic const_eval for cross-crate enum discriminants. 2017-04-16 01:31:37 +03:00
mir-opt simplify the MirPass traits and passes dramatically 2017-05-02 14:01:01 -04:00
parse-fail Fix a parse-fail test 2017-04-25 11:07:43 +02: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 Reload nameserver information on lookup failure 2017-05-04 23:59:55 -04:00
run-pass Add test for an inference failure. 2017-05-03 13:07:30 -04:00
run-pass-fulldeps add regression test for issue #24106 2017-05-04 19:34:48 -04:00
run-pass-valgrind Removes FIXMEs related to #22405 2017-01-31 21:27:13 -05:00
rustdoc Allow # to appear in rustdoc code output. 2017-05-06 18:07:04 -06:00
ui Auto merge of #40857 - estebank:recursive, r=arielb1 2017-05-07 13:57:36 +00:00
ui-fulldeps/custom-derive Separate "ui-fulldeps" tests from "ui" tests 2017-03-04 21:38:26 +03:00
COMPILER_TESTS.md Move COMPILER_TESTS.md out of the root directory 2017-02-25 00:13:00 -06:00