mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 05:45:12 +00:00
rename def_id -> def
This commit is contained in:
parent
e884ab05c2
commit
bc77f91cf6
3 changed files with 17 additions and 31 deletions
|
@ -209,10 +209,7 @@ impl Builder {
|
|||
ctx: &CompletionContext,
|
||||
resolution: &hir::Resolution,
|
||||
) -> Builder {
|
||||
let def = resolution
|
||||
.def_id
|
||||
.take_types()
|
||||
.or(resolution.def_id.take_values());
|
||||
let def = resolution.def.take_types().or(resolution.def.take_values());
|
||||
let def = match def {
|
||||
None => return self,
|
||||
Some(it) => it,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue