about summary refs log tree commit diff
path: root/compiler/rustc_hir_analysis/src/check/mod.rs
diff options
context:
space:
mode:
authorlcnr <rust@lcnr.de>2023-12-12 12:28:54 +0000
committerlcnr <rust@lcnr.de>2023-12-12 12:28:54 +0000
commit0bea818b29a54e29bb073ea08c8736010f5ea9eb (patch)
tree1b657905fa69d98d8b1341efa5329dd4c9911c3e /compiler/rustc_hir_analysis/src/check/mod.rs
parent6ffe36b37dadba95bbc9427a4406db5af9b55231 (diff)
downloadrust-0bea818b29a54e29bb073ea08c8736010f5ea9eb.tar.gz
rust-0bea818b29a54e29bb073ea08c8736010f5ea9eb.zip
review + rename fn
Diffstat (limited to 'compiler/rustc_hir_analysis/src/check/mod.rs')
-rw-r--r--compiler/rustc_hir_analysis/src/check/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_hir_analysis/src/check/mod.rs b/compiler/rustc_hir_analysis/src/check/mod.rs
index a81a2037214..d08a8305105 100644
--- a/compiler/rustc_hir_analysis/src/check/mod.rs
+++ b/compiler/rustc_hir_analysis/src/check/mod.rs
@@ -141,7 +141,7 @@ fn get_owner_return_paths(
 /// Forbid defining intrinsics in Rust code,
 /// as they must always be defined by the compiler.
 // FIXME: Move this to a more appropriate place.
-pub fn fn_maybe_err(tcx: TyCtxt<'_>, sp: Span, abi: Abi) {
+pub fn forbid_intrinsic_abi(tcx: TyCtxt<'_>, sp: Span, abi: Abi) {
     if let Abi::RustIntrinsic | Abi::PlatformIntrinsic = abi {
         tcx.sess.span_err(sp, "intrinsic must be in `extern \"rust-intrinsic\" { ... }` block");
     }