rust/tests/ui/traits/next-solver
bors cb4d9a1902 Auto merge of #119101 - compiler-errors:outlives, r=lcnr
Normalize region obligation in lexical region resolution with next-gen solver

This normalizes region obligations when we `resolve_regions`, since they may be unnormalized with deferred projection equality.

It's pretty hard to add tests that exercise this without also triggering MIR borrowck errors (because we don't normalize there yet). I've added one test with two revisions that should test that we both 1. normalize region obligations in the param env, and 2. normalize registered region obligations during lexical region resolution.
2024-01-30 19:22:04 +00:00
..
alias-relate move alias-relate tests 2024-01-26 15:55:23 +01:00
assembly bye bye assemble_candidates_via_self_ty 2024-01-29 14:32:06 +01:00
coherence consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
cycles add comments and tests 2024-01-09 11:53:50 +01:00
generalize Unconditionally register alias-relate in projection goal 2023-12-14 18:41:23 +00:00
overflow bye bye assemble_candidates_via_self_ty 2024-01-29 14:32:06 +01:00
projection Unconditionally register alias-relate in projection goal 2023-12-14 18:41:23 +00:00
alias-bound-preference.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
alias-bound-unsound.rs Rollup merge of #120293 - estebank:issue-102629, r=nnethercote 2024-01-30 16:57:47 +01:00
alias-bound-unsound.stderr Rollup merge of #120293 - estebank:issue-102629, r=nnethercote 2024-01-30 16:57:47 +01:00
alias-eq-in-canonical-response.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
alias-sub.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
array-default.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
async.fail.stderr consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
async.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
auto-with-drop_tracking_mir.fail.stderr consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
auto-with-drop_tracking_mir.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
borrowck-error.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
borrowck-error.stderr consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
builtin-fn-must-return-sized.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
builtin-fn-must-return-sized.stderr consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
canonical-int-var-eq-in-response.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
canonical-ty-var-eq-in-response.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
canonicalize-effect-var.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
cast-checks-handling-projections.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
closure-inference-guidance.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
closure-signature-inference-2.rs Unconditionally register alias-relate in projection goal 2023-12-14 18:41:23 +00:00
closure-signature-inference.rs Unconditionally register alias-relate in projection goal 2023-12-14 18:41:23 +00:00
closure-substs-ambiguity.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
coerce-ambig-alias-to-rigid-alias.rs Use alias-eq in structural normalization 2023-12-18 19:22:43 +00:00
const-param-placeholder.fail.stderr consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
const-param-placeholder.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
coroutine.fail.stderr consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
coroutine.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
deduce-closure-signature-after-normalization.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
deduce-ty-from-object.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
dedup-regions.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
destruct.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
dont-coerce-infer-to-dyn.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
dont-elaborate-for-projections.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
dont-ice-on-assoc-projection.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
dont-ice-on-assoc-projection.stderr Bless tests 2024-01-13 12:46:58 -05:00
dont-loop-fulfill-on-region-constraints.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
dont-normalize-proj-with-error.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
dont-normalize-proj-with-error.stderr consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
dont-remap-tait-substs.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
dont-type_of-tait-in-defining-scope.is_send.stderr bye bye assemble_candidates_via_self_ty 2024-01-29 14:32:06 +01:00
dont-type_of-tait-in-defining-scope.not_send.stderr bye bye assemble_candidates_via_self_ty 2024-01-29 14:32:06 +01:00
dont-type_of-tait-in-defining-scope.rs bye bye assemble_candidates_via_self_ty 2024-01-29 14:32:06 +01:00
dyn-any-dont-prefer-impl.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
elaborate-item-bounds.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
equating-projection-cyclically.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
escaping-bound-vars-in-writeback-normalization.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
float-canonical.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
fn-trait-closure.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
fn-trait.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
fn-trait.stderr consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
higher-ranked-dyn-bounds.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
int-var-alias-eq.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
int-var-is-send.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
issue-118950-root-region.rs Opportunistically resolve region var in canonicalizer 2023-12-15 05:02:37 +00:00
issue-118950-root-region.stderr Move type relations into submodule in rustc_infer 2023-12-15 18:13:40 +00:00
iter-filter-projection.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
lazy-nested-obligations-1.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
lazy-nested-obligations-2.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
lazy-nested-obligations-3.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
member-constraints-in-root-universe.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
more-object-bound.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
more-object-bound.stderr Deduplicate more sized errors on call exprs 2024-01-24 02:53:15 +00:00
negative-coherence-bounds.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
negative-coherence-bounds.stderr consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
nested-alias-bound.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
nested-obligations-with-bound-vars-gat.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
normalize-async-closure-in-trait.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
normalize-param-env-1.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
normalize-param-env-2.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
normalize-param-env-3.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
normalize-path-for-method.rs next-solver: normalize in LoweredTy::from_raw 2024-01-26 15:54:57 +01:00
normalize-rcvr-for-inherent.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
normalize-region-obligations.rs Add a test 2024-01-30 00:06:53 +00:00
normalize-unsize-rhs.rs Revert "Auto merge of #118133 - Urgau:stabilize_trait_upcasting, r=WaffleLapkin" 2024-01-22 14:24:31 +00:00
normalized-const-built-in-op.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
normalizes_to_ignores_unnormalizable_candidate.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
normalizes_to_ignores_unnormalizable_candidate.self_infer.stderr consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
object-soundness-requires-generalization.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
object-unsafety.rs Use alias-eq in structural normalization 2023-12-18 19:22:43 +00:00
object-unsafety.stderr Deduplicate more sized errors on call exprs 2024-01-24 02:53:15 +00:00
opportunistic-region-resolve.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
param-candidate-doesnt-shadow-project.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
param-discr-kind.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
pointee.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
pointer-like.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
pointer-like.stderr consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
prefer-candidate-no-constraints.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
prefer-param-env-on-ambiguity.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
projection-discr-kind.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
projection-discr-kind.stderr consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
slice-match-byte-lit.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
specialization-transmute.rs Deeply normalize when processing registered region obligations 2024-01-30 00:06:53 +00:00
specialization-transmute.stderr Deeply normalize when processing registered region obligations 2024-01-30 00:06:53 +00:00
specialization-unconstrained.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
specialization-unconstrained.stderr Deduplicate more sized errors on call exprs 2024-01-24 02:53:15 +00:00
stall-num-var-auto-trait.fallback.stderr consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
stall-num-var-auto-trait.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
structural-resolve-field.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
trait-upcast-lhs-needs-normalization.rs Revert "Auto merge of #118133 - Urgau:stabilize_trait_upcasting, r=WaffleLapkin" 2024-01-22 14:24:31 +00:00
try-example.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
two-projection-param-candidates-are-ambiguous.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
two-projection-param-candidates-are-ambiguous.stderr consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
unevaluated-const-impl-trait-ref.fails.stderr consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
unevaluated-const-impl-trait-ref.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
unsafe-auto-trait-impl.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
unsize-although-ambiguous.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
unsize-good.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
unsound-region-obligation.rs Apply suggestions from review 2024-01-30 00:09:58 +00:00
unsound-region-obligation.stderr Apply suggestions from review 2024-01-30 00:09:58 +00:00
upcast-right-substs.rs Revert "Auto merge of #118133 - Urgau:stabilize_trait_upcasting, r=WaffleLapkin" 2024-01-22 14:24:31 +00:00
upcast-wrong-substs.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
upcast-wrong-substs.stderr consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00
winnow-specializing-impls.rs consistently use "next solver" instead of "new solver" 2023-12-14 15:22:37 +01:00