Panic in proc_macro::TokenStream::from_str #58736
Labels
A-macros
Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)
A-proc-macros
Area: Procedural macros
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
TokenStream::from_str is supposed to return
Result<proc_macro::TokenStream, proc_macro::LexError>
. Currently it appears to print errors to stderr and then panic, rather than returning errors.Cargo.toml
src/lib.rs
src/main.rs
Output of
cargo check
:Mentioning @eddyb, @petrochenkov, @alexcrichton.
Mentioning @canndrew who reported this in dtolnay/proc-macro2#168.
The text was updated successfully, but these errors were encountered: