mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +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
|
@ -289,7 +289,7 @@ mod tests {
|
|||
fn check(ra_fixture: &str) {
|
||||
let (ranges, text) = extract_tags(ra_fixture, "fold");
|
||||
|
||||
let parse = SourceFile::parse(&text);
|
||||
let parse = SourceFile::parse(&text, span::Edition::CURRENT);
|
||||
let mut folds = folding_ranges(&parse.tree());
|
||||
folds.sort_by_key(|fold| (fold.range.start(), fold.range.end()));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue