rust/tests/ui/borrowck
bors 6eaa7fb576 Auto merge of #122603 - estebank:clone-o-rama, r=lcnr
Detect borrow checker errors where `.clone()` would be an appropriate user action

When a value is moved twice, suggest cloning the earlier move:

```
error[E0509]: cannot move out of type `U2`, which implements the `Drop` trait
  --> $DIR/union-move.rs:49:18
   |
LL |         move_out(x.f1_nocopy);
   |                  ^^^^^^^^^^^
   |                  |
   |                  cannot move out of here
   |                  move occurs because `x.f1_nocopy` has type `ManuallyDrop<RefCell<i32>>`, which does not implement the `Copy` trait
   |
help: consider cloning the value if the performance cost is acceptable
   |
LL |         move_out(x.f1_nocopy.clone());
   |                             ++++++++
```

When a value is borrowed by an `fn` call, consider if cloning the result of the call would be reasonable, and suggest cloning that, instead of the argument:

```
error[E0505]: cannot move out of `a` because it is borrowed
  --> $DIR/variance-issue-20533.rs:53:14
   |
LL |         let a = AffineU32(1);
   |             - binding `a` declared here
LL |         let x = bat(&a);
   |                     -- borrow of `a` occurs here
LL |         drop(a);
   |              ^ move out of `a` occurs here
LL |         drop(x);
   |              - borrow later used here
   |
help: consider cloning the value if the performance cost is acceptable
   |
LL |         let x = bat(&a).clone();
   |                        ++++++++
```

otherwise, suggest cloning the argument:

```
error[E0505]: cannot move out of `a` because it is borrowed
  --> $DIR/variance-issue-20533.rs:59:14
   |
LL |         let a = ClonableAffineU32(1);
   |             - binding `a` declared here
LL |         let x = foo(&a);
   |                     -- borrow of `a` occurs here
LL |         drop(a);
   |              ^ move out of `a` occurs here
LL |         drop(x);
   |              - borrow later used here
   |
help: consider cloning the value if the performance cost is acceptable
   |
LL -         let x = foo(&a);
LL +         let x = foo(a.clone());
   |
```

This suggestion doesn't attempt to square out the types between what's cloned and what the `fn` expects, to allow the user to make a determination on whether to change the `fn` call or `fn` definition themselves.

Special case move errors caused by `FnOnce`:

```
error[E0382]: use of moved value: `blk`
  --> $DIR/once-cant-call-twice-on-heap.rs:8:5
   |
LL | fn foo<F:FnOnce()>(blk: F) {
   |                    --- move occurs because `blk` has type `F`, which does not implement the `Copy` trait
LL |     blk();
   |     ----- `blk` moved due to this call
LL |     blk();
   |     ^^^ value used here after move
   |
note: `FnOnce` closures can only be called once
  --> $DIR/once-cant-call-twice-on-heap.rs:6:10
   |
LL | fn foo<F:FnOnce()>(blk: F) {
   |          ^^^^^^^^ `F` is made to be an `FnOnce` closure here
LL |     blk();
   |     ----- this value implements `FnOnce`, which causes it to be moved when called
```

Account for redundant `.clone()` calls in resulting suggestions:

```
error[E0507]: cannot move out of dereference of `S`
  --> $DIR/needs-clone-through-deref.rs:15:18
   |
LL |         for _ in self.clone().into_iter() {}
   |                  ^^^^^^^^^^^^ ----------- value moved due to this method call
   |                  |
   |                  move occurs because value has type `Vec<usize>`, which does not implement the `Copy` trait
   |
note: `into_iter` takes ownership of the receiver `self`, which moves value
  --> $SRC_DIR/core/src/iter/traits/collect.rs:LL:COL
help: you can `clone` the value and consume it, but this might not be your desired behavior
   |
LL |         for _ in <Vec<usize> as Clone>::clone(&self).into_iter() {}
   |                  ++++++++++++++++++++++++++++++    ~
```

We use the presence of `&mut` values in a move error as a proxy for the user caring about side effects, so we don't emit a clone suggestion in that case:

```
error[E0505]: cannot move out of `s` because it is borrowed
  --> $DIR/borrowck-overloaded-index-move-index.rs:53:7
   |
LL |     let mut s = "hello".to_string();
   |         ----- binding `s` declared here
LL |     let rs = &mut s;
   |              ------ borrow of `s` occurs here
...
LL |     f[s] = 10;
   |       ^ move out of `s` occurs here
...
LL |     use_mut(rs);
   |             -- borrow later used here
```

We properly account for `foo += foo;` errors where we *don't* suggest `foo.clone() += foo;`, instead suggesting `foo += foo.clone();`.

---

Each commit can be reviewed in isolation. There are some "cleanup" commits, but kept them separate in order to show *why* specific changes were being made, and their effect on tests' output.

