Check ABI target compatibility for function pointers

This check was previously only performed on functions not function pointers.

Co-authored-by: Folkert <folkert@folkertdev.nl>
This commit is contained in:
Tamme Dittrich
2024-08-07 15:48:16 +02:00
parent 66b0b29e65
commit 47293c1234
20 changed files with 991 additions and 82 deletions

View File

@@ -73,7 +73,7 @@ pub mod wfcheck;
use std::num::NonZero;
pub use check::check_abi;
pub use check::{check_abi, check_abi_fn_ptr};
use rustc_data_structures::fx::{FxHashSet, FxIndexMap};
use rustc_errors::{Diag, ErrorGuaranteed, pluralize, struct_span_code_err};
use rustc_hir::def_id::{DefId, LocalDefId};