summary refs log tree commit diff
path: root/compiler/rustc_const_eval/src
diff options
context:
space:
mode:
authorHirochika Matsumoto <git@hkmatsumoto.com>2021-10-03 14:28:39 +0900
committerHirochika Matsumoto <git@hkmatsumoto.com>2021-10-03 14:28:39 +0900
commitfb0b1a54663ca96dd406847b9268cda547f0d8d6 (patch)
treea42eaff96faef8ccc749ad7cf4e5b69b0502464d /compiler/rustc_const_eval/src
parentb27661eb33c74cb514dba059b47d86b6582ac1c2 (diff)
downloadrust-fb0b1a54663ca96dd406847b9268cda547f0d8d6.tar.gz
rust-fb0b1a54663ca96dd406847b9268cda547f0d8d6.zip
Follow the diagnostic output style guide
Diffstat (limited to 'compiler/rustc_const_eval/src')
-rw-r--r--compiler/rustc_const_eval/src/transform/check_consts/ops.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/transform/check_consts/ops.rs b/compiler/rustc_const_eval/src/transform/check_consts/ops.rs
index 1d0ee949a22..c24e9c2df7d 100644
--- a/compiler/rustc_const_eval/src/transform/check_consts/ops.rs
+++ b/compiler/rustc_const_eval/src/transform/check_consts/ops.rs
@@ -102,7 +102,7 @@ impl NonConstOp for FnCallUnstable {
         );
 
         if ccx.is_const_stable_const_fn() {
-            err.help("Const-stable functions can only call other const-stable functions");
+            err.help("const-stable functions can only call other const-stable functions");
         } else if ccx.tcx.sess.is_nightly_build() {
             if let Some(feature) = feature {
                 err.help(&format!(