rust/src/test
bors 576b640a02 Auto merge of #54262 - matthewjasper:explain-in-typeck, r=nikomatsakis
[NLL] Record more infomation on free region constraints in typeck

Changes:

* Makes the span of the MIR return place point to the return type
* Don't try to use a path to a type alias as a path to the adt it aliases (fixes an ICE)
* Don't claim that `self` is declared outside of the function. [see this test](f2995d5b1a (diff-0c9e6b1b204f42129b481df9ce459d44))
* Remove boring/interesting distinction and instead add a `ConstraintCategory` to the constraint.
* Add categories for implicit `Sized` and `Copy` requirements, for closure bounds, for user type annotations and `impl Trait`.
* Don't use the span of the first statement for Locations::All bounds (even if it happens to work on the tests we have)

Future work:

* Fine tuning the heuristic used to choose the place the report the error.
* Reporting multiple places (behind a flag)
* Better closure bounds reporting. This probably requires some discussion.

r? @nikomatsakis
2018-09-23 01:39:54 +00:00
..
auxiliary
codegen add codegen test 2018-09-22 21:01:21 +02:00
codegen-units Really make CGU names unique across crates. 2018-09-12 12:46:48 +02:00
compile-fail stabilize #[panic_handler] 2018-09-07 13:27:30 +02:00
compile-fail-fulldeps Auto merge of #54277 - petrochenkov:afterder, r=alexcrichton 2018-09-17 18:13:26 +00:00
debuginfo make the nil-enum test work again 2018-09-22 21:01:21 +02:00
incremental Auto merge of #53793 - toidiu:ak-stabalize, r=nikomatsakis 2018-09-12 11:27:48 +00:00
incremental-fulldeps Ignore new test on Windows 2018-09-21 10:05:23 -07:00
mir-opt Update mir-opt test suite 2018-09-18 14:36:37 +02:00
parse-fail Fix existing test 2018-09-05 07:03:02 -07:00
pretty Stabilize 'attr_literals' feature. 2018-08-23 19:06:07 -07:00
run-fail Restrict most uses of const_fn to min_const_fn 2018-08-31 08:40:00 +02:00
run-fail-fulldeps mv (mod) codemap source_map 2018-08-19 23:01:00 +02:00
run-make rustc: Continue to tweak "std internal symbols" 2018-08-26 16:34:14 -07:00
run-make-fulldeps Stabilize crate_in_paths, extern_absolute_paths and extern_prelude on all editions. 2018-09-22 09:26:40 +03:00
run-pass allow dead_code 2018-09-23 00:37:08 +02:00
run-pass-fulldeps Added expected (compile-time) outputs. 2018-09-21 16:21:40 +02:00
run-pass-valgrind Implement simple codegen for unsized rvalues. 2018-08-19 08:07:33 +09:00
rustdoc Rollup merge of #54350 - Munksgaard:support-edition-in-doc-test, r=steveklabnik 2018-09-22 09:56:30 +02:00
rustdoc-js Remove outdated rustdoc PinBox tests 2018-09-18 01:42:27 -07:00
rustdoc-ui add -Zui-testing to rustdoc 2018-09-19 18:39:39 -05:00
rustfix
ui Auto merge of #54262 - matthewjasper:explain-in-typeck, r=nikomatsakis 2018-09-23 01:39:54 +00:00
ui-fulldeps Auto merge of #54277 - petrochenkov:afterder, r=alexcrichton 2018-09-17 18:13:26 +00:00
COMPILER_TESTS.md Link compiler test documentation to rustc-guide 2018-08-10 08:05:48 -06:00