Skip to content

Commit 2e940ac

Browse files
committed
Auto merge of #86250 - RalfJung:intrinsic_operation_unsafety, r=oli-obk
fix intrinsic_operation_unsafety comment
2 parents 75d1500 + 7fccdb7 commit 2e940ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_typeck/src/check/intrinsic.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ fn equate_intrinsic_type<'tcx>(
5353
require_same_types(tcx, &cause, tcx.mk_fn_ptr(tcx.fn_sig(it.def_id)), fty);
5454
}
5555

56-
/// Returns `true` if the given intrinsic is unsafe to call or not.
56+
/// Returns the unsafety of the given intrinsic.
5757
pub fn intrinsic_operation_unsafety(intrinsic: Symbol) -> hir::Unsafety {
5858
match intrinsic {
5959
sym::abort

0 commit comments

Comments
 (0)