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:
authorYuki Okushi <jtitor@2k36.org>2021-06-12 01:15:57 +0900
committerGitHub <noreply@github.com>2021-06-12 01:15:57 +0900
commit883e1a5fd4f84556ae3fcea81d795d452fca6720 (patch)
tree18530afceaa46679730088e448a2bc4dd422230f /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
parent3b47d337e04a24d5e8cf2d25864d7e9fa949ca0a (diff)
parent0eda5098bd0931a22cb42930d0963306c92f15f2 (diff)
downloadrust-883e1a5fd4f84556ae3fcea81d795d452fca6720.tar.gz
rust-883e1a5fd4f84556ae3fcea81d795d452fca6720.zip
Rollup merge of #85823 - fee1-dead:borrowck-0, r=jackh726
Do not suggest ampmut if rhs is already mutable

Removes invalid suggestion in #85765, although it should highlight the user type instead of the local variable.

Looking at the comments of this line:
https://github.com/rust-lang/rust/blob/84b1005bfd22e2cb2a4c13b0b81958fe72628354/compiler/rustc_mir_build/src/build/matches/mod.rs#L2107

It was intentionally set to `None`, causing it to highlight the local variable instead. I am not sure if I will be able to fix it.

Fixes #85765
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions