diff options
| author | bors <bors@rust-lang.org> | 2022-02-20 21:15:11 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-02-20 21:15:11 +0000 |
| commit | 45e2c2881d11324d610815bfff097e25c412199e (patch) | |
| tree | cd1eb9e766bdb68b186ef4a5d1ff6b71c2d28aa5 /compiler/rustc_codegen_llvm/src | |
| parent | 523a1b1d388bfe82a5d0540b876d9428b6dccc9c (diff) | |
| parent | 8f8689fb31a4ca67b348198a082dcc81acbb89ba (diff) | |
| download | rust-45e2c2881d11324d610815bfff097e25c412199e.tar.gz rust-45e2c2881d11324d610815bfff097e25c412199e.zip | |
Auto merge of #93678 - steffahn:better_unsafe_diagnostics, r=nagisa
Improve `unused_unsafe` lint I’m going to add some motivation and explanation below, particularly pointing the changes in behavior from this PR. _Edit:_ Looking for existing issues, looks like this PR fixes #88260. _Edit2:_ Now also contains code that closes #90776.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/abi.rs | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/compiler/rustc_codegen_llvm/src/abi.rs b/compiler/rustc_codegen_llvm/src/abi.rs index 8a11e3e71bc..c3994cef14f 100644 --- a/compiler/rustc_codegen_llvm/src/abi.rs +++ b/compiler/rustc_codegen_llvm/src/abi.rs @@ -599,13 +599,11 @@ impl<'ll, 'tcx> FnAbiLlvmExt<'ll, 'tcx> for FnAbi<'tcx, Ty<'tcx>> { if self.conv == Conv::CCmseNonSecureCall { // This will probably get ignored on all targets but those supporting the TrustZone-M // extension (thumbv8m targets). - unsafe { - llvm::AddCallSiteAttrString( - callsite, - llvm::AttributePlace::Function, - cstr::cstr!("cmse_nonsecure_call"), - ); - } + llvm::AddCallSiteAttrString( + callsite, + llvm::AttributePlace::Function, + cstr::cstr!("cmse_nonsecure_call"), + ); } } } |
