mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 05:15:04 +00:00
HasSource::source -> HasSource::source_old
To start migrating HasSource::source to return an Option.
This commit is contained in:
parent
aa3ce16f26
commit
27cadcd531
15 changed files with 55 additions and 55 deletions
|
@ -34,7 +34,7 @@ impl<'a> FunctionRender<'a> {
|
|||
fn_: hir::Function,
|
||||
) -> FunctionRender<'a> {
|
||||
let name = local_name.unwrap_or_else(|| fn_.name(ctx.db()).to_string());
|
||||
let ast_node = fn_.source(ctx.db()).value;
|
||||
let ast_node = fn_.source_old(ctx.db()).value;
|
||||
|
||||
FunctionRender { ctx, name, func: fn_, ast_node }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue