mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-03 05:13:35 +00:00
Encode edition within FileId in the hir layer
This commit is contained in:
parent
92268627a8
commit
5264f86242
160 changed files with 1117 additions and 824 deletions
|
|
@ -176,7 +176,7 @@ pub fn insert_use(scope: &ImportScope, path: ast::Path, cfg: &InsertUseConfig) {
|
|||
|
||||
pub fn insert_use_as_alias(scope: &ImportScope, path: ast::Path, cfg: &InsertUseConfig) {
|
||||
let text: &str = "use foo as _";
|
||||
let parse = syntax::SourceFile::parse(text, span::Edition::CURRENT);
|
||||
let parse = syntax::SourceFile::parse(text, span::Edition::CURRENT_FIXME);
|
||||
let node = parse
|
||||
.tree()
|
||||
.syntax()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue