Commit d59296b7 authored by Geoffry Song's avatar Geoffry Song

Update for new Rust nightly

parent e65ff567
#![recursion_limit = "128"]
#![feature(proc_macro)]
#![feature(proc_macro_diagnostic)]
#![feature(proc_macro_span)]
#![warn(unused_extern_crates)]
extern crate lalr;
......
......@@ -564,7 +564,7 @@ pub fn parser(input: TokenStream) -> TokenStream {
.unstable()
.error("at least one nonterminal is required")
.emit();
return TokenStream::empty();
return TokenStream::new();
};
let mut rules: BTreeMap<Ident, Vec<_>> = rules
.into_iter()
......@@ -716,6 +716,6 @@ token: {}",
.emit();
}
};
TokenStream::empty()
TokenStream::new()
})
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment