We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 75d1500 + 7fccdb7 commit 2e940acCopy full SHA for 2e940ac
compiler/rustc_typeck/src/check/intrinsic.rs
@@ -53,7 +53,7 @@ fn equate_intrinsic_type<'tcx>(
53
require_same_types(tcx, &cause, tcx.mk_fn_ptr(tcx.fn_sig(it.def_id)), fty);
54
}
55
56
-/// Returns `true` if the given intrinsic is unsafe to call or not.
+/// Returns the unsafety of the given intrinsic.
57
pub fn intrinsic_operation_unsafety(intrinsic: Symbol) -> hir::Unsafety {
58
match intrinsic {
59
sym::abort
0 commit comments