mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 11:59:49 +00:00
Use Edition::CURRENT
This commit is contained in:
parent
9c75e9fa7d
commit
83370fe5d7
16 changed files with 17 additions and 19 deletions
|
@ -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();
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue