rust/tests/ui/impl-trait/in-trait
Matthias Krüger f338a1f7ee
Rollup merge of #114301 - compiler-errors:dont-error-on-missing-region-outlives, r=spastorino
Don't check unnecessarily that impl trait is RPIT

We have this random `return_type_impl_trait` function to detect if a function returns an RPIT which is used in outlives suggestions, but removing it doesn't actually change any diagnostics. Let's just remove it.

Also, suppress a spurious outlives error from a ReError.

Fixes #114274
2023-08-02 06:22:48 +02:00
..
auxiliary Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -03:00
assumed-wf-bounds-in-impl.rs Implement assumed_wf_types for RPITITs' implementations 2023-07-29 21:19:33 +00:00
bad-item-bound-within-rpitit-2.rs Add additional test 2023-07-27 22:50:40 +00:00
bad-item-bound-within-rpitit-2.stderr Add additional test 2023-07-27 22:50:40 +00:00
bad-item-bound-within-rpitit.rs some nits, bless test 2023-07-29 21:29:03 +00:00
bad-item-bound-within-rpitit.stderr some nits, bless test 2023-07-29 21:29:03 +00:00
box-coerce-span-in-default.rs Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -03:00
check-wf-on-non-defaulted-rpitit.rs Don't install default projection bound for RPITITs 2023-07-30 21:46:29 +00:00
check-wf-on-non-defaulted-rpitit.stderr Don't install default projection bound for RPITITs 2023-07-30 21:46:29 +00:00
deep-match-works.rs Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -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 Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -03:00
deep-match.stderr Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -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 Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -03:00
default-body-type-err-2.stderr Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -03: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 Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -03:00
default-body-type-err.stderr Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -03: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 Remap explicit item bounds of RPITIT's opaque back to ty::Opaque 2023-07-30 20:31:27 +00:00
default-body.rs Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -03:00
default-method-binder-shifting.rs Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -03:00
default-method-constraint.rs Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -03: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 Properly skip RPITITs from ModChild and give a name in AssocItem 2023-03-29 11:19:49 -03:00
doesnt-satisfy.rs Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -03:00
doesnt-satisfy.stderr Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -03:00
dont-project-to-rpitit-with-no-value.current.stderr Mark RPITIT and AFIT as no longer incomplete 2023-05-02 05:04:50 +00:00
dont-project-to-rpitit-with-no-value.next.stderr Mark RPITIT and AFIT as no longer incomplete 2023-05-02 05:04:50 +00:00
dont-project-to-rpitit-with-no-value.rs Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -03:00
dont-project-to-rpitit-with-no-value.stderr Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -03:00
early.rs Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -03:00
encode.rs Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -03:00
foreign-dyn-error.rs Encode def span for foreign RPITITs 2023-04-30 21:52:35 +00:00
foreign-dyn-error.stderr Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -03:00
foreign.rs Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -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 Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -03:00
generics-mismatch.stderr Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -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 RPITITs inherit method predicates 2023-06-30 20:08:56 +00:00
issue-102140.rs Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -03:00
issue-102140.stderr Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -03:00
issue-102301.rs Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -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 Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -03:00
issue-102571.stderr Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -03:00
method-signature-matches.lt.stderr Flip the order of binder instantiation for better diagnostics 2023-06-30 02:17:07 +00:00
method-signature-matches.mismatch_async.stderr Error on unconstrained lifetime in RPITIT 2023-06-14 05:20:31 +00:00
method-signature-matches.mismatch.stderr Error on unconstrained lifetime in RPITIT 2023-06-14 05:20:31 +00:00
method-signature-matches.rs Error on unconstrained lifetime in RPITIT 2023-06-14 05:20:31 +00:00
method-signature-matches.too_few.stderr Error on unconstrained lifetime in RPITIT 2023-06-14 05:20:31 +00:00
method-signature-matches.too_many.stderr Error on unconstrained lifetime in RPITIT 2023-06-14 05:20:31 +00:00
missing-lt-outlives-in-rpitit-114274.rs Suppress unnecessary outlives 2023-08-01 17:16:47 +00:00
missing-lt-outlives-in-rpitit-114274.stderr Suppress unnecessary outlives 2023-08-01 17:16:47 +00:00
nested-rpitit.rs Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -03:00
object-safety.current.stderr Note base types of coercion 2023-05-12 00:10:52 +00:00
object-safety.next.stderr Note base types of coercion 2023-05-12 00:10:52 +00:00
object-safety.rs Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -03:00
object-safety.stderr Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -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 Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -03:00
opaque-in-impl-is-opaque.stderr Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -03:00
opaque-in-impl.rs Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -03:00
return-dont-satisfy-bounds.current.stderr Add regression test for RPITITs 2023-07-07 15:58:25 -03:00
return-dont-satisfy-bounds.next.stderr Add regression test for RPITITs 2023-07-07 15:58:25 -03:00
return-dont-satisfy-bounds.rs Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -03:00
return-dont-satisfy-bounds.stderr Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -03:00
reveal.rs Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -03:00
rpitit-shadowed-by-missing-adt.rs Insert RPITITs that were shadowed by missing ADTs that resolve to type error 2023-07-27 22:32:58 +00:00
rpitit-shadowed-by-missing-adt.stderr Insert RPITITs that were shadowed by missing ADTs that resolve to type error 2023-07-27 22:32:58 +00:00
signature-mismatch.current.stderr Adapt tests from #105258 2023-06-30 02:39:07 +00:00
signature-mismatch.next.stderr Adapt tests from #105258 2023-06-30 02:39:07 +00:00
signature-mismatch.rs Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -03:00
signature-mismatch.stderr Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -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 Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -03:00
specialization-broken.stderr Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -03:00
specialization-substs-remap.rs Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -03:00
success.rs Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -03:00
suggest-missing-item.fixed Liberate bound vars properly when suggesting missing AFIT 2023-06-21 16:32:26 +00:00
suggest-missing-item.rs Liberate bound vars properly when suggesting missing AFIT 2023-06-21 16:32:26 +00:00
suggest-missing-item.stderr Liberate bound vars properly when suggesting missing AFIT 2023-06-21 16:32:26 +00: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 Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -03:00
trait-more-generics-than-impl.stderr Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -03:00
unconstrained-lt.current.stderr Error on unconstrained lifetime in RPITIT 2023-06-14 05:20:31 +00:00
unconstrained-lt.next.stderr Error on unconstrained lifetime in RPITIT 2023-06-14 05:20:31 +00:00
unconstrained-lt.rs Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -03:00
unconstrained-lt.stderr Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -03:00
variances-of-gat.rs Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -03:00
wf-bounds.current.stderr Additional wf test 2023-06-30 20:28:34 +00:00
wf-bounds.next.stderr Additional wf test 2023-06-30 20:28:34 +00:00
wf-bounds.rs Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -03:00
wf-bounds.stderr Take RPITITs inherit the assumed_wf_types of their parent fn 2023-07-29 21:19:33 +00:00
where-clause.rs Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -03:00