about summary refs log tree commit diff
path: root/compiler/rustc_error_codes
diff options
context:
space:
mode:
authorStuart Cook <Zalathar@users.noreply.github.com>2024-12-24 14:05:24 +1100
committerGitHub <noreply@github.com>2024-12-24 14:05:24 +1100
commit772b95e7554194dfbb04aaee65fcd983d0b84221 (patch)
tree9fc560505321d7a860cddb7d3b7f64ea5d0408e7 /compiler/rustc_error_codes
parent33311856e13ca440a57f822969d5f6fff254e194 (diff)
parent92f93f6d1127cd8f2438474ebe4620231f5d5473 (diff)
downloadrust-772b95e7554194dfbb04aaee65fcd983d0b84221.tar.gz
rust-772b95e7554194dfbb04aaee65fcd983d0b84221.zip
Rollup merge of #134701 - compiler-errors:non-const-def-descr, r=Urgau,fmease
Correctly note item kind in `NonConstFunctionCall` error message

Don't just call everything a "`fn`". This is more consistent with the error message we give for conditionally-const items, which do note the item's def kind.

r? fmease, this is a prerequisite for making those `~const PartialEq` error messages better. Re-roll if you're busy or don't want to review this.
Diffstat (limited to 'compiler/rustc_error_codes')
-rw-r--r--compiler/rustc_error_codes/src/error_codes/E0015.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_error_codes/src/error_codes/E0015.md b/compiler/rustc_error_codes/src/error_codes/E0015.md
index ac78f66adad..244cc476243 100644
--- a/compiler/rustc_error_codes/src/error_codes/E0015.md
+++ b/compiler/rustc_error_codes/src/error_codes/E0015.md
@@ -7,7 +7,7 @@ fn create_some() -> Option<u8> {
     Some(1)
 }
 
-// error: cannot call non-const fn `create_some` in constants
+// error: cannot call non-const function `create_some` in constants
 const FOO: Option<u8> = create_some();
 ```