about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorAaron Hill <aa1ronham@gmail.com>2020-11-07 20:11:53 -0500
committerAaron Hill <aa1ronham@gmail.com>2020-11-07 20:11:53 -0500
commite4e9bb4a244464049651c66b408639f60fcdcc58 (patch)
tree91a27274a731c0f12a033f79518390129c6786e9 /compiler/rustc_codegen_llvm/src
parentb2d115f6db5172c961dfeb50de15f35784dbc7c9 (diff)
downloadrust-e4e9bb4a244464049651c66b408639f60fcdcc58.tar.gz
rust-e4e9bb4a244464049651c66b408639f60fcdcc58.zip
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_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions