From 69520ce0a120b19b05e6a49c91e8d5ad461a93a0 Mon Sep 17 00:00:00 2001 From: Christopher Armstrong Date: Sat, 14 Jan 2017 18:59:33 -0600 Subject: [PATCH 1/2] Minor improvement to strange grammar in E0525 --- src/librustc/diagnostics.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/librustc/diagnostics.rs b/src/librustc/diagnostics.rs index 1655c716b6bfa..2efd43c421636 100644 --- a/src/librustc/diagnostics.rs +++ b/src/librustc/diagnostics.rs @@ -1618,8 +1618,7 @@ fn cookie() -> ! { // error: definition of an unknown language item: `cookie` "##, E0525: r##" -A closure was attempted to get used whereas it doesn't implement the expected -trait. +A closure was used where it didn't implement the expected trait. Erroneous code example: From ac321a792a25935b1052b74e5b00ae3ef9ea29f5 Mon Sep 17 00:00:00 2001 From: Christopher Armstrong Date: Sat, 14 Jan 2017 22:00:04 -0600 Subject: [PATCH 2/2] "where it didn't" -> "but didn't" --- src/librustc/diagnostics.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc/diagnostics.rs b/src/librustc/diagnostics.rs index 2efd43c421636..636d543a071d3 100644 --- a/src/librustc/diagnostics.rs +++ b/src/librustc/diagnostics.rs @@ -1618,7 +1618,7 @@ fn cookie() -> ! { // error: definition of an unknown language item: `cookie` "##, E0525: r##" -A closure was used where it didn't implement the expected trait. +A closure was used but didn't implement the expected trait. Erroneous code example: