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
box-coerce-span-in-default.rs
deep-match-works.rs
deep-match.current.stderr
deep-match.next.stderr
deep-match.rs
default-body-type-err-2.current.stderr
default-body-type-err-2.next.stderr
default-body-type-err-2.rs
default-body-type-err.current.stderr
default-body-type-err.next.stderr
default-body-type-err.rs
default-body-with-rpit.current.stderr
default-body-with-rpit.next.stderr
default-body-with-rpit.rs
default-body.rs
default-method-binder-shifting.rs
default-method-constraint.rs
doesnt-satisfy.current.stderr
doesnt-satisfy.next.stderr
doesnt-satisfy.rs
dont-project-to-rpitit-with-no-value.current.stderr
dont-project-to-rpitit-with-no-value.next.stderr
dont-project-to-rpitit-with-no-value.rs
early.rs
encode.rs
foreign-dyn-error.rs
foreign-dyn-error.stderr
foreign.rs
generics-mismatch.current.stderr
generics-mismatch.next.stderr
generics-mismatch.rs
issue-102140.current.stderr
issue-102140.next.stderr
issue-102140.rs
issue-102301.rs
issue-102571.current.stderr
issue-102571.next.stderr
issue-102571.rs
method-signature-matches.rs
method-signature-matches.stderr
nested-rpitit.rs
object-safety.current.stderr
object-safety.next.stderr
object-safety.rs
opaque-in-impl-is-opaque.current.stderr
opaque-in-impl-is-opaque.next.stderr
opaque-in-impl-is-opaque.rs
opaque-in-impl.rs
reveal.rs
signature-mismatch.current.stderr
signature-mismatch.next.stderr
signature-mismatch.rs
specialization-broken.current.stderr
specialization-broken.next.stderr
specialization-broken.rs
specialization-substs-remap.rs
success.rs
trait-more-generics-than-impl.current.stderr
trait-more-generics-than-impl.next.stderr
trait-more-generics-than-impl.rs
wf-bounds.current.stderr
wf-bounds.next.stderr
wf-bounds.rs
where-clause.rs