mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 13:51:31 +00:00
Add prefix file_
to Semantics
's to_module_defs()
/to_module_def()
methods
This commit is contained in:
parent
0ac05c0527
commit
6112ddfabb
12 changed files with 16 additions and 16 deletions
|
@ -200,7 +200,7 @@ fn get_default_constructor(
|
|||
}
|
||||
}
|
||||
|
||||
let krate = ctx.sema.to_module_def(d.file.original_file(ctx.sema.db))?.krate();
|
||||
let krate = ctx.sema.file_to_module_def(d.file.original_file(ctx.sema.db))?.krate();
|
||||
let module = krate.root_module();
|
||||
|
||||
// Look for a ::new() associated function
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue