Follow the diagnostic output style guide

This commit is contained in:
Hirochika Matsumoto 2021-10-03 14:28:39 +09:00
parent b27661eb33
commit fb0b1a5466
8 changed files with 14 additions and 14 deletions

View file

@ -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!(