about summary refs log tree commit diff
diff options
context:
space:
mode:
authorKinsey Favre <kinseytamsin@tutanota.com>2020-02-08 10:51:54 -0600
committerKinsey Favre <kinseytamsin@tutanota.com>2020-03-11 11:57:58 -0500
commit5099ab6e6b80c02f2b16e99c169d318cfd9252c1 (patch)
tree8aa2da512cb9144df78baba90634dbe2b476b527
parentf2b22a136c9129a2f74cd897d8f1ea8ff5386e99 (diff)
downloadrust-5099ab6e6b80c02f2b16e99c169d318cfd9252c1.tar.gz
rust-5099ab6e6b80c02f2b16e99c169d318cfd9252c1.zip
Give LexError more descriptive Display impl
-rw-r--r--src/libproc_macro/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libproc_macro/lib.rs b/src/libproc_macro/lib.rs
index 13bce45243f..59ce14c97c0 100644
--- a/src/libproc_macro/lib.rs
+++ b/src/libproc_macro/lib.rs
@@ -69,7 +69,7 @@ pub struct LexError {
 #[stable(feature = "proc_macro_lexerror_impls", since = "1.44.0")]
 impl fmt::Display for LexError {
     fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
-        f.write_str("lex error")
+        f.write_str("cannot parse string into token stream")
     }
 }