about summary refs log tree commit diff
path: root/tests/ui/hashmap/hashmap-memory.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-07-03 20:30:28 +0000
committerbors <bors@rust-lang.org>2023-07-03 20:30:28 +0000
commit0ab38e95bb1cbf0bd038d359bdecbfa501f003a7 (patch)
tree8081459e64713b94ad374c67898847a5f02dc50a /tests/ui/hashmap/hashmap-memory.rs
parent8931edf746da6aa2d86412516d805f5680929a5e (diff)
parent2227422920e544c1e73050f6ef1f687349e13a7d (diff)
Auto merge of #108611 - davidtwco:issue-94223-external-abi-fn-ptr-in-internal-abi-fn, r=jackh726
lint/ctypes: ext. abi fn-ptr in internal abi fn

Fixes #94223.

- In the improper ctypes lint, instead of skipping functions with internal ABIs, check that the signature doesn't contain any fn-ptr types with external ABIs that aren't FFI-safe.
- When computing the ABI for fn-ptr types, remove an `unwrap` that assumed FFI-safe types in foreign fn-ptr types.
  - I'm not certain that this is the correct approach.
Diffstat (limited to 'tests/ui/hashmap/hashmap-memory.rs')
-rw-r--r--tests/ui/hashmap/hashmap-memory.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/ui/hashmap/hashmap-memory.rs b/tests/ui/hashmap/hashmap-memory.rs
index 87f8b6ad573..bd364b349e2 100644
--- a/tests/ui/hashmap/hashmap-memory.rs
+++ b/tests/ui/hashmap/hashmap-memory.rs
@@ -1,5 +1,6 @@
 // run-pass
 
+#![allow(improper_ctypes_definitions)]
 #![allow(non_camel_case_types)]
 #![allow(dead_code)]
 #![allow(unused_mut)]