From 3fa04f35d279253865d060b6d4ecbd849fb22139 Mon Sep 17 00:00:00 2001 From: Jonas Schievink Date: Tue, 20 Oct 2020 18:23:55 +0200 Subject: More detailed message --- crates/hir_def/src/diagnostics.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/hir_def/src/diagnostics.rs b/crates/hir_def/src/diagnostics.rs index ad3b6bf26..c9c08b01f 100644 --- a/crates/hir_def/src/diagnostics.rs +++ b/crates/hir_def/src/diagnostics.rs @@ -102,7 +102,7 @@ impl Diagnostic for InactiveCode { } fn message(&self) -> String { // FIXME: say *why* it is configured out - "configured out".to_string() + "code is inactive due to #[cfg] directives".to_string() } fn display_source(&self) -> InFile { InFile::new(self.file, self.node.clone()) -- cgit v1.2.3