diff options
| author | Ralf Jung <post@ralfj.de> | 2021-06-12 19:01:32 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2021-06-12 19:01:32 +0200 |
| commit | 7fccdb7b333ad40f5889a051203d823df0e29d8e (patch) | |
| tree | 1a92be7a050607426a238821afd710002c7de67e | |
| parent | c5fbcd35a8217a17f6b63a22217ace06cf8f5f02 (diff) | |
fix intrinsic_operation_unsafety comment
| -rw-r--r-- | compiler/rustc_typeck/src/check/intrinsic.rs | 2 |
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 |
