rust/tests/ui/impl-trait/in-trait
Dylan DPC 031640ccd2
Rollup merge of #109414 - spastorino:new-rpitit-16, r=compiler-errors
Do not consider synthesized RPITITs on missing items checks

Without this patch for `tests/ui/impl-trait/in-trait/dont-project-to-rpitit-with-no-value.rs` we get ...

```
warning: the feature `return_position_impl_trait_in_trait` is incomplete and may not be safe to use and/or cause compiler crashes
 --> tests/ui/impl-trait/in-trait/dont-project-to-rpitit-with-no-value.rs:4:12
  |
4 | #![feature(return_position_impl_trait_in_trait)]
  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information
  = note: `#[warn(incomplete_features)]` on by default

error[E0046]: not all trait items implemented, missing: `foo`, ``
  --> tests/ui/impl-trait/in-trait/dont-project-to-rpitit-with-no-value.rs:12:1
   |
8  |     fn foo(&self) -> impl Sized;
   |     ----------------------------
   |     |                |
   |     |                `` from trait
   |     `foo` from trait
...
12 | impl MyTrait for i32 {
   | ^^^^^^^^^^^^^^^^^^^^ missing `foo`, `` in implementation

error: aborting due to previous error; 1 warning emitted

For more information about this error, try `rustc --explain E0046`.
```

instead of ...

```
warning: the feature `return_position_impl_trait_in_trait` is incomplete and may not be safe to use and/or cause compiler crashes
  --> $DIR/dont-project-to-rpitit-with-no-value.rs:4:12
   |
LL | #![feature(return_position_impl_trait_in_trait)]
   |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information
   = note: `#[warn(incomplete_features)]` on by default

error[E0046]: not all trait items implemented, missing: `foo`
  --> $DIR/dont-project-to-rpitit-with-no-value.rs:12:1
   |
LL |     fn foo(&self) -> impl Sized;
   |     ---------------------------- `foo` from trait
...
LL | impl MyTrait for i32 {
   | ^^^^^^^^^^^^^^^^^^^^ missing `foo` in implementation

error: aborting due to previous error; 1 warning emitted

For more information about this error, try `rustc --explain E0046`.
```

r? `@compiler-errors`
2023-03-23 00:00:35 +05:30
..
auxiliary Always encode RPITITs 2023-03-21 23:35:46 +00:00
box-coerce-span-in-default.current.stderr Don't install default opaque projection predicates in RPITIT associated type's param-env 2023-03-16 01:59:41 +00:00
box-coerce-span-in-default.next.stderr Don't install default opaque projection predicates in RPITIT associated type's param-env 2023-03-16 01:59:41 +00:00
box-coerce-span-in-default.rs Don't install default opaque projection predicates in RPITIT associated type's param-env 2023-03-16 01:59:41 +00:00
deep-match-works.rs Run existing impl trait in traits tests using -Zlower-impl-trait-in-trait-to-assoc-ty 2023-03-12 10:50:32 -03:00
deep-match.current.stderr Run existing impl trait in traits tests using -Zlower-impl-trait-in-trait-to-assoc-ty 2023-03-12 10:50:32 -03:00
deep-match.next.stderr Run existing impl trait in traits tests using -Zlower-impl-trait-in-trait-to-assoc-ty 2023-03-12 10:50:32 -03:00
deep-match.rs Run existing impl trait in traits tests using -Zlower-impl-trait-in-trait-to-assoc-ty 2023-03-12 10:50:32 -03:00
default-body-type-err-2.current.stderr Don't install default opaque projection predicates in RPITIT associated type's param-env 2023-03-16 01:59:41 +00:00
default-body-type-err-2.next.stderr Don't install default opaque projection predicates in RPITIT associated type's param-env 2023-03-16 01:59:41 +00:00
default-body-type-err-2.rs Don't install default opaque projection predicates in RPITIT associated type's param-env 2023-03-16 01:59:41 +00:00
default-body-type-err.current.stderr Don't install default opaque projection predicates in RPITIT associated type's param-env 2023-03-16 01:59:41 +00:00
default-body-type-err.next.stderr Don't install default opaque projection predicates in RPITIT associated type's param-env 2023-03-16 01:59:41 +00:00
default-body-type-err.rs Don't install default opaque projection predicates in RPITIT associated type's param-env 2023-03-16 01:59:41 +00:00
default-body-with-rpit.current.stderr Add revisions for -Zlower-impl-trait-in-trait-to-assoc-ty fixed tests 2023-03-17 16:01:53 -03:00
default-body-with-rpit.next.stderr Add revisions for -Zlower-impl-trait-in-trait-to-assoc-ty fixed tests 2023-03-17 16:01:53 -03:00
default-body-with-rpit.rs Add revisions for -Zlower-impl-trait-in-trait-to-assoc-ty fixed tests 2023-03-17 16:01:53 -03:00
default-body.rs Don't install default opaque projection predicates in RPITIT associated type's param-env 2023-03-16 01:59:41 +00:00
default-method-binder-shifting.current.stderr Run existing impl trait in traits tests using -Zlower-impl-trait-in-trait-to-assoc-ty 2023-03-12 10:50:32 -03:00
default-method-binder-shifting.next.stderr Run existing impl trait in traits tests using -Zlower-impl-trait-in-trait-to-assoc-ty 2023-03-12 10:50:32 -03:00
default-method-binder-shifting.rs Walk un-shifted nested impl Trait in trait when setting up default trait method assumptions 2023-03-20 04:50:02 +00:00
default-method-constraint.current.stderr Install projection from RPITIT to default trait method opaque correctly 2023-03-16 01:56:49 +00:00
default-method-constraint.next.stderr Install projection from RPITIT to default trait method opaque correctly 2023-03-16 01:56:49 +00:00
default-method-constraint.rs Install projection from RPITIT to default trait method opaque correctly 2023-03-16 01:56:49 +00:00
doesnt-satisfy.current.stderr Add revisions for -Zlower-impl-trait-in-trait-to-assoc-ty fixed tests 2023-03-17 16:01:53 -03:00
doesnt-satisfy.next.stderr Add revisions for -Zlower-impl-trait-in-trait-to-assoc-ty fixed tests 2023-03-17 16:01:53 -03:00
doesnt-satisfy.rs Add revisions for -Zlower-impl-trait-in-trait-to-assoc-ty fixed tests 2023-03-17 16:01:53 -03:00
dont-project-to-rpitit-with-no-value.current.stderr Do not consider synthesized RPITITs on missing items checks 2023-03-21 15:44:12 -03:00
dont-project-to-rpitit-with-no-value.next.stderr Do not consider synthesized RPITITs on missing items checks 2023-03-21 15:44:12 -03:00
dont-project-to-rpitit-with-no-value.rs Do not consider synthesized RPITITs on missing items checks 2023-03-21 15:44:12 -03:00
early.rs Fix generics_of for impl's RPITIT synthesized associated type 2023-03-17 20:01:57 -03:00
encode.rs Run existing impl trait in traits tests using -Zlower-impl-trait-in-trait-to-assoc-ty 2023-03-12 10:50:32 -03:00
foreign.rs Make fns from other crates with RPITIT work 2023-03-14 10:20:35 -03:00
generics-mismatch.current.stderr Fix generics mismatch errors for RPITITs on -Zlower-impl-trait-in-trait-to-assoc-ty 2023-03-17 15:36:02 -03:00
generics-mismatch.next.stderr Fix generics mismatch errors for RPITITs on -Zlower-impl-trait-in-trait-to-assoc-ty 2023-03-17 15:36:02 -03:00
generics-mismatch.rs Fix generics mismatch errors for RPITITs on -Zlower-impl-trait-in-trait-to-assoc-ty 2023-03-17 15:36:02 -03:00
issue-102140.current.stderr Filter out RPITITs in astconv when checking for missing associated types 2023-03-12 10:51:19 -03:00
issue-102140.next.stderr Filter out RPITITs in astconv when checking for missing associated types 2023-03-12 10:51:19 -03:00
issue-102140.rs Filter out RPITITs in astconv when checking for missing associated types 2023-03-12 10:51:19 -03:00
issue-102301.rs Fix generics_of for impl's RPITIT synthesized associated type 2023-03-17 20:01:57 -03:00
issue-102571.current.stderr Add revisions to fixed tests in -Zlower-impl-trait-in-trait-to-assoc-ty 2023-03-15 16:58:37 -03:00
issue-102571.next.stderr Add revisions to fixed tests in -Zlower-impl-trait-in-trait-to-assoc-ty 2023-03-15 16:58:37 -03:00
issue-102571.rs Add revisions to fixed tests in -Zlower-impl-trait-in-trait-to-assoc-ty 2023-03-15 16:58:37 -03:00
method-signature-matches.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-signature-matches.stderr Remove confusing 'while checking' note from opaque future type mismatches 2023-01-22 17:02:47 +00:00
nested-rpitit.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
object-safety.current.stderr Fix object safety checks for new RPITITs 2023-03-12 10:51:20 -03:00
object-safety.next.stderr Fix object safety checks for new RPITITs 2023-03-12 10:51:20 -03:00
object-safety.rs Fix object safety checks for new RPITITs 2023-03-12 10:51:20 -03:00
opaque-in-impl-is-opaque.current.stderr Run existing impl trait in traits tests using -Zlower-impl-trait-in-trait-to-assoc-ty 2023-03-12 10:50:32 -03:00
opaque-in-impl-is-opaque.next.stderr Run existing impl trait in traits tests using -Zlower-impl-trait-in-trait-to-assoc-ty 2023-03-12 10:50:32 -03:00
opaque-in-impl-is-opaque.rs Run existing impl trait in traits tests using -Zlower-impl-trait-in-trait-to-assoc-ty 2023-03-12 10:50:32 -03:00
opaque-in-impl.rs Fix generics_of for impl's RPITIT synthesized associated type 2023-03-17 20:01:57 -03:00
reveal.rs Run existing impl trait in traits tests using -Zlower-impl-trait-in-trait-to-assoc-ty 2023-03-12 10:50:32 -03:00
signature-mismatch.current.stderr Run existing impl trait in traits tests using -Zlower-impl-trait-in-trait-to-assoc-ty 2023-03-12 10:50:32 -03:00
signature-mismatch.next.stderr Run existing impl trait in traits tests using -Zlower-impl-trait-in-trait-to-assoc-ty 2023-03-12 10:50:32 -03:00
signature-mismatch.rs Run existing impl trait in traits tests using -Zlower-impl-trait-in-trait-to-assoc-ty 2023-03-12 10:50:32 -03:00
specialization-broken.current.stderr Add revisions to fixed tests in -Zlower-impl-trait-in-trait-to-assoc-ty 2023-03-15 16:58:37 -03:00
specialization-broken.next.stderr Add revisions to fixed tests in -Zlower-impl-trait-in-trait-to-assoc-ty 2023-03-15 16:58:37 -03:00
specialization-broken.rs Add revisions to fixed tests in -Zlower-impl-trait-in-trait-to-assoc-ty 2023-03-15 16:58:37 -03:00
specialization-substs-remap.rs Run existing impl trait in traits tests using -Zlower-impl-trait-in-trait-to-assoc-ty 2023-03-12 10:50:32 -03:00
success.rs Run existing impl trait in traits tests using -Zlower-impl-trait-in-trait-to-assoc-ty 2023-03-12 10:50:32 -03:00
trait-more-generics-than-impl.current.stderr Fix impl_trait_ty_to_ty substs 2023-03-17 16:28:00 -03:00
trait-more-generics-than-impl.next.stderr Fix impl_trait_ty_to_ty substs 2023-03-17 16:28:00 -03:00
trait-more-generics-than-impl.rs Fix impl_trait_ty_to_ty substs 2023-03-17 16:28:00 -03:00
wf-bounds.current.stderr Add revisions to fixed tests in -Zlower-impl-trait-in-trait-to-assoc-ty 2023-03-15 16:58:37 -03:00
wf-bounds.next.stderr Add revisions to fixed tests in -Zlower-impl-trait-in-trait-to-assoc-ty 2023-03-15 16:58:37 -03:00
wf-bounds.rs Add revisions to fixed tests in -Zlower-impl-trait-in-trait-to-assoc-ty 2023-03-15 16:58:37 -03:00
where-clause.rs Fix generics_of for impl's RPITIT synthesized associated type 2023-03-17 20:01:57 -03:00