Auto merge of #86250 - RalfJung:intrinsic_operation_unsafety, r=oli-obk

fix intrinsic_operation_unsafety comment
This commit is contained in:
bors 2021-06-20 14:01:26 +00:00
commit 2e940ac5e9

View File

@ -53,7 +53,7 @@ fn equate_intrinsic_type<'tcx>(
require_same_types(tcx, &cause, tcx.mk_fn_ptr(tcx.fn_sig(it.def_id)), fty);
}
/// Returns `true` if the given intrinsic is unsafe to call or not.
/// Returns the unsafety of the given intrinsic.
pub fn intrinsic_operation_unsafety(intrinsic: Symbol) -> hir::Unsafety {
match intrinsic {
sym::abort