Use Edition::CURRENT

This commit is contained in:
Lukas Wirth 2024-04-14 15:29:09 +02:00
parent 9c75e9fa7d
commit 83370fe5d7
16 changed files with 17 additions and 19 deletions

View file

@ -88,7 +88,7 @@ fn parse_inline_err() {
fn parse(entry: TopEntryPoint, text: &str) -> (String, bool) {
let lexed = LexedStr::new(text);
let input = lexed.to_input();
let output = entry.parse(&input, crate::Edition::Edition2021);
let output = entry.parse(&input, crate::Edition::CURRENT);
let mut buf = String::new();
let mut errors = Vec::new();

View file

@ -86,7 +86,7 @@ fn check(entry: PrefixEntryPoint, input: &str, prefix: &str) {
let input = lexed.to_input();
let mut n_tokens = 0;
for step in entry.parse(&input, crate::Edition::Edition2021).iter() {
for step in entry.parse(&input, crate::Edition::CURRENT).iter() {
match step {
Step::Token { n_input_tokens, .. } => n_tokens += n_input_tokens as usize,
Step::FloatSplit { .. } => n_tokens += 1,