about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2021-06-12 19:01:32 +0200
committerRalf Jung <post@ralfj.de>2021-06-12 19:01:32 +0200
commit7fccdb7b333ad40f5889a051203d823df0e29d8e (patch)
tree1a92be7a050607426a238821afd710002c7de67e
parentc5fbcd35a8217a17f6b63a22217ace06cf8f5f02 (diff)
fix intrinsic_operation_unsafety comment
-rw-r--r--compiler/rustc_typeck/src/check/intrinsic.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_typeck/src/check/intrinsic.rs b/compiler/rustc_typeck/src/check/intrinsic.rs
index 5741b6824b5..a259fc6a488 100644
--- a/compiler/rustc_typeck/src/check/intrinsic.rs
+++ b/compiler/rustc_typeck/src/check/intrinsic.rs
@@ -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