Fix #49693, CC #64167.
2024-04-13 09:07:26 +00:00
..
alias-liveness [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
access-mode-in-closures.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
access-mode-in-closures.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
accidentally-cloning-ref-borrow-error.rs Provide more suggestions for cloning immutable bindings 2023-12-04 21:54:34 +00:00
accidentally-cloning-ref-borrow-error.stderr Provide more suggestions for cloning immutable bindings 2023-12-04 21:54:34 +00:00
anonymous-region-in-apit.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
anonymous-region-in-apit.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
argument_number_mismatch_ice.rs Avoid an ICE in diagnostics 2024-02-13 10:44:54 +00:00
argument_number_mismatch_ice.stderr Account for trait/impl difference when suggesting changing argument from ref to mut ref 2024-04-06 16:23:10 +00:00
assign_mutable_fields.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
assign_mutable_fields.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
assign-never-type.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
async-reference-generality.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
bindings-after-at-or-patterns-slice-patterns-box-patterns.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
bindings-after-at-or-patterns-slice-patterns-box-patterns.stderr Run check_match and check_liveness when MIR is built instead of having an explicit phase for them 2023-04-21 22:32:38 +00:00
borrow-immutable-upvar-mutation-impl-trait.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrow-immutable-upvar-mutation-impl-trait.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
borrow-immutable-upvar-mutation.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrow-immutable-upvar-mutation.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrow-raw-address-of-borrowed.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrow-raw-address-of-borrowed.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrow-raw-address-of-deref-mutability-ok.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
borrow-raw-address-of-deref-mutability.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrow-raw-address-of-deref-mutability.stderr tweak "make mut" spans when assigning to locals 2023-05-05 22:40:04 +12:00
borrow-raw-address-of-mutability-ok.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
borrow-raw-address-of-mutability.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrow-raw-address-of-mutability.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrow-tuple-fields.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrow-tuple-fields.stderr Account for unops when suggesting cloning 2024-04-11 16:41:41 +00:00
borrowck-access-permissions.rs Improve wording of static_mut_ref 2024-02-18 06:01:40 +03:00
borrowck-access-permissions.stderr Improve wording of static_mut_ref 2024-02-18 06:01:40 +03:00
borrowck-and-init.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-and-init.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
borrowck-anon-fields-struct.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-anon-fields-struct.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
borrowck-anon-fields-tuple.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-anon-fields-tuple.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
borrowck-anon-fields-variant.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-anon-fields-variant.stderr Tweak E0597 2023-01-15 19:46:20 +00:00
borrowck-argument.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-argument.stderr Do not set up wrong span for adjustments 2023-07-10 20:09:26 +00:00
borrowck-assign-comp-idx.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-assign-comp-idx.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-assign-comp.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-assign-comp.stderr Tweak E0597 2023-01-15 19:46:20 +00:00
borrowck-assign-to-andmut-in-aliasable-loc.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-assign-to-andmut-in-aliasable-loc.stderr tweak "make mut" spans (No. 3) 2023-05-05 22:40:05 +12:00
borrowck-assign-to-andmut-in-borrowed-loc.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-assign-to-andmut-in-borrowed-loc.stderr Tweak E0597 2023-01-15 19:46:20 +00:00
borrowck-assign-to-constants.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-assign-to-constants.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
borrowck-assign-to-subfield.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
borrowck-assignment-to-static-mut.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
borrowck-auto-mut-ref-to-immut-var.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-auto-mut-ref-to-immut-var.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
borrowck-autoref-3261.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-autoref-3261.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
borrowck-bad-nested-calls-free.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-bad-nested-calls-free.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-bad-nested-calls-move.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-bad-nested-calls-move.stderr Account for unops when suggesting cloning 2024-04-11 16:41:41 +00:00
borrowck-binding-mutbl.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
borrowck-block-uninit.rs typos 2023-04-17 09:16:07 +02:00
borrowck-block-uninit.stderr Handle more cases of value suggestions 2024-04-10 20:36:14 +00:00
borrowck-borrow-from-expr-block.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
borrowck-borrow-from-owned-ptr.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-borrow-from-owned-ptr.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-borrow-from-stack-variable.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-borrow-from-stack-variable.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-borrow-from-temporary.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-borrow-from-temporary.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
borrowck-borrow-immut-deref-of-box-as-mut.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-borrow-immut-deref-of-box-as-mut.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
borrowck-borrow-mut-base-ptr-in-aliasable-loc.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-borrow-mut-base-ptr-in-aliasable-loc.stderr tweak "make mut" spans (No. 3) 2023-05-05 22:40:05 +12:00
borrowck-borrow-mut-object-twice.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-borrow-mut-object-twice.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
borrowck-borrow-of-mut-base-ptr-safe.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
borrowck-borrow-overloaded-auto-deref.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-borrow-overloaded-auto-deref.stderr Do not set up wrong span for adjustments 2023-07-10 20:09:26 +00:00
borrowck-borrow-overloaded-deref.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-borrow-overloaded-deref.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-borrowed-uniq-rvalue-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-borrowed-uniq-rvalue-2.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
borrowck-borrowed-uniq-rvalue.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
borrowck-borrowed-uniq-rvalue.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
borrowck-borrowed-uniq-rvalue.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
borrowck-box-sensitivity.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
borrowck-break-uninit-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-break-uninit-2.stderr Handle more cases of value suggestions 2024-04-10 20:36:14 +00:00
borrowck-break-uninit.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-break-uninit.stderr Handle more cases of value suggestions 2024-04-10 20:36:14 +00:00
borrowck-closures-mut-and-imm.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-closures-mut-and-imm.stderr Tweak E0597 2023-01-15 19:46:20 +00:00
borrowck-closures-mut-of-imm.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-closures-mut-of-imm.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-closures-mut-of-mut.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-closures-mut-of-mut.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
borrowck-closures-slice-patterns-ok.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
borrowck-closures-slice-patterns.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-closures-slice-patterns.stderr Better account for more cases involving closures 2024-04-12 04:46:31 +00:00
borrowck-closures-two-imm.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
borrowck-closures-two-mut-fail.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-closures-two-mut-fail.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-closures-two-mut.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-closures-two-mut.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-closures-unique-imm.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-closures-unique-imm.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
borrowck-closures-unique.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-closures-unique.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-closures-use-after-free.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-closures-use-after-free.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
borrowck-consume-unsize-vec.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-consume-unsize-vec.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
borrowck-consume-upcast-box.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-consume-upcast-box.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
borrowck-describe-lvalue.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-describe-lvalue.stderr Do not set up wrong span for adjustments 2023-07-10 20:09:26 +00:00
borrowck-drop-from-guard.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-drop-from-guard.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-escaping-closure-error-1.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-escaping-closure-error-1.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
borrowck-escaping-closure-error-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-escaping-closure-error-2.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
borrowck-field-sensitivity-rpass.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
borrowck-field-sensitivity.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-field-sensitivity.stderr Account for unops when suggesting cloning 2024-04-11 16:41:41 +00:00
borrowck-fixed-length-vecs.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
borrowck-fn-in-const-a.rs Minor test fmt 2024-04-11 16:41:41 +00:00
borrowck-fn-in-const-a.stderr Suggest .clone() in some move errors 2024-04-11 16:41:41 +00:00
borrowck-fn-in-const-c.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-fn-in-const-c.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
borrowck-for-loop-correct-cmt-for-pattern.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-for-loop-correct-cmt-for-pattern.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-for-loop-head-linkage.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-for-loop-head-linkage.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-for-loop-uninitialized-binding.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-for-loop-uninitialized-binding.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
borrowck-freeze-frozen-mut.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
borrowck-if-no-else.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-if-no-else.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
borrowck-if-with-else.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-if-with-else.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
borrowck-imm-ref-to-mut-rec-field-issue-3162-c.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-imm-ref-to-mut-rec-field-issue-3162-c.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
borrowck-in-static.rs Minor test fmt 2024-04-11 16:41:41 +00:00
borrowck-in-static.stderr Suggest .clone() in some move errors 2024-04-11 16:41:41 +00:00
borrowck-init-in-called-fn-expr.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-init-in-called-fn-expr.stderr Handle more cases of value suggestions 2024-04-10 20:36:14 +00:00
borrowck-init-in-fn-expr.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-init-in-fn-expr.stderr Handle more cases of value suggestions 2024-04-10 20:36:14 +00:00
borrowck-init-in-fru.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-init-in-fru.stderr Tweak value suggestions in borrowck and hir_analysis 2024-04-09 23:37:13 +00:00
borrowck-init-op-equal.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-init-op-equal.stderr Handle more cases of value suggestions 2024-04-10 20:36:14 +00:00
borrowck-init-plus-equal.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-init-plus-equal.stderr Handle more cases of value suggestions 2024-04-10 20:36:14 +00:00
borrowck-insert-during-each.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-insert-during-each.stderr Do not set up wrong span for adjustments 2023-07-10 20:09:26 +00:00
borrowck-issue-2657-1.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-issue-2657-1.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
borrowck-issue-2657-2.fixed More move error suggestions to clone 2024-04-11 16:41:41 +00:00
borrowck-issue-2657-2.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
borrowck-issue-2657-2.stderr More move error suggestions to clone 2024-04-11 16:41:41 +00:00
borrowck-issue-14498.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-issue-14498.stderr tweak "make mut" spans when assigning to locals 2023-05-05 22:40:04 +12:00
borrowck-issue-48962.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-issue-48962.stderr Fix accuracy of T: Clone check in suggestion 2024-04-11 16:41:41 +00:00
borrowck-lend-args.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
borrowck-lend-flow-if.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-lend-flow-if.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
borrowck-lend-flow-loop.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-lend-flow-loop.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-lend-flow-match.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-lend-flow-match.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
borrowck-lend-flow.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-lend-flow.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
borrowck-loan-blocks-move-cc.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-loan-blocks-move-cc.stderr Account for unops when suggesting cloning 2024-04-11 16:41:41 +00:00
borrowck-loan-blocks-move.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-loan-blocks-move.stderr Account for unops when suggesting cloning 2024-04-11 16:41:41 +00:00
borrowck-loan-blocks-mut-uniq.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-loan-blocks-mut-uniq.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
borrowck-loan-in-overloaded-op.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-loan-in-overloaded-op.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
borrowck-loan-of-static-data-issue-27616.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-loan-of-static-data-issue-27616.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
borrowck-loan-rcvr-overloaded-op.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-loan-rcvr-overloaded-op.stderr Do not set up wrong span for adjustments 2023-07-10 20:09:26 +00:00
borrowck-loan-rcvr.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-loan-rcvr.stderr Do not set up wrong span for adjustments 2023-07-10 20:09:26 +00:00
borrowck-loan-vec-content.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-loan-vec-content.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
borrowck-local-borrow-outlives-fn.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-local-borrow-outlives-fn.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
borrowck-local-borrow-with-panic-outlives-fn.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-local-borrow-with-panic-outlives-fn.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
borrowck-local-borrow.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
borrowck-macro-interaction-issue-6304.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
borrowck-match-already-borrowed.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-match-already-borrowed.stderr Tweak E0597 2023-01-15 19:46:20 +00:00
borrowck-match-binding-is-assignment.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-match-binding-is-assignment.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-move-by-capture-ok.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
borrowck-move-by-capture.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-move-by-capture.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
borrowck-move-error-with-note.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
borrowck-move-error-with-note.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
borrowck-move-error-with-note.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-move-from-subpath-of-borrowed-path.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-move-from-subpath-of-borrowed-path.stderr Account for unops when suggesting cloning 2024-04-11 16:41:41 +00:00
borrowck-move-from-unsafe-ptr.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-move-from-unsafe-ptr.stderr More move error suggestions to clone 2024-04-11 16:41:41 +00:00
borrowck-move-in-irrefut-pat.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-move-in-irrefut-pat.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-move-moved-value-into-closure.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-move-moved-value-into-closure.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
borrowck-move-mut-base-ptr.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-move-mut-base-ptr.stderr Account for unops when suggesting cloning 2024-04-11 16:41:41 +00:00
borrowck-move-out-from-array-match.rs Use PlaceMention for match scrutinees. 2023-10-24 15:30:17 +00:00
borrowck-move-out-from-array-match.stderr Use PlaceMention for match scrutinees. 2023-10-24 15:30:17 +00:00
borrowck-move-out-from-array-no-overlap-match.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
borrowck-move-out-from-array-no-overlap.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
borrowck-move-out-from-array-use-match.rs Use PlaceMention for match scrutinees. 2023-10-24 15:30:17 +00:00
borrowck-move-out-from-array-use-match.stderr Use PlaceMention for match scrutinees. 2023-10-24 15:30:17 +00:00
borrowck-move-out-from-array-use-no-overlap-match.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
borrowck-move-out-from-array-use-no-overlap.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
borrowck-move-out-from-array-use.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-move-out-from-array-use.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-move-out-from-array.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-move-out-from-array.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-move-out-of-overloaded-auto-deref.fixed Suggest .clone() in some move errors 2024-04-11 16:41:41 +00:00
borrowck-move-out-of-overloaded-auto-deref.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
borrowck-move-out-of-overloaded-auto-deref.stderr Suggest .clone() in some move errors 2024-04-11 16:41:41 +00:00
borrowck-move-out-of-overloaded-deref.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-move-out-of-overloaded-deref.stderr More move error suggestions to clone 2024-04-11 16:41:41 +00:00
borrowck-move-out-of-static-item.rs Minor test fmt 2024-04-11 16:41:41 +00:00
borrowck-move-out-of-static-item.stderr Mention when the type of the moved value doesn't implement Clone 2024-04-11 16:41:42 +00:00
borrowck-move-out-of-struct-with-dtor.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
borrowck-move-out-of-struct-with-dtor.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
borrowck-move-out-of-struct-with-dtor.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-move-out-of-tuple-struct-with-dtor.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
borrowck-move-out-of-tuple-struct-with-dtor.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
borrowck-move-out-of-tuple-struct-with-dtor.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-move-out-of-vec-tail.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-move-out-of-vec-tail.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
borrowck-move-subcomponent.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-move-subcomponent.stderr Mention when the type of the moved value doesn't implement Clone 2024-04-11 16:41:42 +00:00
borrowck-multiple-borrows-interior-boxes.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
borrowck-multiple-captures.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-multiple-captures.stderr Account for unops when suggesting cloning 2024-04-11 16:41:41 +00:00
borrowck-mut-addr-of-imm-var.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-mut-addr-of-imm-var.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
borrowck-mut-borrow-linear-errors.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-mut-borrow-linear-errors.stderr Do not set up wrong span for adjustments 2023-07-10 20:09:26 +00:00
borrowck-mut-borrow-of-mut-base-ptr.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-mut-borrow-of-mut-base-ptr.stderr Do not set up wrong span for adjustments 2023-07-10 20:09:26 +00:00
borrowck-mut-slice-of-imm-vec.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-mut-slice-of-imm-vec.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
borrowck-mut-uniq.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
borrowck-mut-vec-as-imm-slice.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
borrowck-mutate-in-guard.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-mutate-in-guard.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-no-cycle-in-exchange-heap.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-no-cycle-in-exchange-heap.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
borrowck-object-lifetime.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-object-lifetime.stderr Do not set up wrong span for adjustments 2023-07-10 20:09:26 +00:00
borrowck-or-init.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-or-init.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
borrowck-overloaded-call.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-overloaded-call.stderr Mention when the type of the moved value doesn't implement Clone 2024-04-11 16:41:42 +00:00
borrowck-overloaded-index-and-overloaded-deref.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-overloaded-index-and-overloaded-deref.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
borrowck-overloaded-index-autoderef.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-overloaded-index-autoderef.stderr Do not set up wrong span for adjustments 2023-07-10 20:09:26 +00:00
borrowck-overloaded-index-move-from-vec.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-overloaded-index-move-from-vec.stderr More move error suggestions to clone 2024-04-11 16:41:41 +00:00
borrowck-overloaded-index-move-index.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-overloaded-index-move-index.stderr Do not recomment cloning explicit &mut expressions 2024-04-11 16:41:41 +00:00
borrowck-overloaded-index-ref-index.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-overloaded-index-ref-index.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-partial-reinit-1.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-partial-reinit-1.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-partial-reinit-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-partial-reinit-2.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
borrowck-partial-reinit-3.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-partial-reinit-3.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
borrowck-partial-reinit-4.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-partial-reinit-4.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
borrowck-pat-enum.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
borrowck-pat-reassign-binding.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-pat-reassign-binding.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
borrowck-pat-reassign-no-binding.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
borrowck-reborrow-from-mut.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-reborrow-from-mut.stderr tweak "make mut" spans (No. 3) 2023-05-05 22:40:05 +12:00
borrowck-reborrow-from-shorter-lived-andmut.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-reborrow-from-shorter-lived-andmut.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
borrowck-ref-mut-of-imm.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-ref-mut-of-imm.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
borrowck-reinit.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-reinit.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
borrowck-report-with-custom-diagnostic.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-report-with-custom-diagnostic.stderr Do not set up wrong span for adjustments 2023-07-10 20:09:26 +00:00
borrowck-return-variable-on-stack-via-clone.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-return-variable-on-stack-via-clone.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
borrowck-return.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-return.stderr Handle more cases of value suggestions 2024-04-10 20:36:14 +00:00
borrowck-rvalues-mutable.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
borrowck-scope-of-deref-issue-4666.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
borrowck-slice-pattern-element-loan-array-no-overlap.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
borrowck-slice-pattern-element-loan-array.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-slice-pattern-element-loan-array.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-slice-pattern-element-loan-rpass.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
borrowck-slice-pattern-element-loan-slice-no-overlap.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
borrowck-slice-pattern-element-loan-slice.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-slice-pattern-element-loan-slice.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-static-item-in-fn.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
borrowck-storage-dead.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-storage-dead.stderr Handle more cases of value suggestions 2024-04-10 20:36:14 +00:00
borrowck-struct-update-with-dtor.rs Account for move error in the spread operator on struct literals 2024-04-11 16:41:42 +00:00
borrowck-struct-update-with-dtor.stderr review comments 2024-04-12 20:57:07 +00:00
borrowck-swap-mut-base-ptr.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-swap-mut-base-ptr.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
borrowck-thread-local-static-borrow-outlives-fn.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-thread-local-static-borrow-outlives-fn.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
borrowck-trait-lifetime.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
borrowck-unary-move.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-unary-move.stderr Account for unops when suggesting cloning 2024-04-11 16:41:41 +00:00
borrowck-unboxed-closures.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-unboxed-closures.stderr Better account for FnOnce in move errors 2024-04-11 16:41:42 +00:00
borrowck-uninit-after-item.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-uninit-after-item.stderr Handle more cases of value suggestions 2024-04-10 20:36:14 +00:00
borrowck-uninit-field-access.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-uninit-field-access.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-uninit-in-assignop.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-uninit-in-assignop.stderr Handle more cases of value suggestions 2024-04-10 20:36:14 +00:00
borrowck-uninit-ref-chain.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-uninit-ref-chain.stderr Handle more cases of "values to suggest" given a type 2024-04-10 23:58:36 +00:00
borrowck-uninit.rs Fix incorrect suggestion for uninitialize binding in destructuring pattern 2024-02-06 23:12:23 +00:00
borrowck-uninit.stderr Handle more cases of value suggestions 2024-04-10 20:36:14 +00:00
borrowck-union-borrow-nested.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-union-borrow-nested.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
borrowck-union-borrow.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-union-borrow.stderr Tweak E0597 2023-01-15 19:46:20 +00:00
borrowck-union-move-assign.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-union-move-assign.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
borrowck-union-move.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-union-move.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-union-uninitialized.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-union-uninitialized.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-uniq-via-lend.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-uniq-via-lend.stderr Do not set up wrong span for adjustments 2023-07-10 20:09:26 +00:00
borrowck-uniq-via-ref.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
borrowck-univariant-enum.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
borrowck-unsafe-static-mutable-borrows.rs Improve wording of static_mut_ref 2024-02-18 06:01:40 +03:00
borrowck-unsafe-static-mutable-borrows.stderr Improve wording of static_mut_ref 2024-02-18 06:01:40 +03:00
borrowck-unused-mut-locals.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
borrowck-use-in-index-lvalue.fixed Handle more cases of value suggestions 2024-04-10 20:36:14 +00:00
borrowck-use-in-index-lvalue.rs Handle more cases of value suggestions 2024-04-10 20:36:14 +00:00
borrowck-use-in-index-lvalue.stderr Handle more cases of value suggestions 2024-04-10 20:36:14 +00:00
borrowck-use-mut-borrow-rpass.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
borrowck-use-mut-borrow.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-use-mut-borrow.stderr Tweak E0597 2023-01-15 19:46:20 +00:00
borrowck-use-uninitialized-in-cast-trait.fixed Handle more cases of value suggestions 2024-04-10 20:36:14 +00:00
borrowck-use-uninitialized-in-cast-trait.rs Handle more cases of value suggestions 2024-04-10 20:36:14 +00:00
borrowck-use-uninitialized-in-cast-trait.stderr Handle more cases of value suggestions 2024-04-10 20:36:14 +00:00
borrowck-use-uninitialized-in-cast.fixed Handle more cases of value suggestions 2024-04-10 20:36:14 +00:00
borrowck-use-uninitialized-in-cast.rs Handle more cases of value suggestions 2024-04-10 20:36:14 +00:00
borrowck-use-uninitialized-in-cast.stderr Handle more cases of value suggestions 2024-04-10 20:36:14 +00:00
borrowck-vec-pattern-element-loan.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-vec-pattern-element-loan.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-vec-pattern-loan-from-mut.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-vec-pattern-loan-from-mut.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
borrowck-vec-pattern-move-tail.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-vec-pattern-move-tail.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
borrowck-vec-pattern-nesting.rs More move error suggestions to clone 2024-04-11 16:41:41 +00:00
borrowck-vec-pattern-nesting.stderr More move error suggestions to clone 2024-04-11 16:41:41 +00:00
borrowck-vec-pattern-tail-element-loan.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-vec-pattern-tail-element-loan.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
borrowck-while-break.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-while-break.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
borrowck-while-cond.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-while-cond.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
borrowck-while.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrowck-while.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
clone-on-ref.fixed Fix accuracy of T: Clone check in suggestion 2024-04-11 16:41:41 +00:00
clone-on-ref.rs Detect calls to .clone() on T: !Clone types on borrowck errors 2024-03-13 23:05:11 +00:00
clone-on-ref.stderr Mention when the type of the moved value doesn't implement Clone 2024-04-11 16:41:42 +00:00
clone-span-on-try-operator.fixed Suggest .clone() in some move errors 2024-04-11 16:41:41 +00:00
clone-span-on-try-operator.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
clone-span-on-try-operator.stderr Suggest .clone() in some move errors 2024-04-11 16:41:41 +00:00
cloning-in-async-block-121547.rs Fix diagnostics for async block cloning 2024-03-23 20:22:51 +01:00
cloning-in-async-block-121547.stderr Fix diagnostics for async block cloning 2024-03-23 20:22:51 +01:00
copy-suggestion-region-vid.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
copy-suggestion-region-vid.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
copy-suggestion-region-vid.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
disallow-possibly-uninitialized.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
disallow-possibly-uninitialized.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
do-not-suggest-adding-move-when-closure-is-already-marked-as-move.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
do-not-suggest-adding-move-when-closure-is-already-marked-as-move.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
drop-in-loop.rs Add regression tests for issue 70919 2023-03-05 16:56:57 +01:00
drop-in-loop.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
fn-item-check-trait-ref.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
fn-item-check-trait-ref.stderr borrowck: wf-check fn item args 2024-01-16 09:25:28 +01:00
fn-item-check-type-params.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
fn-item-check-type-params.stderr borrowck: wf-check fn item args 2024-01-16 09:25:28 +01:00
fsu-moves-and-copies.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
generic_const_early_param.rs Fix early param lifetimes in generic_const_exprs 2023-11-20 23:13:36 +03:00
generic_const_early_param.stderr Fix early param lifetimes in generic_const_exprs 2023-11-20 23:13:36 +03:00
ice-mutability-error-slicing-121807.rs add test for #121807 2024-03-21 21:27:37 +01:00
ice-mutability-error-slicing-121807.stderr add test for #121807 2024-03-21 21:27:37 +01:00
immut-function-arguments.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
immut-function-arguments.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
immutable-arg.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
immutable-arg.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
index-mut-help-with-impl.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
index-mut-help-with-impl.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
index-mut-help.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
index-mut-help.stderr Do not set up wrong span for adjustments 2023-07-10 20:09:26 +00:00
issue-7573.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-7573.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-10876.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-11493.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-11493.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-11493.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-17263.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-17545.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-17545.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-17718-static-move.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-17718-static-move.stderr Mention when the type of the moved value doesn't implement Clone 2024-04-11 16:41:42 +00:00
issue-20801.rs Improve wording of static_mut_ref 2024-02-18 06:01:40 +03:00
issue-20801.stderr Mention when the type of the moved value doesn't implement Clone 2024-04-11 16:41:42 +00:00
issue-23338-params-outlive-temps-of-body.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-24267-flow-exit.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-24267-flow-exit.stderr Handle more cases of value suggestions 2024-04-10 20:36:14 +00:00
issue-25793.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-25793.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-28934.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-29166.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-31287-drop-in-guard.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-31287-drop-in-guard.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-33819.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-33819.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-36082.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-36082.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-36082.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-41962.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-41962.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-42344.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-42344.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-45199.rs Remove DesugaringKind::Replace. 2023-05-25 17:40:46 +00:00
issue-45199.stderr Remove DesugaringKind::Replace. 2023-05-25 17:40:46 +00:00
issue-45983.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-45983.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-46095.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-46471.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-46471.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-47215-ice-from-drop-elab.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-47215-ice-from-drop-elab.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-47646.rs Move test files 2023-04-20 15:06:17 -03:00
issue-47646.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-51117.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-51117.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-51301.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-51301.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-51348-multi-ref-mut-in-guard.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-51415.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-51415.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-51415.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-52713-bug.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-52713-bug.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-52967-edition-2018-needs-two-phase-borrows.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-53432-nested-closure-outlives-borrowed-value.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-53432-nested-closure-outlives-borrowed-value.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-54499-field-mutation-marks-mut-as-used.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-54499-field-mutation-marks-mut-as-used.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-54499-field-mutation-of-moved-out-with-mut.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-54499-field-mutation-of-moved-out-with-mut.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-54499-field-mutation-of-moved-out.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-54499-field-mutation-of-moved-out.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-54499-field-mutation-of-never-init.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-54499-field-mutation-of-never-init.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-54597-reject-move-out-of-borrow-via-pat.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-54597-reject-move-out-of-borrow-via-pat.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-55492-borrowck-migrate-scans-parents.rs Improve wording of static_mut_ref 2024-02-18 06:01:40 +03:00
issue-55492-borrowck-migrate-scans-parents.stderr Revert "Auto merge of #122140 - oli-obk:track_errors13, r=davidtwco" 2024-03-11 21:28:16 +00:00
issue-55552-ascribe-wildcard-to-structured-pattern.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-58776-borrowck-scans-children.rs Desugars drop and replace at MIR build 2023-03-03 16:33:11 +01:00
issue-58776-borrowck-scans-children.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-62007-assign-box.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-62007-assign-field.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-62107-match-arm-scopes.rs Use PlaceMention for match scrutinees. 2023-10-24 15:30:17 +00:00
issue-62107-match-arm-scopes.stderr Handle more cases of value suggestions 2024-04-10 20:36:14 +00:00
issue-62387-suggest-iter-mut-2.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-62387-suggest-iter-mut-2.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-62387-suggest-iter-mut-2.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-62387-suggest-iter-mut.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-62387-suggest-iter-mut.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-62387-suggest-iter-mut.stderr suggest iter_mut() where trying to modify elements from .iter() 2023-09-07 00:20:38 +08:00
issue-64453.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-64453.stderr Suggest .clone() in some move errors 2024-04-11 16:41:41 +00:00
issue-69789-iterator-mut-suggestion.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-69789-iterator-mut-suggestion.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-70919-drop-in-loop.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-71546.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-80772.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-81365-1.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-81365-1.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-81365-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-81365-2.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-81365-3.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-81365-3.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-81365-4.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-81365-4.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-81365-5.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-81365-5.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-81365-6.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-81365-6.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-81365-7.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-81365-7.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-81365-8.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-81365-8.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-81365-9.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-81365-9.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-81365-10.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-81365-10.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-81365-11.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-81365-11.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-81899.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-81899.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-82032.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-82032.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-82126-mismatched-subst-and-hir.rs Bless test fallout (duplicate diagnostics) 2024-03-20 13:00:34 -04:00
issue-82126-mismatched-subst-and-hir.stderr Bless test fallout (duplicate diagnostics) 2024-03-20 13:00:34 -04:00
issue-82462.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-82462.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-83309-ice-immut-in-for-loop.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-83309-ice-immut-in-for-loop.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-83760.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-83760.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-83760.stderr Suggest cloning and point out obligation errors on move error 2023-12-04 21:54:32 +00:00
issue-83924.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-83924.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-83924.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-85581.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-85581.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-85765-closure.rs Make InferCtxtExt::could_impl_trait less messed up 2024-01-13 22:00:34 +00:00
issue-85765-closure.stderr Make InferCtxtExt::could_impl_trait less messed up 2024-01-13 22:00:34 +00:00
issue-85765.rs Make InferCtxtExt::could_impl_trait less messed up 2024-01-13 22:00:34 +00:00
issue-85765.stderr Make InferCtxtExt::could_impl_trait less messed up 2024-01-13 22:00:34 +00:00
issue-87456-point-to-closure.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-87456-point-to-closure.stderr More move error suggestions to clone 2024-04-11 16:41:41 +00:00
issue-88434-minimal-example.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-88434-minimal-example.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-88434-removal-index-should-be-less.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-88434-removal-index-should-be-less.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-91206.rs Make InferCtxtExt::could_impl_trait less messed up 2024-01-13 22:00:34 +00:00
issue-91206.stderr Make InferCtxtExt::could_impl_trait less messed up 2024-01-13 22:00:34 +00:00
issue-92015.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-92015.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-92157.rs rustc_hir_analysis: add a helper to check function the signature mismatches 2023-09-19 18:15:23 +02:00
issue-92157.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-93078.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-93078.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-93093.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-93093.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-95079-missing-move-in-nested-closure.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-95079-missing-move-in-nested-closure.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-95079-missing-move-in-nested-closure.stderr adjust how closure/generator types and rvalues are printed 2023-09-21 22:20:58 +02:00
issue-101119.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-101119.stderr Better account for more cases involving closures 2024-04-12 04:46:31 +00:00
issue-102209.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-102209.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-103095.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-103250.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-103250.stderr Handle more cases of "values to suggest" given a type 2024-04-10 23:58:36 +00:00
issue-103624.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-103624.stderr Mention when the type of the moved value doesn't implement Clone 2024-04-11 16:41:42 +00:00
issue-104639-lifetime-order.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-109271-pass-self-into-closure.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-109271-pass-self-into-closure.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-109271-pass-self-into-closure.stderr When displaying multispans, ignore empty lines adjacent to ... 2024-03-18 16:25:36 +00:00
issue-111554.rs Don't suggest changing {ImmRef,MutRef} implicit self to be mutable 2023-05-29 13:11:03 +08:00
issue-111554.stderr Don't suggest changing {ImmRef,MutRef} implicit self to be mutable 2023-05-29 13:11:03 +08:00
issue-114374-invalid-help-fmt-args.rs Remove the unhelpful let binding diag comes from FormatArguments 2023-08-23 12:35:00 +08:00
issue-114374-invalid-help-fmt-args.stderr Fix a typo in a format_args! note 2023-11-28 17:12:20 -08:00
issue-115259-suggest-iter-mut.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-115259-suggest-iter-mut.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-115259-suggest-iter-mut.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-119915-bad-clone-suggestion.rs Make InferCtxtExt::could_impl_trait less messed up 2024-01-13 22:00:34 +00:00
issue-119915-bad-clone-suggestion.stderr Mention when the type of the moved value doesn't implement Clone 2024-04-11 16:41:42 +00:00
kindck-implicit-close-over-mut-var.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lazy-init.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
let_underscore_temporary.rs Update test. 2024-02-20 15:34:11 +01:00
let_underscore_temporary.stderr Update test. 2024-02-20 15:34:11 +01:00
many-mutable-borrows.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
many-mutable-borrows.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
move-error-in-promoted-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
move-error-in-promoted-2.stderr Mention when the type of the moved value doesn't implement Clone 2024-04-11 16:41:42 +00:00
move-error-in-promoted.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
move-error-in-promoted.stderr Suggest .clone() in some move errors 2024-04-11 16:41:41 +00:00
move-error-snippets-ext.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
move-error-snippets.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
move-error-snippets.stderr Mention when the type of the moved value doesn't implement Clone 2024-04-11 16:41:42 +00:00
move-from-union-field-issue-66500.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
move-from-union-field-issue-66500.stderr Suggest .clone() in some move errors 2024-04-11 16:41:41 +00:00
move-in-pattern-mut-in-loop.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
move-in-pattern-mut-in-loop.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
move-in-pattern-mut.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
move-in-pattern-mut.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
move-in-pattern.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
move-in-pattern.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
move-in-pattern.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
move-in-static-initializer-issue-38520.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
move-in-static-initializer-issue-38520.stderr Mention when the type of the moved value doesn't implement Clone 2024-04-11 16:41:42 +00:00
mut-borrow-in-loop-2.rs Detect when move of !Copy value occurs within loop and should likely not be cloned 2024-03-17 21:32:26 +00:00
mut-borrow-in-loop-2.stderr Detect when move of !Copy value occurs within loop and should likely not be cloned 2024-03-17 21:32:26 +00:00
mut-borrow-in-loop.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
mut-borrow-in-loop.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
mut-borrow-of-mut-ref.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
mut-borrow-of-mut-ref.stderr Do not set up wrong span for adjustments 2023-07-10 20:09:26 +00:00
mut-borrow-outside-loop.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
mut-borrow-outside-loop.stderr Do not set up wrong span for adjustments 2023-07-10 20:09:26 +00:00
mutability-errors.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
mutability-errors.stderr tweak "make mut" spans (No. 3) 2023-05-05 22:40:05 +12:00
opaque-types-patterns-subtyping-ice-104779.rs add test for #104779 opaque types, patterns and subtyping ICE: IndexMap: key not found 2024-03-23 12:19:05 +01:00
opaque-types-patterns-subtyping-ice-104779.stderr add test for #104779 opaque types, patterns and subtyping ICE: IndexMap: key not found 2024-03-23 12:19:05 +01:00
or-patterns.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
or-patterns.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
promote-ref-mut-in-let-issue-46557.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
promote-ref-mut-in-let-issue-46557.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
reassignment_immutable_fields_overlapping.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
reassignment_immutable_fields_overlapping.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
reassignment_immutable_fields_twice.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
reassignment_immutable_fields_twice.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
reassignment_immutable_fields.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
reassignment_immutable_fields.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
reborrow-sugg-move-then-borrow.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
reborrow-sugg-move-then-borrow.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
regions-bound-missing-bound-in-impl.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-bound-missing-bound-in-impl.stderr recurse into refs when comparing tys for diagnostics 2023-12-07 23:00:46 -05:00
regions-escape-bound-fn-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-escape-bound-fn-2.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
regions-escape-bound-fn.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-escape-bound-fn.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
regions-escape-unboxed-closure.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
regions-escape-unboxed-closure.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
return-local-binding-from-desugaring.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
return-local-binding-from-desugaring.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
slice-index-bounds-check-invalidation.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
slice-index-bounds-check-invalidation.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
suggest-as-ref-on-mut-closure.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
suggest-as-ref-on-mut-closure.stderr Suggest cloning and point out obligation errors on move error 2023-12-04 21:54:32 +00:00
suggest-assign-rvalue.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
suggest-assign-rvalue.stderr Handle more cases of value suggestions 2024-04-10 20:36:14 +00:00
suggest-local-var-double-mut.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
suggest-local-var-double-mut.stderr Do not set up wrong span for adjustments 2023-07-10 20:09:26 +00:00
suggest-local-var-for-vector.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
suggest-local-var-for-vector.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
suggest-local-var-imm-and-mut.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
suggest-local-var-imm-and-mut.stderr Do not set up wrong span for adjustments 2023-07-10 20:09:26 +00:00
suggest-lt-on-ty-alias-w-generics.rs Fix lifetime suggestion for type aliases with objects in them 2023-04-25 20:41:59 +00:00
suggest-lt-on-ty-alias-w-generics.stderr Fix lifetime suggestion for type aliases with objects in them 2023-04-25 20:41:59 +00:00
suggest-mut-iterator.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
suggest-mut-iterator.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
suggest-mut-iterator.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
suggest-storing-local-var-for-vector.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
suggest-storing-local-var-for-vector.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
tainted-promoteds.rs Leave promoteds untainted by errors when borrowck fails 2023-04-30 23:57:47 +02:00
tainted-promoteds.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
trait-impl-argument-difference-ice.rs Account for trait/impl difference when suggesting changing argument from ref to mut ref 2024-04-06 16:23:10 +00:00
trait-impl-argument-difference-ice.stderr Account for trait/impl difference when suggesting changing argument from ref to mut ref 2024-04-06 16:23:10 +00:00
two-phase-across-loop.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
two-phase-across-loop.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
two-phase-activation-sharing-interference.nll_target.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
two-phase-activation-sharing-interference.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
two-phase-allow-access-during-reservation.nll_target.stderr Tweak E0597 2023-01-15 19:46:20 +00:00
two-phase-allow-access-during-reservation.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
two-phase-baseline.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
two-phase-bin-ops.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
two-phase-cannot-nest-mut-self-calls.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
two-phase-cannot-nest-mut-self-calls.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
two-phase-control-flow-split-before-activation.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
two-phase-method-receivers.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
two-phase-multi-mut.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
two-phase-multi-mut.stderr Do not set up wrong span for adjustments 2023-07-10 20:09:26 +00:00
two-phase-multiple-activations.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
two-phase-nonrecv-autoref.base.stderr Improve spans for indexing expressions 2023-08-04 13:17:39 +02:00
two-phase-nonrecv-autoref.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
two-phase-reservation-sharing-interference-2.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
two-phase-reservation-sharing-interference-2.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
two-phase-reservation-sharing-interference.nll_target.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
two-phase-reservation-sharing-interference.rs Fix invalid compiletest directives in tests 2024-03-10 13:13:09 +00:00
two-phase-sneaky.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
two-phase-sneaky.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
two-phase-surprise-no-conflict.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
two-phase-surprise-no-conflict.stderr Note about object lifetime defaults in does not live long enough error 2023-11-12 13:51:16 +01:00
unboxed-closures-move-upvar-from-non-once-ref-closure.fixed Suggest .clone() in some move errors 2024-04-11 16:41:41 +00:00
unboxed-closures-move-upvar-from-non-once-ref-closure.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unboxed-closures-move-upvar-from-non-once-ref-closure.stderr Suggest .clone() in some move errors 2024-04-11 16:41:41 +00:00