rust/src/test
bors da7d405357 Auto merge of #87244 - jackh726:issue-71883, r=estebank
Better diagnostics with mismatched types due to implicit static lifetime

Fixes #78113

I think this is my first diagnostics PR...definitely happy to hear thoughts on the direction/implementation here.

I was originally just trying to solve the error above, where the lifetime on a GAT was causing a cryptic "mismatched types" error. But as I was writing this, I realized that this (unintentionally) also applied to a different case: `wf-in-foreign-fn-decls-issue-80468.rs`. I'm not sure if this diagnostic should get a new error code, or even reuse an existing one. And, there might be some ways to make this even more generalized. Also, the error is a bit more lengthy and verbose than probably needed. So thoughts there are welcome too.

This PR essentially ended up adding a new nice region error pass that triggers if a type doesn't match the self type of an impl which is selected because of a predicate because of an implicit static bound on that self type.

r? `@estebank`
2021-07-20 10:56:08 +00:00
..
assembly
auxiliary
codegen
codegen-units
debuginfo Auto merge of #87153 - michaelwoerister:debuginfo-names-dyn-trait-projection-bounds, r=wesleywiser 2021-07-19 21:25:43 +00:00
incremental
mir-opt
pretty
run-make
run-make-fulldeps
run-pass-valgrind
rustdoc
rustdoc-gui Rollup merge of #87251 - GuillaumeGomez:item-info-width, r=notriddle 2021-07-19 11:37:46 +02:00
rustdoc-js
rustdoc-js-std
rustdoc-json
rustdoc-ui Auto merge of #84959 - camsteffen:lint-suggest-group, r=estebank 2021-07-20 02:11:55 +00:00
rustfix
ui Auto merge of #87244 - jackh726:issue-71883, r=estebank 2021-07-20 10:56:08 +00:00
ui-fulldeps Various diagnostics clean ups/tweaks 2021-07-19 08:43:35 -07:00
COMPILER_TESTS.md