diff options
| author | Aaron Hill <aa1ronham@gmail.com> | 2020-11-07 20:11:53 -0500 |
|---|---|---|
| committer | Aaron Hill <aa1ronham@gmail.com> | 2020-11-07 20:11:53 -0500 |
| commit | e4e9bb4a244464049651c66b408639f60fcdcc58 (patch) | |
| tree | 91a27274a731c0f12a033f79518390129c6786e9 /compiler/rustc_codegen_llvm/src | |
| parent | b2d115f6db5172c961dfeb50de15f35784dbc7c9 (diff) | |
| download | rust-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
