I tried passing some text which contains invalid Rust tokens to TokenStream::from_str hoping that I could inspect the Err variant to get information on where the lex error is. Instead from_str prints directly to stderr and panics.
This method should probably give me the option to handle the error myself since I can always .unwrap() if I want to.