From 8dc68ecdfcc764c7c0dcf5fcedcb51b092d99620 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 14 Jan 2021 18:25:19 +0300 Subject: Introduce more appropriate assertion mechanism rust-analyzer is a long-running program, so we *should* handle assertion failures. See also https://www.sqlite.org/assert.html. --- crates/completion/src/completions/unqualified_path.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'crates/completion/src/completions/unqualified_path.rs') diff --git a/crates/completion/src/completions/unqualified_path.rs b/crates/completion/src/completions/unqualified_path.rs index 7ba99447d..53e1391f3 100644 --- a/crates/completion/src/completions/unqualified_path.rs +++ b/crates/completion/src/completions/unqualified_path.rs @@ -540,8 +540,7 @@ mod macros { "#, expect![[r##" fn f() fn f() - ma concat!(…) #[macro_export] - macro_rules! concat + ma concat!(…) #[macro_export] macro_rules! concat md std "##]], ); @@ -597,8 +596,7 @@ fn main() { let v = $0 } "#, expect![[r##" md m1 - ma baz!(…) #[macro_export] - macro_rules! baz + ma baz!(…) #[macro_export] macro_rules! baz fn main() fn main() md m2 ma bar!(…) macro_rules! bar -- cgit v1.2.3