Skip to content

Commit 5099ab6

Browse files
committed
Give LexError more descriptive Display impl
1 parent f2b22a1 commit 5099ab6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libproc_macro/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ pub struct LexError {
6969
#[stable(feature = "proc_macro_lexerror_impls", since = "1.44.0")]
7070
impl fmt::Display for LexError {
7171
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
72-
f.write_str("lex error")
72+
f.write_str("cannot parse string into token stream")
7373
}
7474
}
7575

0 commit comments

Comments
 (0)