We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3dbbe2f commit fecf3b6Copy full SHA for fecf3b6
src/libsyntax/parse/mod.rs
@@ -224,10 +224,18 @@ pub fn filemap_to_parser<'a>(sess: &'a ParseSess,
224
// compiler expands into it
225
pub fn new_parser_from_tts<'a>(sess: &'a ParseSess,
226
cfg: ast::CrateConfig,
227
- tts: Vec<tokenstream::TokenTree>) -> Parser<'a> {
+ tts: Vec<tokenstream::TokenTree>)
228
+ -> Parser<'a> {
229
tts_to_parser(sess, tts, cfg)
230
}
231
232
+pub fn new_parser_from_ts<'a>(sess: &'a ParseSess,
233
+ cfg: ast::CrateConfig,
234
+ ts: tokenstream::TokenStream)
235
236
+ tts_to_parser(sess, ts.tts, cfg)
237
+}
238
+
239
240
// base abstractions
241
0 commit comments