about summary refs log tree commit diff
path: root/compiler/rustc_resolve/src
diff options
context:
space:
mode:
authorMara Bos <m-ou.se@m-ou.se>2020-11-08 13:36:33 +0100
committerGitHub <noreply@github.com>2020-11-08 13:36:33 +0100
commit91759b2de528f95289596e94c69b88a1927a94e0 (patch)
tree543bc6807689dcf1da90dc4d25e5f3ddb1e7a32a /compiler/rustc_resolve/src
parentc4e262ee6f35ac8d501eedc4a52d3b7c779b21fe (diff)
parentbd3f3fa32a7ffe30b47625edc4c6bf814aed4964 (diff)
downloadrust-91759b2de528f95289596e94c69b88a1927a94e0.tar.gz
rust-91759b2de528f95289596e94c69b88a1927a94e0.zip
Rollup merge of #78865 - Aaron1011:fix/const-item-mut-reborrow, r=varkor
Don't fire `CONST_ITEM_MUTATION` lint when borrowing a deref

Fixes #78819

This extends the check for dereferences added in PR #77324
to cover mutable borrows, as well as direct writes. If we're operating
on a dereference of a `const` item, we shouldn't be firing the lint.
Diffstat (limited to 'compiler/rustc_resolve/src')
0 files changed, 0 insertions, 0 deletions