rust/src/test/ui/impl-trait
Oli Scherer 0f6e06b7c0 Lazily resolve type-alias-impl-trait defining uses
by using an opaque type obligation to bubble up comparisons between opaque types and other types

Also uses proper obligation causes so that the body id works, because out of some reason nll uses body ids for logic instead of just diagnostics.
2022-02-02 15:40:11 +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 Lazily resolve type-alias-impl-trait defining uses 2022-02-02 15:40:11 +00:00
multiple-lifetimes Lazily resolve type-alias-impl-trait defining uses 2022-02-02 15:40:11 +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 Lazily resolve type-alias-impl-trait defining uses 2022-02-02 15:40:11 +00:00
auto-trait-leak.stderr Lazily resolve type-alias-impl-trait defining uses 2022-02-02 15:40:11 +00:00
auto-trait.rs
auto-trait.stderr
bound-normalization-fail.rs Lazily resolve type-alias-impl-trait defining uses 2022-02-02 15:40:11 +00:00
bound-normalization-fail.stderr Lazily resolve type-alias-impl-trait defining uses 2022-02-02 15:40:11 +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 Lazily resolve type-alias-impl-trait defining uses 2022-02-02 15:40:11 +00:00
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 Modify structured suggestion output 2021-08-11 09:46:24 +00:00
equal-hidden-lifetimes.rs
equal-hidden-lifetimes.stderr
equality2.rs
equality2.stderr Lazily resolve type-alias-impl-trait defining uses 2022-02-02 15:40:11 +00:00
equality-rpass.rs
equality-rpass.stderr
equality.rs Lazily resolve type-alias-impl-trait defining uses 2022-02-02 15:40:11 +00:00
equality.stderr Lazily resolve type-alias-impl-trait defining uses 2022-02-02 15:40:11 +00:00
example-calendar.rs
example-st.rs
extra-item.rs
extra-item.stderr
fallback.rs Lazily resolve type-alias-impl-trait defining uses 2022-02-02 15:40:11 +00:00
hidden-lifetimes.rs Lazily resolve type-alias-impl-trait defining uses 2022-02-02 15:40:11 +00:00
hidden-lifetimes.stderr Lazily resolve type-alias-impl-trait defining uses 2022-02-02 15:40:11 +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 Modify structured suggestion output 2021-08-11 09:46:24 +00:00
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 Lazily resolve type-alias-impl-trait defining uses 2022-02-02 15:40:11 +00:00
issue-55872-1.stderr Lazily resolve type-alias-impl-trait defining uses 2022-02-02 15:40:11 +00:00
issue-55872-2.rs Lazily resolve type-alias-impl-trait defining uses 2022-02-02 15:40:11 +00:00
issue-55872-2.stderr Lazily resolve type-alias-impl-trait defining uses 2022-02-02 15:40:11 +00:00
issue-55872-3.rs Lazily resolve type-alias-impl-trait defining uses 2022-02-02 15:40:11 +00:00
issue-55872-3.stderr Lazily resolve type-alias-impl-trait defining uses 2022-02-02 15:40:11 +00:00
issue-55872.rs Lazily resolve type-alias-impl-trait defining uses 2022-02-02 15:40:11 +00:00
issue-55872.stderr Lazily resolve type-alias-impl-trait defining uses 2022-02-02 15:40:11 +00:00
issue-56445.rs
issue-68532.rs
issue-72911.rs Lazily resolve type-alias-impl-trait defining uses 2022-02-02 15:40:11 +00:00
issue-72911.stderr Lazily resolve type-alias-impl-trait defining uses 2022-02-02 15:40:11 +00:00
issue-86465.rs
issue-86465.stderr
issue-87450.rs Add regression test for issue #87450. 2021-07-30 18:32:22 +00:00
issue-87450.stderr Fix printing unit return ty, don't elaborate FnOnce unless we see it 2021-11-23 11:05:07 -08:00
lifetimes2.rs Lazily resolve type-alias-impl-trait defining uses 2022-02-02 15:40:11 +00:00
lifetimes.rs
method-suggestion-no-duplication.rs
method-suggestion-no-duplication.stderr
multiple-lifetimes.rs
must_outlive_least_region_or_bound.nll.stderr Lazily resolve type-alias-impl-trait defining uses 2022-02-02 15:40:11 +00:00
must_outlive_least_region_or_bound.rs Lazily resolve type-alias-impl-trait defining uses 2022-02-02 15:40:11 +00:00
must_outlive_least_region_or_bound.stderr Lazily resolve type-alias-impl-trait defining uses 2022-02-02 15:40:11 +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 Modify structured suggestion output 2021-08-11 09:46:24 +00:00
object-unsafe-trait-in-return-position-impl-trait.rs
object-unsafe-trait-in-return-position-impl-trait.stderr Lazily resolve type-alias-impl-trait defining uses 2022-02-02 15:40:11 +00:00
point-to-type-err-cause-on-impl-trait-return.rs Lazily resolve type-alias-impl-trait defining uses 2022-02-02 15:40:11 +00:00
point-to-type-err-cause-on-impl-trait-return.stderr Lazily resolve type-alias-impl-trait defining uses 2022-02-02 15:40:11 +00:00
private_unused.rs Move private_unused.rs test to impl-trait 2021-08-18 09:11:43 -03:00
projection-mismatch-in-impl-where-clause.rs Lazily resolve type-alias-impl-trait defining uses 2022-02-02 15:40:11 +00:00
projection-mismatch-in-impl-where-clause.stderr Lazily resolve type-alias-impl-trait defining uses 2022-02-02 15:40:11 +00:00
question_mark.rs Lazily resolve type-alias-impl-trait defining uses 2022-02-02 15:40:11 +00:00
recursive-impl-trait-type-direct.rs Lazily resolve type-alias-impl-trait defining uses 2022-02-02 15:40:11 +00:00
recursive-impl-trait-type-indirect.rs Lazily resolve type-alias-impl-trait defining uses 2022-02-02 15:40:11 +00:00
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 Lazily resolve type-alias-impl-trait defining uses 2022-02-02 15:40:11 +00:00
region-escape-via-bound.stderr Lazily resolve type-alias-impl-trait defining uses 2022-02-02 15:40:11 +00:00
return-position-impl-trait-minimal.rs
static-return-lifetime-infered.rs Lazily resolve type-alias-impl-trait defining uses 2022-02-02 15:40:11 +00:00
static-return-lifetime-infered.stderr Lazily resolve type-alias-impl-trait defining uses 2022-02-02 15:40:11 +00:00
trait_type.rs
trait_type.stderr
type_parameters_captured.nll.stderr Lazily resolve type-alias-impl-trait defining uses 2022-02-02 15:40:11 +00:00
type_parameters_captured.rs Lazily resolve type-alias-impl-trait defining uses 2022-02-02 15:40:11 +00:00
type_parameters_captured.stderr Lazily resolve type-alias-impl-trait defining uses 2022-02-02 15:40:11 +00:00
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 Lazily resolve type-alias-impl-trait defining uses 2022-02-02 15:40:11 +00:00
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