From c8ace3a295aa63ff7f210f11840e7fc9de65264c Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 7 Jan 2021 13:05:51 +0300 Subject: Remove some stale deprecations --- crates/ide/src/diagnostics/fixes.rs | 3 --- crates/ide/src/hover.rs | 2 -- 2 files changed, 5 deletions(-) (limited to 'crates/ide/src') diff --git a/crates/ide/src/diagnostics/fixes.rs b/crates/ide/src/diagnostics/fixes.rs index ec0f840e9..71ec4df92 100644 --- a/crates/ide/src/diagnostics/fixes.rs +++ b/crates/ide/src/diagnostics/fixes.rs @@ -156,7 +156,6 @@ fn missing_record_expr_field_fix( let record_fields = match VariantDef::from(def_id) { VariantDef::Struct(s) => { module = s.module(sema.db); - #[allow(deprecated)] let source = s.source(sema.db)?; def_file_id = source.file_id; let fields = source.value.field_list()?; @@ -164,14 +163,12 @@ fn missing_record_expr_field_fix( } VariantDef::Union(u) => { module = u.module(sema.db); - #[allow(deprecated)] let source = u.source(sema.db)?; def_file_id = source.file_id; source.value.record_field_list()? } VariantDef::Variant(e) => { module = e.module(sema.db); - #[allow(deprecated)] let source = e.source(sema.db)?; def_file_id = source.file_id; let fields = source.value.field_list()?; diff --git a/crates/ide/src/hover.rs b/crates/ide/src/hover.rs index 72c9c66fe..a12a2475e 100644 --- a/crates/ide/src/hover.rs +++ b/crates/ide/src/hover.rs @@ -320,7 +320,6 @@ fn hover_for_definition(db: &RootDatabase, def: Definition) -> Option { from_def_source_labeled(db, it, Some(label), mod_path) } Definition::Field(def) => { - #[allow(deprecated)] let src = def.source(db)?.value; if let FieldSource::Named(it) = src { from_def_source_labeled(db, def, it.short_label(), mod_path) @@ -368,7 +367,6 @@ fn hover_for_definition(db: &RootDatabase, def: Definition) -> Option { D: HasSource + HasAttrs + Copy, A: ShortLabel, { - #[allow(deprecated)] let short_label = def.source(db)?.value.short_label(); from_def_source_labeled(db, def, short_label, mod_path) } -- cgit v1.2.3