From ca6548827634155f28e75bc6cb2e734d2d5d1e95 Mon Sep 17 00:00:00 2001 From: Kirill Bulatov Date: Tue, 19 Jan 2021 01:08:59 +0200 Subject: Show deprecated completions for deprecated traits --- crates/completion/src/test_utils.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'crates/completion/src/test_utils.rs') diff --git a/crates/completion/src/test_utils.rs b/crates/completion/src/test_utils.rs index 3faf861b9..baff83305 100644 --- a/crates/completion/src/test_utils.rs +++ b/crates/completion/src/test_utils.rs @@ -83,6 +83,9 @@ pub(crate) fn completion_list_with_config( let width = label_width.saturating_sub(monospace_width(it.label())); format_to!(buf, "{:width$} {}", "", detail, width = width); } + if it.deprecated() { + format_to!(buf, " DEPRECATED"); + } format_to!(buf, "\n"); buf }) -- cgit v1.2.3