rust/tests/ui/impl-trait/in-trait
Jubilee cfce3a919d
Rollup merge of #116296 - compiler-errors:default-return, r=estebank
More accurately point to where default return type should go

When getting the "default return type" span, instead of pointing to the low span of the next token, point to the high span of the previous token. This:

1. Makes forming return type suggestions more uniform, since we expect them all in the same place.
2. Arguably makes labels easier to understand, since we're pointing to where the implicit `-> ()` would've gone, rather than the starting brace or the semicolon.

r? ```@estebank```
2023-10-05 00:56:29 -07:00
..
auxiliary Don't emit refining_impl_trait for private items 2023-09-07 01:31:32 +00:00
anonymize-binders-for-refine.rs Anonymize binders for refining_impl_trait check 2023-09-26 18:11:12 +00:00
assumed-wf-bounds-in-impl.rs Bless tests 2023-10-03 00:37:18 +00:00
bad-item-bound-within-rpitit-2.rs
bad-item-bound-within-rpitit-2.stderr
bad-item-bound-within-rpitit.rs Don't emit refining_impl_trait for private items 2023-09-07 01:31:32 +00:00
bad-item-bound-within-rpitit.stderr Add note 2023-09-07 01:31:33 +00:00
box-coerce-span-in-default.rs
check-wf-on-non-defaulted-rpitit.rs
check-wf-on-non-defaulted-rpitit.stderr Revert "Suggest using Arc on !Send/!Sync types" 2023-08-28 03:16:48 -07:00
deep-match-works.rs Don't emit refining_impl_trait for private items 2023-09-07 01:31:32 +00:00
deep-match.rs
deep-match.stderr
default-body-type-err-2.rs
default-body-type-err-2.stderr
default-body-type-err.rs
default-body-type-err.stderr
default-body-with-rpit.rs Bless tests 2023-10-03 00:37:18 +00:00
default-body.rs Bless tests 2023-10-03 00:37:18 +00:00
default-method-binder-shifting.rs
default-method-constraint.rs
doesnt-satisfy.rs
doesnt-satisfy.stderr
dont-project-to-rpitit-with-no-value.rs
dont-project-to-rpitit-with-no-value.stderr
early.rs Bless tests 2023-10-03 00:37:18 +00:00
encode.rs
foreign-dyn-error.rs
foreign-dyn-error.stderr
foreign.rs Don't emit refining_impl_trait for private items 2023-09-07 01:31:32 +00:00
generics-mismatch.rs
generics-mismatch.stderr
issue-102140.rs
issue-102140.stderr RPITITs are considered object-safe, they're always on Self:Sized methods 2023-09-02 04:58:23 +00:00
issue-102301.rs
issue-102571.rs Implement refinement lint for RPITIT 2023-09-07 00:49:09 +00:00
issue-102571.stderr Implement refinement lint for RPITIT 2023-09-07 00:49:09 +00:00
lifetime-in-associated-trait-bound.rs Capture lifetimes for associated type bounds destined to be lowered to opaques 2023-08-30 00:31:00 +00:00
method-signature-matches.lt.stderr
method-signature-matches.mismatch_async.stderr
method-signature-matches.mismatch.stderr
method-signature-matches.rs
method-signature-matches.too_few.stderr
method-signature-matches.too_many.stderr
missing-lt-outlives-in-rpitit-114274.rs
missing-lt-outlives-in-rpitit-114274.stderr
nested-rpitit.rs Don't emit refining_impl_trait for private items 2023-09-07 01:31:32 +00:00
object-safety-sized.rs RPITITs are considered object-safe, they're always on Self:Sized methods 2023-09-02 04:58:23 +00:00
object-safety.rs Implement refinement lint for RPITIT 2023-09-07 00:49:09 +00:00
object-safety.stderr Do not require associated types with Self: Sized to uphold bounds when confirming object candidate 2023-09-02 05:08:38 +00:00
opaque-in-impl-is-opaque.rs
opaque-in-impl-is-opaque.stderr
opaque-in-impl.rs
outlives-in-nested-rpit.rs
refine.rs Only trigger refine lint on reachable traits 2023-09-29 18:36:41 +00:00
refine.stderr Point to where missing return type should go 2023-10-04 21:09:54 +00:00
return-dont-satisfy-bounds.rs
return-dont-satisfy-bounds.stderr
reveal.rs Don't emit refining_impl_trait for private items 2023-09-07 01:31:32 +00:00
rpitit-hidden-types-self-implied-wf-via-param.rs Need to use hybrid param-env to make sure implication is not circular 2023-09-22 19:04:37 +00:00
rpitit-hidden-types-self-implied-wf-via-param.stderr Need to use hybrid param-env to make sure implication is not circular 2023-09-22 19:04:37 +00:00
rpitit-hidden-types-self-implied-wf.rs Use placeholders to prevent using inferred RPITIT types to imply their own WF-ness 2023-09-22 18:55:44 +00:00
rpitit-hidden-types-self-implied-wf.stderr Use placeholders to prevent using inferred RPITIT types to imply their own WF-ness 2023-09-22 18:55:44 +00:00
rpitit-shadowed-by-missing-adt.rs Don't emit refining_impl_trait for private items 2023-09-07 01:31:32 +00:00
rpitit-shadowed-by-missing-adt.stderr
signature-mismatch.failure.stderr Implement refinement lint for RPITIT 2023-09-07 00:49:09 +00:00
signature-mismatch.rs Don't emit refining_impl_trait for private items 2023-09-07 01:31:32 +00:00
specialization-broken.rs
specialization-broken.stderr
specialization-substs-remap.rs Don't emit refining_impl_trait for private items 2023-09-07 01:31:32 +00:00
success.rs Don't emit refining_impl_trait for private items 2023-09-07 01:31:32 +00:00
suggest-missing-item.fixed Bless tests 2023-10-03 00:37:18 +00:00
suggest-missing-item.rs Bless tests 2023-10-03 00:37:18 +00:00
suggest-missing-item.stderr Bless tests 2023-10-03 00:37:18 +00:00
trait-more-generics-than-impl.rs
trait-more-generics-than-impl.stderr
unconstrained-lt.rs
unconstrained-lt.stderr
variance.rs Test variances of opaque captures 2023-08-28 01:05:34 +00:00
variance.stderr Test variances of opaque captures 2023-08-28 01:05:34 +00:00
variances-of-gat.rs
wf-bounds.rs
wf-bounds.stderr
where-clause.rs