about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2022-07-14 18:41:12 -0700
committerEsteban Küber <esteban@kuber.com.ar>2022-07-15 11:04:45 -0700
commit635c38187bbd7adc10abf417c68b1ff06753ff5f (patch)
treeb771d8cac34741ac5c2afeeb5744151aee80af15 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parent20b5aaf11103d65752adafe549be1acecfa9acdd (diff)
downloadrust-635c38187bbd7adc10abf417c68b1ff06753ff5f.tar.gz
rust-635c38187bbd7adc10abf417c68b1ff06753ff5f.zip
Avoid incorrect suggestion
We check that there's a single level of block nesting to ensure always
correct suggestions. If we don't, then we only provide a free-form
message to avoid misleading users in cases like
`src/test/ui/nll/borrowed-temporary-error.rs`.

We could expand the analysis to suggest hoising all of the relevant
parts of the users' code to make the code compile, but that could be
too much.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions