about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-06-01 06:50:05 +0200
committerGitHub <noreply@github.com>2019-06-01 06:50:05 +0200
commitd0a0ba42d7e915a7df92f9310223ea56cc10ae6f (patch)
tree07461efd67a715ccfa0a7f00b97fc83791cad82d
parent7d3a0dd2fb3e7d5ab08f4e95df91decbf1b9b74d (diff)
parentc3febc0884d3ca65416562fa5bf440d09772af10 (diff)
downloadrust-d0a0ba42d7e915a7df92f9310223ea56cc10ae6f.tar.gz
rust-d0a0ba42d7e915a7df92f9310223ea56cc10ae6f.zip
Rollup merge of #61375 - varkor:panic-contains-string-lowercase, r=Centril
Make "panic did not include expected string" message consistent

Note messages are typically lowercase.
-rw-r--r--src/libtest/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libtest/lib.rs b/src/libtest/lib.rs
index 8bd0d74cd17..810a98e4a01 100644
--- a/src/libtest/lib.rs
+++ b/src/libtest/lib.rs
@@ -1536,7 +1536,7 @@ fn calc_result(desc: &TestDesc, task_result: Result<(), Box<dyn Any + Send>>) ->
                 if desc.allow_fail {
                     TrAllowedFail
                 } else {
-                    TrFailedMsg(format!("Panic did not include expected string '{}'", msg))
+                    TrFailedMsg(format!("panic did not include expected string '{}'", msg))
                 }
             }
         }
@@ -1890,7 +1890,7 @@ mod tests {
             panic!("an error message");
         }
         let expected = "foobar";
-        let failed_msg = "Panic did not include expected string";
+        let failed_msg = "panic did not include expected string";
         let desc = TestDescAndFn {
             desc: TestDesc {
                 name: StaticTestName("whatever"),