mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 13:51:31 +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
|
@ -137,7 +137,7 @@ pub(crate) fn external_docs(
|
|||
sysroot: Option<&str>,
|
||||
) -> Option<DocumentationLinks> {
|
||||
let sema = &Semantics::new(db);
|
||||
let file = sema.parse(file_id).syntax().clone();
|
||||
let file = sema.parse_guess_edition(file_id).syntax().clone();
|
||||
let token = pick_best_token(file.token_at_offset(offset), |kind| match kind {
|
||||
IDENT | INT_NUMBER | T![self] => 3,
|
||||
T!['('] | T![')'] => 2,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue