about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2025-02-11 18:32:10 +0100
committerSamuel Tardieu <sam@rfc1149.net>2025-02-11 22:14:52 +0100
commitda6a05977dd0a9a8fd973b3d08937e9b81d7e2ab (patch)
tree084b4e8cdb04f2a5ec17026c0baebe86ff09fca9 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parentffa1caf42028eb6ffaa69642e8acb702da0200cb (diff)
downloadrust-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