attributes: Add #[rustc_safe_intrinsic] builtin
This commit is contained in:
parent
57ee5cf5a9
commit
0ab2c91a2d
9 changed files with 24 additions and 51 deletions
|
@ -2544,7 +2544,7 @@ fn compute_sig_of_foreign_fn_decl<'tcx>(
|
|||
abi: abi::Abi,
|
||||
) -> ty::PolyFnSig<'tcx> {
|
||||
let unsafety = if abi == abi::Abi::RustIntrinsic {
|
||||
intrinsic_operation_unsafety(tcx.item_name(def_id))
|
||||
intrinsic_operation_unsafety(tcx, def_id)
|
||||
} else {
|
||||
hir::Unsafety::Unsafe
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue