diff options
| author | bors <bors@rust-lang.org> | 2021-06-20 14:01:26 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-06-20 14:01:26 +0000 |
| commit | 2e940ac5e97ba4424be5a8e02ff4c7846ca1e25a (patch) | |
| tree | 79eda8d50d1b6230702c38871427fc15e1d1ef4f | |
| parent | 75d1500f028d0e5dcb3978b873bf2d0a0be9c75f (diff) | |
| parent | 7fccdb7b333ad40f5889a051203d823df0e29d8e (diff) | |
| download | rust-2e940ac5e97ba4424be5a8e02ff4c7846ca1e25a.tar.gz rust-2e940ac5e97ba4424be5a8e02ff4c7846ca1e25a.zip | |
Auto merge of #86250 - RalfJung:intrinsic_operation_unsafety, r=oli-obk
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 |
