rust/tests/ui/impl-trait
Nicholas Nethercote 72b172bdf6 Overhaul the handling of errors at the top-level.
Currently `emit_stashed_diagnostic` is called from four(!) different
places: `print_error_count`, `DiagCtxtInner::drop`, `abort_if_errors`,
and `compile_status`.

And `flush_delayed` is called from two different places:
`DiagCtxtInner::drop` and `Queries`.

This is pretty gross! Each one should really be called from a single
place, but there's a bunch of entanglements. This commit cleans up this
mess.

Specifically, it:
- Removes all the existing calls to `emit_stashed_diagnostic`, and adds
  a single new call in `finish_diagnostics`.
- Removes the early `flush_delayed` call in `codegen_and_build_linker`,
  replacing it with a simple early return if delayed bugs are present.
- Changes `DiagCtxtInner::drop` and `DiagCtxtInner::flush_delayed` so
  they both assert that the stashed diagnostics are empty (i.e.
  processed beforehand).
- Changes `interface::run_compiler` so that any errors emitted during
  `finish_diagnostics` (i.e. late-emitted stashed diagnostics) are
  counted and cannot be overlooked. This requires adding
  `ErrorGuaranteed` return values to several functions.
- Removes the `stashed_err_count` call in `analysis`. This is possible
  now that we don't have to worry about calling `flush_delayed` early
  from `codegen_and_build_linker` when stashed diagnostics are pending.
- Changes the `span_bug` case in `handle_tuple_field_pattern_match` to a
  `delayed_span_bug`, because it now can be reached due to the removal
  of the `stashed_err_count` call in `analysis`.
- Slightly changes the expected output of three tests. If no errors are
  emitted but there are delayed bugs, the error count is no longer
  printed. This is because delayed bugs are now always printed after the
  error count is printed (or not printed, if the error count is zero).

