rust/src/test
bors a35a3abcda Auto merge of #45050 - petrochenkov:ambind, r=nikomatsakis
resolve: Use same rules for disambiguating fresh bindings in `match` and `let`

Resolve `Unit` as a unit struct pattern in
```rust
struct Unit;

let Unit = x;
```
consistently with
```rust
match x {
    Unit => {}
}
```
It was previously an error.
(The change also applies to unit variants and constants.)

Fixes https://users.rust-lang.org/t/e0530-cannot-shadow-unit-structs-what-in-the-earthly-what/13054
(This particular change doesn't depend on a fix for the issue mentioned in https://users.rust-lang.org/t/e0530-cannot-shadow-unit-structs-what-in-the-earthly-what/13054/4)

cc @rust-lang/lang
r? @nikomatsakis
2017-11-10 19:10:12 +00:00
..
codegen Auto merge of #45205 - rkruppe:saturating-casts, r=eddyb 2017-11-08 17:27:56 +00:00
codegen-units Add regression tests for non-instantiation of inline and const fns. 2017-11-07 08:54:38 +01:00
compile-fail Auto merge of #45050 - petrochenkov:ambind, r=nikomatsakis 2017-11-10 19:10:12 +00:00
compile-fail-fulldeps Add several lints into unused lint group 2017-10-29 22:14:23 +03:00
debuginfo Implement display_hint in gdb pretty printers 2017-10-06 13:05:53 -06:00
incremental Auto merge of #45867 - michaelwoerister:check-ich-stability, r=nikomatsakis 2017-11-08 22:27:06 +00:00
mir-opt change separator from . to - 2017-11-09 12:37:16 +03:00
parse-fail Auto merge of #45773 - Badel2:dotdoteq, r=petrochenkov 2017-11-10 01:40:21 +00:00
pretty Rollup merge of #45784 - harpocrates:fix/print-parens-cast-lt, r=kennytm 2017-11-07 22:40:20 +08:00
run-fail rustc_typeck: use subtyping on the LHS of binops. 2017-10-31 17:34:46 +02: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 Update run-make tests. 2017-11-07 08:54:38 +01:00
run-pass Auto merge of #45804 - gnzlbg:div_intr, r=alexcrichton 2017-11-10 16:42:49 +00:00
run-pass-fulldeps Auto merge of #45773 - Badel2:dotdoteq, r=petrochenkov 2017-11-10 01:40:21 +00:00
run-pass-valgrind Add a run-pass-valgrind test for vecdeque issue 2017-09-24 10:56:08 -07:00
rustdoc Add more elements in the sidebar 2017-11-07 23:45:06 +01:00
ui Auto merge of #45050 - petrochenkov:ambind, r=nikomatsakis 2017-11-10 19:10:12 +00:00
ui-fulldeps Add several lints into unused lint group 2017-10-29 22:14:23 +03:00
COMPILER_TESTS.md Merge ui/README.md into COMPILER_TESTS.md and describe how custom UI normalization works. 2017-07-11 16:57:53 +08:00