rust/src/test
Aaron Hill 93ab12eeab
Improve cause information for NLL higher-ranked errors
This PR has several interconnected pieces:

1. In some of the NLL region error code, we now pass
   around an `ObligationCause`, instead of just a plain `Span`.
   This gets forwarded into `fulfill_cx.register_predicate_obligation`
   during error reporting.
2. The general InferCtxt error reporting code is extended to
   handle `ObligationCauseCode::BindingObligation`
3. A new enum variant `ConstraintCategory::Predicate` is added.
   We try to avoid using this as the 'best blame constraint' - instead,
   we use it to enhance the `ObligationCause` of the `BlameConstraint`
   that we do end up choosing.

As a result, several NLL error messages now contain the same
"the lifetime requirement is introduced here" message as non-NLL
errors.

Having an `ObligationCause` available will likely prove useful
for future improvements to NLL error messages.
2021-09-27 10:23:45 -05:00
..
assembly rustc_codegen_llvm: make sse4.2 imply crc32 for LLVM 14 2021-09-20 11:31:55 -04:00
auxiliary
codegen Pin panic-in-drop=abort test to old pass manager 2021-09-25 12:40:16 +02:00
codegen-units Support incremental in compiletest for non-incremental modes. 2021-09-23 12:16:51 -07:00
debuginfo Remove box syntax from most places in src/test outside of the issues dir 2021-09-26 04:07:44 +02:00
incremental Bless incremental tests. 2021-09-20 08:32:21 +02:00
mir-opt Bless tests 2021-09-25 01:08:41 +01:00
pretty Use ZST for fmt unsafety 2021-09-21 10:04:44 -05:00
run-make Auto merge of #88161 - michaelwoerister:fix-whole-archive-no-bundle, r=petrochenkov 2021-09-07 12:31:11 +00:00
run-make-fulldeps Fix test 2021-09-22 11:48:01 -05:00
run-pass-valgrind
rustdoc Rollup merge of #89198 - hkmatsumoto:hide-hidden-methods, r=jyn514 2021-09-25 18:22:19 -07:00
rustdoc-gui Rollup merge of #88896 - GuillaumeGomez:flakyness, r=camelid 2021-09-13 21:20:43 +02:00
rustdoc-js fix(rustdoc): generics search 2021-07-01 06:40:27 -07:00
rustdoc-js-std Fix linkcheck issues 2021-09-12 02:30:24 +00:00
rustdoc-json rustdoc: Clean up handling of lifetime bounds 2021-09-02 14:27:59 -07:00
rustdoc-ui Don't lint about missing code examples in derived traits 2021-09-17 00:39:15 +02:00
ui Improve cause information for NLL higher-ranked errors 2021-09-27 10:23:45 -05:00
ui-fulldeps Remove box syntax from most places in src/test outside of the issues dir 2021-09-26 04:07:44 +02:00
COMPILER_TESTS.md