about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2020-02-18 22:16:31 +0100
committerGitHub <noreply@github.com>2020-02-18 22:16:31 +0100
commit6c6d45c6e7ca1e7685e2556d9f58b6f3109c13bf (patch)
tree39649c075dab42df78c94de2fafa81466fc7694d /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
parentc499570b5d287f10adfeb63580c8c92a1d5329c5 (diff)
parent0b1e08cb557768f168266c7bbcdcb93fcf372a66 (diff)
downloadrust-6c6d45c6e7ca1e7685e2556d9f58b6f3109c13bf.tar.gz
rust-6c6d45c6e7ca1e7685e2556d9f58b6f3109c13bf.zip
Rollup merge of #69236 - Centril:mut-parens-at-recovery, r=estebank
parse: recover `mut (x @ y)` as `(mut x @ mut y)`.

Follow up to https://github.com/rust-lang/rust/pull/68992#discussion_r376829749 and https://github.com/rust-lang/rust/pull/63945.

Specifically, when given `let mut (x @ y)` we recover with `let (mut x @ mut y)` as the suggestion:

```rust
error: `mut` must be attached to each individual binding
  --> $DIR/mut-patterns.rs:12:9
   |
LL |     let mut (x @ y) = 0;
   |         ^^^^^^^^^^^ help: add `mut` to each binding: `(mut x @ mut y)`
   |
   = note: `mut` may be followed by `variable` and `variable @ pattern`
```

r? @matthewjasper @estebank
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions