Skip to content

Commit 9953eaf

Browse files
committed
improper_ctypes: exclude some more abis
1 parent 693687a commit 9953eaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_lint/types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ fn check_foreign_fn(cx: &LateContext, decl: &hir::FnDecl) {
658658
}
659659

660660
fn should_check_abi(abi: abi::Abi) -> bool {
661-
![abi::RustIntrinsic, abi::PlatformIntrinsic].contains(&abi)
661+
![abi::RustIntrinsic, abi::PlatformIntrinsic, abi::Rust, abi::RustCall].contains(&abi)
662662
}
663663

664664
impl LateLintPass for ImproperCTypes {

0 commit comments

Comments
 (0)