Browse Source

Update for new Rust nightly

master
Geoffry Song 1 year ago
parent
commit
d59296b766
2 changed files with 4 additions and 3 deletions
  1. +2
    -1
      src/lib.rs
  2. +2
    -2
      src/parser.rs

+ 2
- 1
src/lib.rs View File

@@ -1,5 +1,6 @@
#![recursion_limit = "128"]
#![feature(proc_macro)]
#![feature(proc_macro_diagnostic)]
#![feature(proc_macro_span)]
#![warn(unused_extern_crates)]

extern crate lalr;


+ 2
- 2
src/parser.rs View File

@@ -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()
})
}

Loading…
Cancel
Save