rust/tests
bors 7f0fa485a6 Auto merge of #115582 - compiler-errors:refine-yeet, r=oli-obk
Implement refinement lint for RPITIT

Implements a lint that warns against accidentally refining an RPITIT in an implementation. This is not a hard error, and can be suppressed with `#[allow(refining_impl_trait)]`, since this behavior may be desirable -- the lint just serves as an acknowledgement from the impl author that they understand that the types they write in the implementation are an API guarantee.

This compares bounds syntactically, not semantically -- semantic implication is more difficult and essentially relies on adding the ability to keep the RPITIT hidden in the trait system so that things can be proven about the type that shows up in the impl without its own bounds leaking through, either via a new reveal mode or something else. This was experimentally implemented in #111931.

Somewhat opinionated choices:
1. Putting the lint behind `refining_impl_trait` rather than a blanket `refine` lint. This could be changed, but I like keeping the lint specialized to RPITITs so the explanation can be tailored to it.
2. This PR does not include the `#[refine]` attribute or the feature gate, since it's kind of orthogonal and can be added in a separate PR.

r? `@oli-obk`
2023-09-07 07:26:26 +00:00
..
assembly
auxiliary
codegen Auto merge of #114946 - anforowicz:generic-fix-for-asan-lto, r=tmiasko 2023-09-06 20:04:03 +00:00
codegen-units
coverage-map Copy most of tests/run-coverage into tests/coverage-map/status-quo 2023-09-05 11:55:34 +10:00
debuginfo
incremental
mir-opt Refactor how MIR represents composite debuginfo. 2023-09-05 17:20:07 +00:00
pretty
run-coverage update tests that are ignored by debug 2023-09-01 04:01:54 +08:00
run-coverage-rustdoc
run-make ignore-cross-compile remaining tests that run binaries 2023-08-30 13:45:57 +02:00
run-make-fulldeps
run-pass-valgrind
rustdoc Auto merge of #115286 - saethlin:detangler, r=petrochenkov 2023-09-02 04:53:19 +00:00
rustdoc-gui Migrate GUI colors test to original CSS color format 2023-09-03 12:49:22 +02:00
rustdoc-js Correctly handle paths from foreign items 2023-09-02 23:04:37 +02:00
rustdoc-js-std Add tests for type-based search 2023-09-01 15:16:11 +02:00
rustdoc-json
rustdoc-ui
ui Auto merge of #115582 - compiler-errors:refine-yeet, r=oli-obk 2023-09-07 07:26:26 +00:00
ui-fulldeps Implement and test monomorphization 2023-09-06 08:16:04 +00:00
COMPILER_TESTS.md