diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2022-11-15 19:43:33 -0800 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2022-11-23 12:17:48 -0800 |
| commit | 0da4c44190d657e7c28f077f99b2fa03f06e1649 (patch) | |
| tree | 408a09ca975ef32765528ff9b1df254e3e868b67 /src/test/ui | |
| parent | 3a471b5fd8dcf4444be200b41925396a90a2188a (diff) | |
Account for closures
Diffstat (limited to 'src/test/ui')
4 files changed, 0 insertions, 19 deletions
diff --git a/src/test/ui/closure_context/issue-42065.stderr b/src/test/ui/closure_context/issue-42065.stderr index 4e436ca7c03..896bb6dc6be 100644 --- a/src/test/ui/closure_context/issue-42065.stderr +++ b/src/test/ui/closure_context/issue-42065.stderr @@ -16,10 +16,6 @@ note: this value implements `FnOnce`, which causes it to be moved when called | LL | debug_dump_dict(); | ^^^^^^^^^^^^^^^ -help: consider cloning the value if the performance cost is acceptable - | -LL | debug_dump_dict.clone()(); - | ++++++++ error: aborting due to previous error diff --git a/src/test/ui/moves/borrow-closures-instead-of-move.stderr b/src/test/ui/moves/borrow-closures-instead-of-move.stderr index fbeeaf646e1..9a84ddef7e6 100644 --- a/src/test/ui/moves/borrow-closures-instead-of-move.stderr +++ b/src/test/ui/moves/borrow-closures-instead-of-move.stderr @@ -58,13 +58,6 @@ note: closure cannot be moved more than once as it is not `Copy` due to moving t | LL | x += 1; | ^ -note: consider changing this parameter type in function `takes_fnonce` to borrow instead if owning the value isn't necessary - --> $DIR/borrow-closures-instead-of-move.rs:34:20 - | -LL | fn takes_fnonce(_: impl FnOnce()) {} - | ------------ ^^^^^^^^^^^^^ this parameter takes ownership of the value - | | - | in this function help: consider mutably borrowing `closure` | LL | takes_fnonce(&mut closure); diff --git a/src/test/ui/unboxed-closures/unboxed-closures-infer-fnonce-call-twice.stderr b/src/test/ui/unboxed-closures/unboxed-closures-infer-fnonce-call-twice.stderr index 3175d2942d5..ab6f0651846 100644 --- a/src/test/ui/unboxed-closures/unboxed-closures-infer-fnonce-call-twice.stderr +++ b/src/test/ui/unboxed-closures/unboxed-closures-infer-fnonce-call-twice.stderr @@ -16,10 +16,6 @@ note: this value implements `FnOnce`, which causes it to be moved when called | LL | tick(); | ^^^^ -help: consider cloning the value if the performance cost is acceptable - | -LL | tick.clone()(); - | ++++++++ error: aborting due to previous error diff --git a/src/test/ui/unboxed-closures/unboxed-closures-infer-fnonce-move-call-twice.stderr b/src/test/ui/unboxed-closures/unboxed-closures-infer-fnonce-move-call-twice.stderr index ffeafb10fda..8d70a2b1760 100644 --- a/src/test/ui/unboxed-closures/unboxed-closures-infer-fnonce-move-call-twice.stderr +++ b/src/test/ui/unboxed-closures/unboxed-closures-infer-fnonce-move-call-twice.stderr @@ -16,10 +16,6 @@ note: this value implements `FnOnce`, which causes it to be moved when called | LL | tick(); | ^^^^ -help: consider cloning the value if the performance cost is acceptable - | -LL | tick.clone()(); - | ++++++++ error: aborting due to previous error |
