rust/src/test
bors bedbad6119 Auto merge of #48337 - GuillaumeGomez:rustc-explain, r=estebank
Rustc explain

Fixes #48041.

To make the review easier, I separated tests update to code update. Also, I used this script to generate new ui tests stderr:

```python
from os import listdir
from os.path import isdir, isfile, join

PATH = "src/test/ui"

def do_something(path):
    files = [join(path, f) for f in listdir(path)]

    for f in files:
        if isdir(f):
            do_something(f)
            continue
        if not isfile(f) or not f.endswith(".stderr"):
            continue
        x = open(f, "r")
        content = x.read().strip()
        if "error[E" not in content:
            continue
        errors = dict()
        for y in content.splitlines():
            if y.startswith("error[E"):
                errors[y[6:11]] = True
        errors = sorted(errors.keys())
        if len(errors) < 1:
            print("weird... {}".format(f))
            continue
        if len(errors) > 1:
            content += "\n\nYou've got a few errors: {}".format(", ".join(errors))
            content += "\nIf you want more information on an error, try using \"rustc --explain {}\"".format(errors[0])
        else:
            content += "\n\nIf you want more information on this error, try using \"rustc --explain {}\"".format(errors[0])
        content += "\n"
        x = open(f, "w")
        x.write(content)

do_something(PATH)
```
2018-02-26 12:34:52 +00:00
..
auxiliary Remove directory src/rt 2018-02-24 16:45:39 +03:00
codegen
codegen-units
compile-fail Rollup merge of #48302 - mark-i-m:markim_macro-test, r=aturon 2018-02-25 15:54:46 +08:00
compile-fail-fulldeps
debuginfo
incremental
incremental-fulldeps
mir-opt
parse-fail
pretty
run-fail add test for fn main() -> ! 2018-02-22 20:10:36 -05:00
run-fail-fulldeps
run-make test: Fix s390x-unknown-linux-gnu atomic-lock-free test not run for systemz 2018-02-24 01:18:33 +01:00
run-pass Auto merge of #48082 - jseyfried:improve_struct_field_hygiene, r=petrochenkov 2018-02-26 09:41:33 +00:00
run-pass-fulldeps
run-pass-valgrind
rustdoc Rollup merge of #48415 - QuietMisdreavus:traits-on-traits-on-traits, r=Manishearth 2018-02-24 15:52:11 -08:00
rustdoc-js
ui Auto merge of #48337 - GuillaumeGomez:rustc-explain, r=estebank 2018-02-26 12:34:52 +00:00
ui-fulldeps Reduce error codes length when too much are thrown 2018-02-25 12:15:05 +01:00
COMPILER_TESTS.md