]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_mir/transform/qualify_min_const_fn.rs
Reword const fn conditional and loop error text
[rust.git] / src / librustc_mir / transform / qualify_min_const_fn.rs
index 4811380e238603bec257fef91a51a5595cf37ec4..ff4459dd3577f74504b441af8fff789d2ab7b29c 100644 (file)
@@ -299,7 +299,7 @@ fn check_terminator(
 
         TerminatorKind::FalseEdges { .. } | TerminatorKind::SwitchInt { .. } => Err((
             span,
-            "`if`, `match`, `&&` and `||` are not stable in const fn".into(),
+            "loops and conditional expressions are not stable in const fn".into(),
         )),
         | TerminatorKind::Abort | TerminatorKind::Unreachable => {
             Err((span, "const fn with unreachable code is not stable".into()))