Skip to content

Commit 9b9d098

Browse files
authored
Rollup merge of rust-lang#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 rust-lang#139114.)
2 parents 7fbd7bd + 95613e3 commit 9b9d098

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/ui/sanitizer/cfi/coroutine.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ use std::async_iter::AsyncIterator;
2626

2727
#[test]
2828
fn general_coroutine() {
29-
let mut coro = #[coroutine] |x: i32| {
29+
let coro = #[coroutine] |x: i32| {
3030
yield x;
3131
"done"
3232
};

0 commit comments

Comments
 (0)