Mark HasSource::source_old as deprecated but allow at all call sites

This commit is contained in:
Nick Spain 2021-01-01 13:50:50 +11:00
parent 2de2b1eca3
commit ea4708c444
15 changed files with 35 additions and 4 deletions

View file

@ -34,6 +34,7 @@ impl<'a> FunctionRender<'a> {
fn_: hir::Function,
) -> FunctionRender<'a> {
let name = local_name.unwrap_or_else(|| fn_.name(ctx.db()).to_string());
#[allow(deprecated)]
let ast_node = fn_.source_old(ctx.db()).value;
FunctionRender { ctx, name, func: fn_, ast_node }