aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide
diff options
context:
space:
mode:
authorEdwin Cheng <[email protected]>2020-03-11 15:08:12 +0000
committerEdwin Cheng <[email protected]>2020-03-11 15:08:12 +0000
commit759bcea96de448a7758276a9ce5696a56b44b465 (patch)
tree05d41725af5744110390becb6b813a907e685b51 /crates/ra_ide
parentbddf6b5266997dd7e017fcb963e54a86b68afbaa (diff)
Implement dummy assert macro
Diffstat (limited to 'crates/ra_ide')
-rw-r--r--crates/ra_ide/src/hover.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/crates/ra_ide/src/hover.rs b/crates/ra_ide/src/hover.rs
index 25e038a55..89640efb6 100644
--- a/crates/ra_ide/src/hover.rs
+++ b/crates/ra_ide/src/hover.rs
@@ -838,14 +838,10 @@ fn func(foo: i32) { if true { <|>foo; }; }
838 r#" 838 r#"
839 //- /lib.rs 839 //- /lib.rs
840 #[rustc_builtin_macro] 840 #[rustc_builtin_macro]
841 macro_rules! assert { 841 macro_rules! format {}
842 ($cond:expr) => {{ /* compiler built-in */ }};
843 ($cond:expr,) => {{ /* compiler built-in */ }};
844 ($cond:expr, $($arg:tt)+) => {{ /* compiler built-in */ }};
845 }
846 842
847 fn foo() { 843 fn foo() {
848 assert!("hel<|>lo"); 844 format!("hel<|>lo {}", 0);
849 } 845 }
850 "#, 846 "#,
851 ); 847 );