There is a lot going on in this commit. It's hard to break into smaller
pieces because the existing code is very tangled. It took me a long time
and a lot of effort to understand how the different pieces interact, and
I think the new code is a lot simpler and easier to understand.
2024-02-22 08:03:47 +11:00
..
alias-liveness Show number in error message even for one error 2023-11-24 19:15:52 +01:00
auxiliary Move /src/test to /tests 2023-01-11 09:32:08 +00:00
diagnostics Show number in error message even for one error 2023-11-24 19:15:52 +01:00
explicit-generic-args-with-impl-trait [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
in-ctfe [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
in-trait [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issues [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
multiple-lifetimes [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
rpit Auto merge of #121211 - lcnr:nll-relate-handle-infer, r=BoxyUwU 2024-02-19 22:04:58 +00:00
transmute [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
arg-position-impl-trait-too-long.rs Don't print newlines in APITs 2023-05-25 02:45:14 +00:00
arg-position-impl-trait-too-long.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
associated-impl-trait-type-generic-trait.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-impl-trait-type-issue-114325.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-impl-trait-type-trivial.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-impl-trait-type.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
async_scope_creep.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
auto-trait-coherence.next.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
auto-trait-coherence.old.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
auto-trait-coherence.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
auto-trait-leak-rpass.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
auto-trait-leak.rs Stash and cancel cycle errors for auto trait leakage in opaques 2023-10-26 17:58:02 +00:00
auto-trait-leak.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
auto-trait-leak2.rs Revert "Suggest using Arc on !Send/!Sync types" 2023-08-28 03:16:48 -07:00
auto-trait-leak2.stderr Provide more context on derived obligation error primary label 2024-01-30 21:28:18 +00:00
autoderef.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
bivariant-lifetime-liveness.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
bound-normalization-fail.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
bound-normalization-fail.stderr Stabilize impl_trait_projections 2023-09-08 03:45:36 +00:00
bound-normalization-pass.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
bounds_regression.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
can-return-unconstrained-closure.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
capture-lifetime-not-in-hir.rs Stabilize impl_trait_projections 2023-09-08 03:45:36 +00:00
capture-lifetime-not-in-hir.stderr Stabilize impl_trait_projections 2023-09-08 03:45:36 +00:00
closure-calling-parent-fn.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
closure-in-impl-trait-arg.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
closure-in-impl-trait.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
coherence-treats-tait-ambig.current.stderr Manual find replace updates 2023-11-24 21:04:51 +01:00
coherence-treats-tait-ambig.rs update tests 2023-09-21 08:17:58 +02:00
coherence-treats-tait-ambig.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
cross-return-site-inference.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
cross-return-site-inference.stderr Deduplicate more sized errors on call exprs 2024-01-24 02:53:15 +00:00
deduce-signature-from-supertrait.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
defined-by-trait-resolution.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
deprecated_annotation.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
divergence.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
does-not-live-long-enough.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
does-not-live-long-enough.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
dont-suggest-box-on-empty-else-arm.rs Don't suggest boxing an empty if/else arm 2023-06-11 00:19:56 +00:00
dont-suggest-box-on-empty-else-arm.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
dyn-impl-type-mismatch.rs Account for expected dyn Trait found impl Trait 2024-01-24 16:57:15 +00:00
dyn-impl-type-mismatch.stderr Account for expected dyn Trait found impl Trait 2024-01-24 16:57:15 +00:00
dyn-trait-elided-two-inputs-assoc.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
dyn-trait-elided-two-inputs-param.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
dyn-trait-elided-two-inputs-ref-assoc.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
dyn-trait-elided-two-inputs-ref-param.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
dyn-trait-return-should-be-impl-trait.rs Remove return type sized check hack from hir typeck 2023-05-18 01:53:01 +00:00
dyn-trait-return-should-be-impl-trait.stderr Provide more context on derived obligation error primary label 2024-01-30 21:28:18 +00:00
eagerly-reveal-in-local-body.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
equal-hidden-lifetimes.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
equality-in-canonical-query.clone.stderr Overhaul the handling of errors at the top-level. 2024-02-22 08:03:47 +11:00
equality-in-canonical-query.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
equality-rpass.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
equality-rpass.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
equality.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
equality.stderr Don't sort strings right after we just sorted by types 2023-06-27 23:31:06 +00:00
equality2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
equality2.stderr Mention fn coercion rules (needs to be expanded) 2023-01-30 21:51:33 +00:00
erased-regions-in-hidden-ty.current.stderr finish RegionKind rename 2023-11-14 13:13:27 +00:00
erased-regions-in-hidden-ty.next.stderr finish RegionKind rename 2023-11-14 13:13:27 +00:00
erased-regions-in-hidden-ty.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
example-calendar.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
example-st.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
example-st.stderr Update tests 2024-02-07 10:42:01 +08:00
extra-impl-in-trait-impl.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
extra-impl-in-trait-impl.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
extra-impl-in-trait-impl.stderr improve error for impl<..> impl Trait for Type 2023-05-13 10:51:21 +02:00
extra-item.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
extra-item.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
fallback.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
fallback_inference.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
fallback_inference.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
feature-self-return-type.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
feature-self-return-type.stderr Stabilize impl_trait_projections 2023-09-08 03:45:36 +00:00
fresh-lifetime-from-bare-trait-obj-114664.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
fresh-lifetime-from-bare-trait-obj-114664.stderr Be less confident when dyn suggestion is not checked for object safety 2024-02-09 20:47:50 -08:00
generic-with-implicit-hrtb-without-dyn.edition2015.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
generic-with-implicit-hrtb-without-dyn.edition2021.stderr Avoid silencing relevant follow-up errors 2024-01-09 21:08:16 +00:00
generic-with-implicit-hrtb-without-dyn.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
hidden-lifetimes.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
hidden-lifetimes.stderr Label opaque type for 'captures lifetime' error message 2023-03-03 05:02:34 +00:00
hidden-type-is-opaque-2.rs Fix invalid suggestion for mismatched types in closure arguments 2023-07-30 17:15:55 +02:00
hidden-type-is-opaque-2.stderr Fix invalid suggestion for mismatched types in closure arguments 2023-07-30 17:15:55 +02:00
hidden-type-is-opaque.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
impl-fn-hrtb-bounds-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
impl-fn-hrtb-bounds-2.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
impl-fn-hrtb-bounds.rs Avoid silencing relevant follow-up errors 2024-01-09 21:08:16 +00:00
impl-fn-hrtb-bounds.stderr Avoid silencing relevant follow-up errors 2024-01-09 21:08:16 +00:00
impl-fn-parsing-ambiguities.rs Avoid silencing relevant follow-up errors 2024-01-09 21:08:16 +00:00
impl-fn-parsing-ambiguities.stderr Avoid silencing relevant follow-up errors 2024-01-09 21:08:16 +00:00
impl-fn-predefined-lifetimes.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
impl-fn-predefined-lifetimes.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
impl-generic-mismatch-ab.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
impl-generic-mismatch-ab.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
impl-generic-mismatch.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
impl-generic-mismatch.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
impl-subtyper.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
impl-subtyper2.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
impl-trait-in-macro.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
impl-trait-in-macro.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
impl-trait-plus-priority.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
impl-trait-plus-priority.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
impl_fn_associativity.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
impl_trait_projections.rs Avoid silencing relevant follow-up errors 2024-01-09 21:08:16 +00:00
impl_trait_projections.stderr Provide more context on derived obligation error primary label 2024-01-30 21:28:18 +00:00
implicit-capture-late.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
implicit-capture-late.stderr Avoid silencing relevant follow-up errors 2024-01-09 21:08:16 +00:00
in-assoc-type-unconstrained.rs Use the opaque_types_defined_by query to cheaply check for whether a hidden type may be registered for an opaque type 2023-05-12 10:26:50 +00:00
in-assoc-type-unconstrained.stderr Point to argument/return type instead of the whole function header 2023-06-22 15:00:12 +00:00
in-assoc-type.rs Require TAITs to be mentioned in the signatures of functions that register hidden types for them 2023-07-07 13:13:18 +00:00
in-assoc-type.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-35668.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-35668.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-36792.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-46959.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-49556.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-49579.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-49685.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-51185.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-54966.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-54966.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-55872-1.rs Split out a separate feature gate for impl trait in associated types 2023-04-12 16:17:31 +00:00
issue-55872-1.stderr Provide more context on derived obligation error primary label 2024-01-30 21:28:18 +00:00
issue-55872-2.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-55872-2.stderr Add a note to duplicate diagnostics 2023-10-05 01:04:41 +00:00
issue-55872-3.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-55872-3.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-55872.rs Split out a separate feature gate for impl trait in associated types 2023-04-12 16:17:31 +00:00
issue-55872.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-56445.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-68532.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-72911.rs Keep error types around, even in obligations. 2024-01-11 09:52:25 +00:00
issue-72911.stderr Keep error types around, even in obligations. 2024-01-11 09:52:25 +00:00
issue-86465.rs Revert "Auto merge of #102417 - oli-obk:opaque_lifetimes2, r=jackh726" 2023-08-30 11:06:46 +00:00
issue-86465.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-87450.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-87450.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-99073-2.rs check for non-defining uses of RPIT 2023-08-14 15:25:20 +02:00
issue-99073-2.stderr check for non-defining uses of RPIT 2023-08-14 15:25:20 +02:00
issue-99073.rs check for non-defining uses of RPIT 2023-08-14 15:25:20 +02:00
issue-99073.stderr adjust how closure/generator types and rvalues are printed 2023-09-21 22:20:58 +02:00
issue-99642-2.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-99642.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-99914.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-99914.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-100075-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-100075-2.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-100075.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-100075.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-100187.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-102605.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-102605.stderr Check entry type as part of item type checking. 2023-07-15 22:02:16 +00:00
issue-103181-1.current.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-103181-1.next.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-103181-1.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-103181-2.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-103181-2.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-103599.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-103599.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-108591.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-108592.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lifetime-ambiguity-regression.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lifetimes.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lifetimes2.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
mapping-duplicated-lifetimes-issue-114597.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
method-suggestion-no-duplication.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-suggestion-no-duplication.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
multiple-defining-usages-in-body.rs Check that RPITs are compatible with the opaques inferred during HIR typeck too 2023-05-31 17:45:45 +00:00
multiple-defining-usages-in-body.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
must_outlive_least_region_or_bound.rs Continue to borrowck even if there were previous errors 2024-02-08 08:10:43 +00:00
must_outlive_least_region_or_bound.stderr Continue to borrowck even if there were previous errors 2024-02-08 08:10:43 +00:00
needs_least_region_or_bound.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
negative-reasoning.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
negative-reasoning.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
nested-return-type.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
nested-return-type2-tait.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
nested-return-type2-tait.stderr Add AliasKind::Weak for type aliases. 2023-06-16 19:39:48 +00:00
nested-return-type2-tait2.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
nested-return-type2-tait2.stderr Remove DefiningAnchor::Bubble from opaque wf check 2023-10-16 15:50:31 +00:00
nested-return-type2-tait3.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
nested-return-type2-tait3.stderr Remove DefiningAnchor::Bubble from opaque wf check 2023-10-16 15:50:31 +00:00
nested-return-type2.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
nested-return-type3-tait.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
nested-return-type3-tait.stderr Add AliasKind::Weak for type aliases. 2023-06-16 19:39:48 +00:00
nested-return-type3-tait2.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
nested-return-type3-tait2.stderr Add AliasKind::Weak for type aliases. 2023-06-16 19:39:48 +00:00
nested-return-type3-tait3.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
nested-return-type3-tait3.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
nested-return-type3.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
nested-return-type4.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
nested-return-type4.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
nested-rpit-hrtb-2.rs don't ICE on higher ranked hidden types 2023-08-04 15:11:09 +00:00
nested-rpit-hrtb-2.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
nested-rpit-hrtb.rs Avoid silencing relevant follow-up errors 2024-01-09 21:08:16 +00:00
nested-rpit-hrtb.stderr Avoid silencing relevant follow-up errors 2024-01-09 21:08:16 +00:00
nested-rpit-with-anonymous-lifetimes.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
nested_impl_trait.rs Split note, fix const/static impl trait error 2024-01-07 18:00:03 +00:00
nested_impl_trait.stderr Provide more context on derived obligation error primary label 2024-01-30 21:28:18 +00:00
nesting.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
no-method-suggested-traits.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
no-method-suggested-traits.stderr Special-case item attributes in the suggestion output 2023-04-12 22:50:10 +00:00
no-trait.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
no-trait.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
normalize-opaque-with-bound-vars.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
normalize-tait-in-const.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
normalize-tait-in-const.stderr Continue to borrowck even if there were previous errors 2024-02-08 08:10:43 +00:00
not_general_enough_regression_106630.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
object-unsafe-trait-in-return-position-dyn-trait.rs Continue compilation after check_mod_type_wf errors 2024-02-14 11:00:30 +00:00
object-unsafe-trait-in-return-position-dyn-trait.stderr Continue compilation after check_mod_type_wf errors 2024-02-14 11:00:30 +00:00
object-unsafe-trait-in-return-position-impl-trait.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
object-unsafe-trait-in-return-position-impl-trait.stderr Modify primary span label for E0308 2023-01-30 20:12:19 +00:00
opaque-cast-field-access-in-future.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
opaque-cast-field-access-in-future.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
opaque-used-in-extraneous-argument.rs Use FnOnceOutput instead of FnOnce where expected 2024-01-17 14:23:41 +00:00
opaque-used-in-extraneous-argument.stderr Use FnOnceOutput instead of FnOnce where expected 2024-01-17 14:23:41 +00:00
point-to-type-err-cause-on-impl-trait-return.rs Remove return type sized check hack from hir typeck 2023-05-18 01:53:01 +00:00
point-to-type-err-cause-on-impl-trait-return.stderr Remove return type sized check hack from hir typeck 2023-05-18 01:53:01 +00:00
printing-binder.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
printing-binder.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
private_unused.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
projection-mismatch-in-impl-where-clause.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
projection-mismatch-in-impl-where-clause.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
projection.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
question_mark.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
recursive-auto-trait.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
recursive-coroutine-boxed.next.stderr use alias-relate to structurally normalize in the solver 2024-02-13 05:08:51 +01:00
recursive-coroutine-boxed.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
recursive-coroutine-indirect.current.stderr Remove special-casing around aliaskind in new solver 2024-01-11 16:54:11 +00:00
recursive-coroutine-indirect.next.stderr Remove special-casing around aliaskind in new solver 2024-01-11 16:54:11 +00:00
recursive-coroutine-indirect.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
recursive-impl-trait-type-direct.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
recursive-impl-trait-type-indirect.rs Make cycle error more resilient to where it starts 2024-01-08 20:30:24 +00:00
recursive-impl-trait-type-indirect.stderr Make cycle error more resilient to where it starts 2024-01-08 20:30:24 +00:00
recursive-impl-trait-type-through-non-recursive.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
recursive-impl-trait-type-through-non-recursive.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
recursive-type-alias-impl-trait-declaration-too-subtle-2.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
recursive-type-alias-impl-trait-declaration-too-subtle.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
recursive-type-alias-impl-trait-declaration-too-subtle.stderr recurse into refs when comparing tys for diagnostics 2023-12-07 23:00:46 -05:00
recursive-type-alias-impl-trait-declaration.rs Add AliasKind::Weak for type aliases. 2023-06-16 19:39:48 +00:00
recursive-type-alias-impl-trait-declaration.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
region-escape-via-bound-contravariant-closure.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
region-escape-via-bound-contravariant.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
region-escape-via-bound.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
region-escape-via-bound.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
return-position-impl-trait-minimal.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
reveal-during-codegen.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
rpit-assoc-pair-with-lifetime.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
rpit-not-sized.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
rpit-not-sized.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
static-lifetime-return-position-impl-trait.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
static-return-lifetime-infered.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
static-return-lifetime-infered.stderr adjust how closure/generator types and rvalues are printed 2023-09-21 22:20:58 +02:00
suggest-calling-rpit-closure.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
suggest-calling-rpit-closure.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
trait_resolution.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
trait_type.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
trait_type.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
two_tait_defining_each_other.current.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
two_tait_defining_each_other.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
two_tait_defining_each_other2.current.stderr update tests 2023-11-09 11:32:51 +01:00
two_tait_defining_each_other2.next.stderr use alias-relate to structurally normalize in the solver 2024-02-13 05:08:51 +01:00
two_tait_defining_each_other2.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
two_tait_defining_each_other3.current.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
two_tait_defining_each_other3.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
type-alias-generic-param.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
type-alias-generic-param.stderr Update tests 2024-02-07 10:42:01 +08:00
type-alias-impl-trait-in-fn-body.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
type-arg-mismatch-due-to-impl-trait.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
type-arg-mismatch-due-to-impl-trait.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
type_parameters_captured.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
type_parameters_captured.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
unactionable_diagnostic.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unactionable_diagnostic.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unactionable_diagnostic.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
universal-mismatched-type.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
universal-mismatched-type.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
universal-two-impl-traits.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
universal-two-impl-traits.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
universal_hrtb_anon.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
universal_hrtb_named.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
universal_in_adt_in_parameters.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
universal_in_impl_trait_in_parameters.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
universal_in_trait_defn_parameters.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
universal_multiple_bounds.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
universal_wrong_bounds.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
universal_wrong_bounds.stderr Special-case item attributes in the suggestion output 2023-04-12 22:50:10 +00:00
universal_wrong_hrtb.rs migrate lifetime too 2023-06-26 19:14:49 +00:00
universal_wrong_hrtb.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
unsafety-checking-cycle.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
variance.e2024.stderr Enable new capture rules by default on edition 2024 2023-12-05 19:53:59 +00:00
variance.new.stderr Enable new capture rules by default on edition 2024 2023-12-05 19:53:59 +00:00
variance.old.stderr Enable new capture rules by default on edition 2024 2023-12-05 19:53:59 +00:00
variance.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
wf-eval-order.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
where-allowed-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
where-allowed-2.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
where-allowed.rs return ty::Error when equating ty::Error 2024-02-19 23:54:49 +00:00
where-allowed.stderr return ty::Error when equating ty::Error 2024-02-19 23:54:49 +00:00
xcrate.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
xcrate_simple.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00