about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorPreston From <prestonfrom@gmail.com>2022-05-24 01:06:33 -0600
committerPreston From <prestonfrom@gmail.com>2022-05-27 00:08:49 -0600
commite33d87d4a0a188aa03d7d07700dbf296cf76581a (patch)
tree70115e83afe7fced82d16870adcbbd1a79180be7 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parent3cc50a4a0816efd4e1964025e7abdeba3a661275 (diff)
downloadrust-e33d87d4a0a188aa03d7d07700dbf296cf76581a.tar.gz
rust-e33d87d4a0a188aa03d7d07700dbf296cf76581a.zip
When setting suggestion, add suggestion for MoveAndClone for non-ref
When trying to set the current suggestion, if the type of the expression
is not a reference and it is not trivially pure clone copy, we should still
trigger and emit a lint message. Since this fix may require cloning an
expensive-to-clone type, do not attempt to offer a suggested fix.

This change means that matches generated from TryDesugar and AwaitDesugar
would normally trigger a lint, but they are out of scope for this lint,
so we will explicitly ignore matches with sources of TryDesugar or
AwaitDesugar.

changelog: Update for [`significant_drop_in_scrutinee`] to correctly
emit lint messages for cases where the type is not a reference and
not trivially pure clone copy.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions