]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_parse/lib.rs
Rollup merge of #69973 - tspiteri:const-int-conversion-since, r=dtolnay
[rust.git] / src / librustc_parse / lib.rs
index 10d524776a11b58c5b5ca2751244f9a1a8805f96..884499ff2dd48a5e9407f9b396e59c29dd5f8671 100644 (file)
@@ -2,6 +2,7 @@
 
 #![feature(bool_to_option)]
 #![feature(crate_visibility_modifier)]
+#![feature(bindings_after_at)]
 
 use rustc_ast::ast;
 use rustc_ast::token::{self, Nonterminal};
@@ -270,11 +271,11 @@ pub fn stream_to_parser<'a>(
 /// The main usage of this function is outside of rustc, for those who uses
 /// librustc_ast as a library. Please do not remove this function while refactoring
 /// just because it is not used in rustc codebase!
-pub fn stream_to_parser_with_base_dir<'a>(
-    sess: &'a ParseSess,
+pub fn stream_to_parser_with_base_dir(
+    sess: &ParseSess,
     stream: TokenStream,
     base_dir: Directory,
-) -> Parser<'a> {
+) -> Parser<'_> {
     Parser::new(sess, stream, Some(base_dir), true, false, None)
 }