about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-12-11 09:28:54 +0000
committerbors <bors@rust-lang.org>2023-12-11 09:28:54 +0000
commit2a1645d009218e85bf9dec578b474eb2acd897ed (patch)
treef5882a780ecebe1e541c07e818e58e335f24787b /compiler/rustc_codegen_llvm/src
parent3813a7b27e44d695c604ac4c29ef1a776f082f6d (diff)
parentcdfa38a9d1262474216a5543c807a5dfc1b213fe (diff)
downloadrust-2a1645d009218e85bf9dec578b474eb2acd897ed.tar.gz
rust-2a1645d009218e85bf9dec578b474eb2acd897ed.zip
Auto merge of #11878 - samueltardieu:uninhabited_reference, r=flip1995
uninhabited_reference: new lint

Close #11851

The lint is implemented on function parameters and return types, as this is the place where the risk of exchanging references to uninhabited types is the highest. Other constructs, such as in a local variable,
would require the use of `unsafe` and will clearly be done on purpose.

changelog: [`uninhabited_reference`]: new lint
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions