about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorllogiq <bogusandre@gmail.com>2025-02-12 12:38:00 +0000
committerGitHub <noreply@github.com>2025-02-12 12:38:00 +0000
commit32aef114c6c1fd0a3c8c8510e4d53125e69d5c5c (patch)
tree084b4e8cdb04f2a5ec17026c0baebe86ff09fca9 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parentffa1caf42028eb6ffaa69642e8acb702da0200cb (diff)
parentda6a05977dd0a9a8fd973b3d08937e9b81d7e2ab (diff)
downloadrust-32aef114c6c1fd0a3c8c8510e4d53125e69d5c5c.tar.gz
rust-32aef114c6c1fd0a3c8c8510e4d53125e69d5c5c.zip
`{expect,unwrap}_used`: add options to lint at compilation time (#14200)
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.

Close #14198

changelog: [`unwrap_used`, `expect_used`]: add new option to lint in
always constant contexts
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions