rust/src/test/ui/impl-trait
bors 229d0a9412 Auto merge of #91769 - estebank:type-trait-bound-span-2, r=oli-obk
Tweak assoc type obligation spans

* Point at RHS of associated type in obligation span
* Point at `impl` assoc type on projection error
* Reduce verbosity of recursive obligations
* Point at source of binding lifetime obligation
* Tweak "required bound" note
* Tweak "expected... found opaque (return) type" labels
* Point at set type in impl assoc type WF errors

r? `@oli-obk`

This is a(n uncontroversial) subset of #85799.
2021-12-11 21:57:19 +00:00
..
auxiliary
explicit-generic-args-with-impl-trait Add a note about feature(explicit_generic_args_with_impl_trait) to the relevant error message 2021-11-08 19:49:41 +01:00
issues Perform Sync check on static items in wf-check instead of during const checks 2021-11-26 14:22:45 +00:00
multiple-lifetimes Remove regionck member constraint handling and leave it to mir borrowck 2021-10-18 15:50:56 +00:00
associated-impl-trait-type-generic-trait.rs
associated-impl-trait-type-trivial.rs
associated-impl-trait-type.rs
auto-trait-leak2.rs
auto-trait-leak2.stderr Fix printing unit return ty, don't elaborate FnOnce unless we see it 2021-11-23 11:05:07 -08:00
auto-trait-leak-rpass.rs
auto-trait-leak.rs
auto-trait-leak.stderr Disable visible path calculation for PrettyPrinter in Ok path of compiler 2021-09-21 00:41:44 +04:00
auto-trait.rs
auto-trait.stderr
bound-normalization-fail.rs
bound-normalization-fail.stderr Tweak assoc type obligation spans 2021-12-11 02:32:15 +00:00
bound-normalization-pass.rs
bounds_regression.rs
can-return-unconstrained-closure.rs
closure-calling-parent-fn.rs
closure-in-impl-trait-arg.rs
closure-in-impl-trait.rs
deprecated_annotation.rs
does-not-live-long-enough.rs
does-not-live-long-enough.stderr
dyn-trait-elided-two-inputs-assoc.rs
dyn-trait-elided-two-inputs-param.rs
dyn-trait-elided-two-inputs-ref-assoc.rs
dyn-trait-elided-two-inputs-ref-param.rs
dyn-trait-return-should-be-impl-trait.rs
dyn-trait-return-should-be-impl-trait.stderr
equal-hidden-lifetimes.rs
equal-hidden-lifetimes.stderr
equality2.rs
equality2.stderr
equality-rpass.rs
equality-rpass.stderr
equality.rs Point at overlapping impls when type annotations are needed 2021-10-24 18:33:04 +00:00
equality.stderr Point at overlapping impls when type annotations are needed 2021-10-24 18:33:04 +00:00
example-calendar.rs
example-st.rs
extra-item.rs
extra-item.stderr
hidden-lifetimes.rs
hidden-lifetimes.stderr Remove regionck member constraint handling and leave it to mir borrowck 2021-10-18 15:50:56 +00:00
impl_trait_projections.rs
impl_trait_projections.stderr
impl-generic-mismatch-ab.rs
impl-generic-mismatch-ab.stderr Tweak assoc type obligation spans 2021-12-11 02:32:15 +00:00
impl-generic-mismatch.rs
impl-generic-mismatch.stderr
impl-trait-in-macro.rs
impl-trait-in-macro.stderr On type mismatch caused by assignment, point at assignee 2021-11-25 18:04:33 +00:00
impl-trait-plus-priority.rs
impl-trait-plus-priority.stderr
issue-49579.rs Move some tests to more reasonable directories 2021-11-06 15:35:20 -03:00
issue-49685.rs Move some tests to more reasonable directories 2021-11-06 15:35:20 -03:00
issue-51185.rs Move some tests to more reasonable directories 2021-11-06 15:35:20 -03:00
issue-55872-1.rs
issue-55872-1.stderr Point at bounds when comparing impl items to trait 2021-11-20 18:54:31 +00:00
issue-55872-2.rs Update test outputs 2021-11-23 10:34:17 -08:00
issue-55872-2.stderr Update test outputs 2021-11-23 10:34:17 -08:00
issue-55872.rs
issue-55872.stderr
issue-56445.rs
issue-68532.rs
issue-72911.rs
issue-72911.stderr Update test outputs 2021-11-23 10:34:17 -08:00
issue-86465.rs
issue-86465.stderr
issue-87450.rs
issue-87450.stderr Fix printing unit return ty, don't elaborate FnOnce unless we see it 2021-11-23 11:05:07 -08:00
lifetimes.rs
method-suggestion-no-duplication.rs
method-suggestion-no-duplication.stderr
multiple-lifetimes.rs
must_outlive_least_region_or_bound.nll.stderr Remove regionck member constraint handling and leave it to mir borrowck 2021-10-18 15:50:56 +00:00
must_outlive_least_region_or_bound.rs Remove regionck member constraint handling and leave it to mir borrowck 2021-10-18 15:50:56 +00:00
must_outlive_least_region_or_bound.stderr Tweak wording 2021-12-10 03:08:25 +00:00
needs_least_region_or_bound.rs
negative-reasoning.rs
negative-reasoning.stderr
nested_impl_trait.rs
nested_impl_trait.stderr
nested-return-type.rs
nesting.rs
no-method-suggested-traits.rs
no-method-suggested-traits.stderr Always sort suggestions before emitting them 2021-10-24 20:28:44 +00:00
no-trait.rs
no-trait.stderr
object-unsafe-trait-in-return-position-dyn-trait.rs
object-unsafe-trait-in-return-position-dyn-trait.stderr
object-unsafe-trait-in-return-position-impl-trait.rs
object-unsafe-trait-in-return-position-impl-trait.stderr
point-to-type-err-cause-on-impl-trait-return.rs
point-to-type-err-cause-on-impl-trait-return.stderr
private_unused.rs
projection-mismatch-in-impl-where-clause.rs
projection-mismatch-in-impl-where-clause.stderr Tweak assoc type obligation spans 2021-12-11 02:32:15 +00:00
recursive-impl-trait-type-direct.rs
recursive-impl-trait-type-direct.stderr
recursive-impl-trait-type-indirect.rs
recursive-impl-trait-type-indirect.stderr
recursive-impl-trait-type-through-non-recursive.rs
recursive-impl-trait-type-through-non-recursive.stderr
region-escape-via-bound-contravariant-closure.rs
region-escape-via-bound-contravariant.rs
region-escape-via-bound.rs
region-escape-via-bound.stderr Re-use logic for adding a suggestion when a lifetime bound is missing on an impl trait 2021-10-13 10:53:44 +00:00
return-position-impl-trait-minimal.rs
static-return-lifetime-infered.rs Remove regionck member constraint handling and leave it to mir borrowck 2021-10-18 15:50:56 +00:00
static-return-lifetime-infered.stderr Remove regionck member constraint handling and leave it to mir borrowck 2021-10-18 15:50:56 +00:00
trait_type.rs
trait_type.stderr
type_parameters_captured.nll.stderr
type_parameters_captured.rs
type_parameters_captured.stderr
type-alias-generic-param.rs
type-alias-impl-trait-in-fn-body.rs
type-arg-mismatch-due-to-impl-trait.rs Move some tests to more reasonable directories 2021-09-15 14:03:27 -03:00
type-arg-mismatch-due-to-impl-trait.stderr Move some tests to more reasonable directories 2021-09-15 14:03:27 -03:00
universal_hrtb_anon.rs
universal_hrtb_named.rs
universal_in_adt_in_parameters.rs
universal_in_impl_trait_in_parameters.rs
universal_in_trait_defn_parameters.rs
universal_multiple_bounds.rs
universal_wrong_bounds.rs
universal_wrong_bounds.stderr
universal-mismatched-type.rs
universal-mismatched-type.stderr
universal-two-impl-traits.rs
universal-two-impl-traits.stderr On type mismatch caused by assignment, point at assignee 2021-11-25 18:04:33 +00:00
unsafety-checking-cycle.rs
wf-eval-order.rs
where-allowed-2.rs
where-allowed-2.stderr
where-allowed.rs Don't abort compilation after giving a lint error 2021-11-08 01:22:28 +00:00
where-allowed.stderr Don't abort compilation after giving a lint error 2021-11-08 01:22:28 +00:00
xcrate_simple.rs
xcrate.rs