mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 21:35:20 +00:00
internal: Thread edition through to parsing/tt-to-syntax-tree routines for macros
This commit is contained in:
parent
83370fe5d7
commit
a483d3bc37
39 changed files with 187 additions and 145 deletions
|
@ -50,7 +50,7 @@ mod tests {
|
|||
fn test_matching_brace() {
|
||||
fn do_check(before: &str, after: &str) {
|
||||
let (pos, before) = extract_offset(before);
|
||||
let parse = SourceFile::parse(&before);
|
||||
let parse = SourceFile::parse(&before, span::Edition::CURRENT);
|
||||
let new_pos = match matching_brace(&parse.tree(), pos) {
|
||||
None => pos,
|
||||
Some(pos) => pos,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue