rust/tests/ui/regions
Esteban Küber 4aba2c55e6 Modify find_expr from Span to better account for closures
Start pointing to where bindings were declared when they are captured in closures:

```
error[E0597]: `x` does not live long enough
  --> $DIR/suggest-return-closure.rs:23:9
   |
LL |     let x = String::new();
   |         - binding `x` declared here
...
LL |     |c| {
   |     --- value captured here
LL |         x.push(c);
   |         ^ borrowed value does not live long enough
...
LL | }
   | -- borrow later used here
   | |
   | `x` dropped here while still borrowed
```

Suggest cloning in more cases involving closures:

```
error[E0507]: cannot move out of `foo` in pattern guard
  --> $DIR/issue-27282-move-ref-mut-into-guard.rs:11:19
   |
LL |             if { (|| { let mut bar = foo; bar.take() })(); false } => {},
   |                   ^^                 --- move occurs because `foo` has type `&mut Option<&i32>`, which does not implement the `Copy` trait
   |                   |
   |                   `foo` is moved here
   |
   = note: variables bound in patterns cannot be moved from until after the end of the pattern guard
help: consider cloning the value if the performance cost is acceptable
   |
LL |             if { (|| { let mut bar = foo.clone(); bar.take() })(); false } => {},
   |                                         ++++++++
```
2024-04-24 22:21:13 +00:00
..
auxiliary Move /src/test to /tests 2023-01-11 09:32:08 +00:00
closure-in-projection-issue-97405.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
closure-in-projection-issue-97405.stderr always show and explain sub region 2023-10-08 09:59:51 +00:00
do-not-suggest-adding-bound-to-opaque-type.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
do-not-suggest-adding-bound-to-opaque-type.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
forall-wf-ref-reflexive.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
forall-wf-ref-reflexive.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
forall-wf-reflexive.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
higher-ranked-implied.rs add test where we ignore hr implied bounds 2023-01-24 12:41:18 +01:00
higher-ranked-implied.stderr Point out expectation even if we have RegionsInsufficientlyPolymorphic 2023-08-09 01:10:08 +00:00
init-res-into-things.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-5243.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-6157.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-11612.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-12470.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-12470.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-21520.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-24085.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-26448-1.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-26448-2.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-26448-3.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-28848.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-28848.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-56537-closure-uses-region-from-container.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-72051-member-region-hang.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-78262.base.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-78262.polonius.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-78262.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-101280.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-101280.stderr recurse into refs when comparing tys for diagnostics 2023-12-07 23:00:46 -05:00
issue-102374.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-102374.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-102392.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-102392.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
outlives-with-missing.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
outlives-with-missing.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
owned-implies-static.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
rcvr-borrowed-to-region.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
region-borrow-params-issue-29793-big.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
region-borrow-params-issue-29793-big.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
region-borrow-params-issue-29793-small.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
region-borrow-params-issue-29793-small.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
region-bound-extra-bound-in-inherent-impl.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
region-bound-on-closure-outlives-call.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
region-bound-on-closure-outlives-call.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
region-bound-same-bounds-in-trait-and-impl.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
region-bounds-on-objects-and-type-parameters.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
region-bounds-on-objects-and-type-parameters.stderr Improve the diagnostics for unused generic parameters 2024-02-01 16:18:03 +01:00
region-invariant-static-error-reporting.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
region-invariant-static-error-reporting.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
region-lifetime-bounds-on-fns-where-clause.rs Continue to borrowck even if there were previous errors 2024-02-08 08:10:43 +00:00
region-lifetime-bounds-on-fns-where-clause.stderr Revert "Auto merge of #122140 - oli-obk:track_errors13, r=davidtwco" 2024-03-11 21:28:16 +00:00
region-multiple-lifetime-bounds-on-fns-where-clause.rs Continue to borrowck even if there were previous errors 2024-02-08 08:10:43 +00:00
region-multiple-lifetime-bounds-on-fns-where-clause.stderr Revert "Auto merge of #122140 - oli-obk:track_errors13, r=davidtwco" 2024-03-11 21:28:16 +00:00
region-object-lifetime-1.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
region-object-lifetime-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
region-object-lifetime-2.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
region-object-lifetime-3.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
region-object-lifetime-4.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
region-object-lifetime-4.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
region-object-lifetime-5.rs Do not set up wrong span for adjustments 2023-07-10 20:09:26 +00:00
region-object-lifetime-5.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
region-object-lifetime-in-coercion.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
region-object-lifetime-in-coercion.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-addr-of-arg.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-addr-of-arg.stderr Tweak E0597 2023-01-15 19:46:20 +00:00
regions-addr-of-interior-of-unique-box.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-addr-of-ret.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-addr-of-self.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-addr-of-self.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
regions-addr-of-upvar-self.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-addr-of-upvar-self.stderr Modify find_expr from Span to better account for closures 2024-04-24 22:21:13 +00:00
regions-adjusted-lvalue-op.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-adjusted-lvalue-op.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-assoc-type-in-supertrait-outlives-container.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-assoc-type-in-supertrait-outlives-container.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
regions-assoc-type-region-bound-in-trait-not-met.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-assoc-type-region-bound-in-trait-not-met.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-assoc-type-region-bound.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-assoc-type-static-bound-in-trait-not-met.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-assoc-type-static-bound-in-trait-not-met.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
regions-assoc-type-static-bound.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-borrow-at.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-borrow-evec-fixed.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-borrow-evec-uniq.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-borrow-uniq.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-bot.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-bound-lists-feature-gate-2.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-bound-lists-feature-gate.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-bounded-by-trait-requiring-static.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-bounded-by-trait-requiring-static.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-bounded-method-type-parameters-cross-crate.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-bounded-method-type-parameters-cross-crate.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
regions-bounded-method-type-parameters-trait-bound.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-bounded-method-type-parameters-trait-bound.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
regions-bounded-method-type-parameters.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-bounded-method-type-parameters.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
regions-bounds.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-bounds.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-close-associated-type-into-object.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-close-associated-type-into-object.stderr remove trailing dots 2023-10-08 10:06:17 +00:00
regions-close-object-into-object-1.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-close-object-into-object-1.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
regions-close-object-into-object-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-close-object-into-object-2.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-close-object-into-object-3.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-close-object-into-object-3.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
regions-close-object-into-object-4.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-close-object-into-object-4.stderr remove trailing dots 2023-10-08 10:06:17 +00:00
regions-close-object-into-object-5.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-close-object-into-object-5.stderr remove trailing dots 2023-10-08 10:06:17 +00:00
regions-close-over-type-parameter-1.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-close-over-type-parameter-1.stderr remove trailing dots 2023-10-08 10:06:17 +00:00
regions-close-over-type-parameter-multiple.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-close-over-type-parameter-multiple.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
regions-close-over-type-parameter-successfully.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-close-param-into-object.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-close-param-into-object.stderr remove trailing dots 2023-10-08 10:06:17 +00:00
regions-copy-closure.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-creating-enums2.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-creating-enums3.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-creating-enums3.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
regions-creating-enums4.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-creating-enums4.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
regions-creating-enums5.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-creating-enums.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-creating-enums.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-debruijn-of-object.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-dependent-addr-of.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-dependent-autofn.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-dependent-autoslice.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-dependent-let-ref.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-early-bound-error-method.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-early-bound-error-method.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
regions-early-bound-error.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-early-bound-error.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
regions-early-bound-lifetime-in-assoc-fn.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-early-bound-trait-param.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-early-bound-used-in-bound-method.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-early-bound-used-in-bound.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-early-bound-used-in-type-param.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-escape-into-other-fn.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-escape-method.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-escape-method.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
regions-escape-via-trait-or-not.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-escape-via-trait-or-not.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
regions-expl-self.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-fn-subtyping-2.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-fn-subtyping-return-static-fail.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-fn-subtyping-return-static-fail.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
regions-fn-subtyping-return-static.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-fn-subtyping.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-free-region-ordering-callee-4.rs Continue compilation after check_mod_type_wf errors 2024-02-14 11:00:30 +00:00
regions-free-region-ordering-callee-4.stderr Continue compilation after check_mod_type_wf errors 2024-02-14 11:00:30 +00:00
regions-free-region-ordering-callee.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-free-region-ordering-callee.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-free-region-ordering-caller1.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-free-region-ordering-caller1.stderr Tweak E0597 2023-01-15 19:46:20 +00:00
regions-free-region-ordering-caller.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-free-region-ordering-caller.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-free-region-ordering-incorrect.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-free-region-ordering-incorrect.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
regions-free-region-outlives-static-outlives-free-region.rs Split back out unused_lifetimes -> redundant_lifetimes 2024-04-09 12:17:34 -04:00
regions-free-region-outlives-static-outlives-free-region.stderr Split back out unused_lifetimes -> redundant_lifetimes 2024-04-09 12:17:34 -04:00
regions-glb-free-free.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-glb-free-free.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
regions-implied-bounds-projection-gap-1.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-implied-bounds-projection-gap-1.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
regions-implied-bounds-projection-gap-2.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-implied-bounds-projection-gap-3.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-implied-bounds-projection-gap-4.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-implied-bounds-projection-gap-hr-1.rs Continue compilation after check_mod_type_wf errors 2024-02-14 11:00:30 +00:00
regions-implied-bounds-projection-gap-hr-1.stderr Continue compilation after check_mod_type_wf errors 2024-02-14 11:00:30 +00:00
regions-in-enums-anon.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-in-enums-anon.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
regions-in-enums.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-in-enums.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-in-structs-anon.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-in-structs-anon.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
regions-in-structs.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-in-structs.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-infer-at-fn-not-param.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-infer-at-fn-not-param.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
regions-infer-borrow-scope-addr-of.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-infer-borrow-scope-too-big.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-infer-borrow-scope-too-big.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
regions-infer-borrow-scope-view.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-infer-borrow-scope-within-loop-ok.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-infer-borrow-scope.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-infer-bound-from-trait-self.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-infer-bound-from-trait-self.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
regions-infer-bound-from-trait.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-infer-bound-from-trait.stderr remove trailing dots 2023-10-08 10:06:17 +00:00
regions-infer-call-2.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-infer-call-3.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-infer-call-3.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
regions-infer-call.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-infer-contravariance-due-to-decl.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-infer-contravariance-due-to-decl.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
regions-infer-contravariance-due-to-ret.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-infer-covariance-due-to-decl.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-infer-covariance-due-to-decl.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
regions-infer-invariance-due-to-decl.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-infer-invariance-due-to-decl.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
regions-infer-invariance-due-to-mutability-3.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-infer-invariance-due-to-mutability-3.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
regions-infer-invariance-due-to-mutability-4.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-infer-invariance-due-to-mutability-4.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
regions-infer-not-param.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-infer-not-param.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-infer-paramd-indirect.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-infer-paramd-indirect.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
regions-infer-proc-static-upvar.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-infer-proc-static-upvar.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
regions-infer-reborrow-ref-mut-recurse.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-infer-region-in-fn-but-not-type.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-infer-static-from-proc.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-issue-21422.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-issue-22246.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-lifetime-bounds-on-fns.rs Continue to borrowck even if there were previous errors 2024-02-08 08:10:43 +00:00
regions-lifetime-bounds-on-fns.stderr Revert "Auto merge of #122140 - oli-obk:track_errors13, r=davidtwco" 2024-03-11 21:28:16 +00:00
regions-lifetime-nonfree-late-bound.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-lifetime-of-struct-or-enum-variant.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-lifetime-of-struct-or-enum-variant.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-lifetime-static-items-enclosing-scopes.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-link-fn-args.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-lub-ref-ref-rc.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-mock-codegen.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-name-duplicated.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-name-duplicated.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
regions-name-static.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-name-static.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
regions-name-undeclared.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-name-undeclared.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-nested-fns-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-nested-fns-2.stderr Modify find_expr from Span to better account for closures 2024-04-24 22:21:13 +00:00
regions-nested-fns.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-nested-fns.stderr Modify find_expr from Span to better account for closures 2024-04-24 22:21:13 +00:00
regions-no-bound-in-argument-cleanup.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-no-variance-from-fn-generics.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-normalize-in-where-clause-list.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-normalize-in-where-clause-list.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
regions-nullary-variant.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-outlives-nominal-type-enum-region-rev.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-outlives-nominal-type-enum-region.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-outlives-nominal-type-enum-type-rev.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-outlives-nominal-type-enum-type.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-outlives-nominal-type-struct-region-rev.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-outlives-nominal-type-struct-region.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-outlives-nominal-type-struct-type-rev.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-outlives-nominal-type-struct-type.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-outlives-projection-container-hrtb.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-outlives-projection-container-hrtb.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-outlives-projection-container-wc.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-outlives-projection-container-wc.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
regions-outlives-projection-container.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-outlives-projection-container.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-outlives-projection-hrtype.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-outlives-projection-trait-def.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-outlives-scalar.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-params.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-pattern-typing-issue-19552.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-pattern-typing-issue-19552.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
regions-pattern-typing-issue-19997.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-pattern-typing-issue-19997.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
regions-proc-bound-capture.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-proc-bound-capture.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
regions-reassign-let-bound-pointer.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-reassign-match-bound-pointer.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-reborrow-from-shorter-mut-ref-mut-ref.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-reborrow-from-shorter-mut-ref-mut-ref.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
regions-reborrow-from-shorter-mut-ref.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-reborrow-from-shorter-mut-ref.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
regions-ref-in-fn-arg.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-ref-in-fn-arg.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-refcell.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-relate-bound-regions-on-closures-to-inference-variables.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-ret-borrowed-1.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-ret-borrowed-1.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
regions-ret-borrowed.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-ret-borrowed.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
regions-ret.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-ret.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
regions-return-interior-of-option.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-return-ref-to-upvar-issue-17403.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-return-ref-to-upvar-issue-17403.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
regions-return-stack-allocated-vec.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-return-stack-allocated-vec.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
regions-scope-chain-example.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-self-impls.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-self-in-enums.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-simple.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-static-bound-rpass.rs Split back out unused_lifetimes -> redundant_lifetimes 2024-04-09 12:17:34 -04:00
regions-static-bound-rpass.stderr Split back out unused_lifetimes -> redundant_lifetimes 2024-04-09 12:17:34 -04:00
regions-static-bound.rs Split back out unused_lifetimes -> redundant_lifetimes 2024-04-09 12:17:34 -04:00
regions-static-bound.stderr Split back out unused_lifetimes -> redundant_lifetimes 2024-04-09 12:17:34 -04:00
regions-static-closure.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-steal-closure.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-steal-closure.stderr Modify find_expr from Span to better account for closures 2024-04-24 22:21:13 +00:00
regions-trait-1.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-trait-object-1.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-trait-object-subtyping.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-trait-object-subtyping.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-trait-variance.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-trait-variance.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
regions-undeclared.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-undeclared.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-var-type-out-of-scope.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-var-type-out-of-scope.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
regions-variance-contravariant-use-contravariant.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-variance-contravariant-use-covariant-in-second-position.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-variance-contravariant-use-covariant-in-second-position.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
regions-variance-contravariant-use-covariant.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-variance-contravariant-use-covariant.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
regions-variance-covariant-use-contravariant.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-variance-covariant-use-contravariant.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
regions-variance-covariant-use-covariant.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
regions-variance-invariant-use-contravariant.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-variance-invariant-use-contravariant.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
regions-variance-invariant-use-covariant.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-variance-invariant-use-covariant.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
regions-wf-trait-object.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-wf-trait-object.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
resolve-re-error-ice.rs Make IMPLIED_BOUNDS_ENTAILMENT into a hard error from a lint 2023-12-16 01:28:05 +00:00
resolve-re-error-ice.stderr Make IMPLIED_BOUNDS_ENTAILMENT into a hard error from a lint 2023-12-16 01:28:05 +00:00
transitively-redundant-lifetimes.rs Split back out unused_lifetimes -> redundant_lifetimes 2024-04-09 12:17:34 -04:00
transitively-redundant-lifetimes.stderr Split back out unused_lifetimes -> redundant_lifetimes 2024-04-09 12:17:34 -04:00
type-param-outlives-reempty-issue-74429-2.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
type-param-outlives-reempty-issue-74429.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
wf-bound-region-in-object-type.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00