rust/tests/ui/impl-trait/in-trait
Matthias Krüger b194b43bd1
Rollup merge of #111039 - compiler-errors:foreign-span-rpitit, r=tmiasko
Encode def span for foreign return-position `impl Trait` in trait

Fixes #111031, yet another def-span encoding issue :/

Includes a smaller repro than the issue, but I can confirm it ICEs:

```
query stack during panic:
#0 [def_span] looking up span for `rpitit::Foo::bar::{opaque#0}`
#1 [object_safety_violations] determining object safety of trait `rpitit::Foo`
#2 [check_is_object_safe] checking if trait `rpitit::Foo` is object safe
#3 [typeck] type-checking `main`
#4 [used_trait_imports] finding used_trait_imports `main`
#5 [analysis] running analysis passes on this crate
```

Luckily since this only affects nightly, this desn't need to be backported.
2023-05-04 08:09:05 +02:00
..
auxiliary Encode def span for foreign RPITITs 2023-04-30 21:52:35 +00:00
box-coerce-span-in-default.rs Mark RPITIT and AFIT as no longer incomplete 2023-05-02 05:04:50 +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.rs Mark RPITIT and AFIT as no longer incomplete 2023-05-02 05:04:50 +00:00
default-method-constraint.rs Mark RPITIT and AFIT as no longer incomplete 2023-05-02 05:04:50 +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 Properly skip RPITITs from ModChild and give a name in AssocItem 2023-03-29 11:19:49 -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 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 Mark RPITIT and AFIT as no longer incomplete 2023-05-02 05:04:50 +00: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-dyn-error.rs Encode def span for foreign RPITITs 2023-04-30 21:52:35 +00:00
foreign-dyn-error.stderr Encode def span for foreign RPITITs 2023-04-30 21:52:35 +00:00
foreign.rs Encode def span for foreign RPITITs 2023-04-30 21:52:35 +00: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 Bless some extra working tests under -Zlower-impl-trait-in-trait-to-assoc-ty 2023-03-29 11:27:26 -03: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 Deeply check WF for RPITITs 2023-03-23 23:37:22 +00:00
wf-bounds.next.stderr Deeply check WF for RPITITs 2023-03-23 23:37:22 +00:00
wf-bounds.rs Deeply check WF for RPITITs 2023-03-23 23:37:22 +00:00
where-clause.rs Fix generics_of for impl's RPITIT synthesized associated type 2023-03-17 20:01:57 -03:00