Remove lifetime parameter from syntax::tokenstream::Cursor
.
This commit is contained in:
parent
c0b7112ba2
commit
0143774cb5
4 changed files with 40 additions and 34 deletions
|
@ -192,7 +192,7 @@ pub fn new_parser_from_tts<'a>(sess: &'a ParseSess, tts: Vec<tokenstream::TokenT
|
|||
}
|
||||
|
||||
pub fn new_parser_from_ts<'a>(sess: &'a ParseSess, ts: tokenstream::TokenStream) -> Parser<'a> {
|
||||
tts_to_parser(sess, ts.trees().cloned().collect())
|
||||
tts_to_parser(sess, ts.into_trees().collect())
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue