Add syntax::ext::tt::quoted::{TokenTree, ..} and remove tokenstream::TokenTree::Sequence.
This commit is contained in:
@@ -173,8 +173,7 @@ impl FromStr for TokenStream {
|
||||
__internal::with_parse_sess(|sess| {
|
||||
let src = src.to_string();
|
||||
let name = "<proc-macro source code>".to_string();
|
||||
let tts = try!(parse::parse_tts_from_source_str(name, src, sess)
|
||||
.map_err(parse_to_lex_err));
|
||||
let tts = parse::parse_tts_from_source_str(name, src, sess);
|
||||
|
||||
Ok(__internal::token_stream_wrap(tts.into_iter().collect()))
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user