From 96156b95b52380fe7456cf9a163cb3de8ea6907f Mon Sep 17 00:00:00 2001 From: Emil Lauridsen Date: Sun, 29 Dec 2019 19:14:18 +0100 Subject: Resolve macro call site in more cases --- crates/ra_cargo_watch/src/conv.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/ra_cargo_watch') diff --git a/crates/ra_cargo_watch/src/conv.rs b/crates/ra_cargo_watch/src/conv.rs index 3bd4bf7a5..eedfea02b 100644 --- a/crates/ra_cargo_watch/src/conv.rs +++ b/crates/ra_cargo_watch/src/conv.rs @@ -48,7 +48,7 @@ fn map_macro_span_to_location( /// Converts a Rust span to a LSP location fn map_span_to_location(span: &DiagnosticSpan, workspace_root: &PathBuf) -> Location { - if is_from_macro(&span.file_name) && span.expansion.is_some() { + if span.expansion.is_some() { let expansion = span.expansion.as_ref().unwrap(); if let Some(macro_range) = map_macro_span_to_location(&expansion, workspace_root) { return macro_range; -- cgit v1.2.3