aboutsummaryrefslogtreecommitdiff
path: root/crates/ide/src/diagnostics/macro_error.rs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-06-13 17:33:03 +0100
committerGitHub <[email protected]>2021-06-13 17:33:03 +0100
commit8e5f469da8d5ed0e4c0519c883498097aeadd7ac (patch)
treea9c198dde6ff1845ee3bf634bc0de888f4ef40e5 /crates/ide/src/diagnostics/macro_error.rs
parenta8d815590821c1b689342e443e584d5b69af6341 (diff)
parentdec207f56a7b16075f68dcb89138d93a7eecdf43 (diff)
Merge #9251
9251: minor: simplify r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ide/src/diagnostics/macro_error.rs')
-rw-r--r--crates/ide/src/diagnostics/macro_error.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/crates/ide/src/diagnostics/macro_error.rs b/crates/ide/src/diagnostics/macro_error.rs
index d76a3a094..5f97f190d 100644
--- a/crates/ide/src/diagnostics/macro_error.rs
+++ b/crates/ide/src/diagnostics/macro_error.rs
@@ -15,9 +15,7 @@ pub(super) fn macro_error(ctx: &DiagnosticsContext<'_>, d: &hir::MacroError) ->
15#[cfg(test)] 15#[cfg(test)]
16mod tests { 16mod tests {
17 use crate::{ 17 use crate::{
18 diagnostics::tests::{ 18 diagnostics::tests::{check_diagnostics, check_diagnostics_with_config},
19 check_diagnostics, check_diagnostics_with_config, check_no_diagnostics,
20 },
21 DiagnosticsConfig, 19 DiagnosticsConfig,
22 }; 20 };
23 21
@@ -77,7 +75,7 @@ macro_rules! concat { () => {} }
77 fn register_attr_and_tool() { 75 fn register_attr_and_tool() {
78 cov_mark::check!(register_attr); 76 cov_mark::check!(register_attr);
79 cov_mark::check!(register_tool); 77 cov_mark::check!(register_tool);
80 check_no_diagnostics( 78 check_diagnostics(
81 r#" 79 r#"
82#![register_tool(tool)] 80#![register_tool(tool)]
83#![register_attr(attr)] 81#![register_attr(attr)]