about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm_util.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-06-26 02:28:45 +0000
committerbors <bors@rust-lang.org>2021-06-26 02:28:45 +0000
commitbca6d9baa9775d41691e43703755612a953dc8a5 (patch)
tree0f153e69c8e5de940a49af81e3d11328eca0bdd3 /compiler/rustc_codegen_llvm/src/llvm_util.rs
parentdd1525a021a6639a7976129abe525ad00defff59 (diff)
parent499afcdfcf1ad9e819b0fae35aac7f8e8730f045 (diff)
downloadrust-bca6d9baa9775d41691e43703755612a953dc8a5.tar.gz
rust-bca6d9baa9775d41691e43703755612a953dc8a5.zip
Auto merge of #86622 - FabianWolff:issue-83475, r=jonas-schievink
Check that `#[cmse_nonsecure_entry]` is applied to a function definition

This PR fixes #83475. The compiler currently neglects to check whether `#[cmse_nonsecure_entry]` is applied to a function (and not, say, a struct) definition, leading to an ICE later on when the type checker attempts to retrieve the function signature. I have fixed this problem by adding an appropriate check to the `check_attr` pass, so that an error is reported instead of an ICE.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm_util.rs')
0 files changed, 0 insertions, 0 deletions