diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2022-07-14 18:41:12 -0700 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2022-07-15 11:04:45 -0700 |
| commit | 635c38187bbd7adc10abf417c68b1ff06753ff5f (patch) | |
| tree | b771d8cac34741ac5c2afeeb5744151aee80af15 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp | |
| parent | 20b5aaf11103d65752adafe549be1acecfa9acdd (diff) | |
| download | rust-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
