diff options
| author | Matthias Krüger <476013+matthiaskrgr@users.noreply.github.com> | 2025-04-10 17:27:17 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-10 17:27:17 +0200 |
| commit | 9b9d098e1d8f39b018380ca6bec69a5024a945bd (patch) | |
| tree | 69e4c28305dd10593e8820a7a77e61c7a53d2697 | |
| parent | 7fbd7bdfa8f742002225c11431bcd216df758bb2 (diff) | |
| parent | 95613e3dbccd4d5a6ecd0a6906ac8fe609d14d03 (diff) | |
| download | rust-9b9d098e1d8f39b018380ca6bec69a5024a945bd.tar.gz rust-9b9d098e1d8f39b018380ca6bec69a5024a945bd.zip | |
Rollup merge of #139626 - m-ou-se:mut, r=lqd
Remove unnecessary `mut` in test. The value is moved in `pin!()`, so the binding doesn't need to be `mut` itself. (Rustc doesn't warn about this due to the current hacky implementation of `pin!()`. That is fixed by https://github.com/rust-lang/rust/pull/139114.)
| -rw-r--r-- | tests/ui/sanitizer/cfi/coroutine.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/sanitizer/cfi/coroutine.rs b/tests/ui/sanitizer/cfi/coroutine.rs index 3ad896afd00..39a754f1036 100644 --- a/tests/ui/sanitizer/cfi/coroutine.rs +++ b/tests/ui/sanitizer/cfi/coroutine.rs @@ -26,7 +26,7 @@ use std::async_iter::AsyncIterator; #[test] fn general_coroutine() { - let mut coro = #[coroutine] |x: i32| { + let coro = #[coroutine] |x: i32| { yield x; "done" }; |
