diff options
author | Aleksey Kladov <[email protected]> | 2021-01-14 15:25:19 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2021-01-14 15:25:19 +0000 |
commit | 8dc68ecdfcc764c7c0dcf5fcedcb51b092d99620 (patch) | |
tree | f0f93d744416a1114b34472b91574afe3be14147 /crates/completion/src/completions/unqualified_path.rs | |
parent | 865e05b5b47d3e27e8fe4458662e751e492a0f51 (diff) |
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.
Diffstat (limited to 'crates/completion/src/completions/unqualified_path.rs')
-rw-r--r-- | crates/completion/src/completions/unqualified_path.rs | 6 |
1 files changed, 2 insertions, 4 deletions
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 { | |||
540 | "#, | 540 | "#, |
541 | expect![[r##" | 541 | expect![[r##" |
542 | fn f() fn f() | 542 | fn f() fn f() |
543 | ma concat!(…) #[macro_export] | 543 | ma concat!(…) #[macro_export] macro_rules! concat |
544 | macro_rules! concat | ||
545 | md std | 544 | md std |
546 | "##]], | 545 | "##]], |
547 | ); | 546 | ); |
@@ -597,8 +596,7 @@ fn main() { let v = $0 } | |||
597 | "#, | 596 | "#, |
598 | expect![[r##" | 597 | expect![[r##" |
599 | md m1 | 598 | md m1 |
600 | ma baz!(…) #[macro_export] | 599 | ma baz!(…) #[macro_export] macro_rules! baz |
601 | macro_rules! baz | ||
602 | fn main() fn main() | 600 | fn main() fn main() |
603 | md m2 | 601 | md m2 |
604 | ma bar!(…) macro_rules! bar | 602 | ma bar!(…) macro_rules! bar |