mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 20:09:19 +00:00
Fix edition used for include macro parsing
This commit is contained in:
parent
f4199f786e
commit
92f5e806f1
6 changed files with 17 additions and 13 deletions
|
@ -92,7 +92,7 @@ fn reparse_block(
|
|||
let text = get_text_after_edit(node.clone().into(), edit);
|
||||
|
||||
let lexed = parser::LexedStr::new(edition, text.as_str());
|
||||
let parser_input = lexed.to_input();
|
||||
let parser_input = lexed.to_input(edition);
|
||||
if !is_balanced(&lexed) {
|
||||
return None;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue