about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2020-03-24 00:49:45 +0100
committerGitHub <noreply@github.com>2020-03-24 00:49:45 +0100
commitab2817bbd0047448a2c3dadd856cac98ff07a7a8 (patch)
tree3f826a13b1c9c596dcadf3d8cee34b37a517100a /src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
parent7a47df81697ae1db7b7545b11a06e00e989ccd87 (diff)
parent1e5d81de1d8485e9ce2995bc6b1559f25c4d86e5 (diff)
downloadrust-ab2817bbd0047448a2c3dadd856cac98ff07a7a8.tar.gz
rust-ab2817bbd0047448a2c3dadd856cac98ff07a7a8.zip
Rollup merge of #70264 - tirr-c:issue-69789-mut-suggestion, r=estebank
Fix invalid suggestion on `&mut` iterators yielding `&` references

Fixes #69789.

rustc suggested an invalid code when `&` reference from `&mut` iterator is mutated. The compiler knew we're mutating a value behind `&` reference, but as the assignment RHS is from desugaring, it could only see the iterator expression from source and inserted `mut` there.

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