diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2025-02-11 18:32:10 +0100 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2025-02-11 22:14:52 +0100 |
| commit | da6a05977dd0a9a8fd973b3d08937e9b81d7e2ab (patch) | |
| tree | 084b4e8cdb04f2a5ec17026c0baebe86ff09fca9 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp | |
| parent | ffa1caf42028eb6ffaa69642e8acb702da0200cb (diff) | |
| download | rust-da6a05977dd0a9a8fd973b3d08937e9b81d7e2ab.tar.gz rust-da6a05977dd0a9a8fd973b3d08937e9b81d7e2ab.zip | |
`{expect,unwrap}_used`: add options to lint at compilation time
By default, do not lint `.unwrap()` and `.expect(…)` in always const contexts, as a failure would be detected at compile time anyway. New options `allow_expect_in_consts` and `allow_unwrap_in_consts`, defaulting to `true`, can be turned unset to still lint in always const contexts.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
