]> git.lizzy.rs Git - rust.git/commitdiff
Remove comment and incorrect assert
authorMikhail Rakhmanov <rakhmanov.m@gmail.com>
Fri, 12 Jun 2020 11:14:53 +0000 (13:14 +0200)
committerMikhail Rakhmanov <rakhmanov.m@gmail.com>
Fri, 12 Jun 2020 11:14:53 +0000 (13:14 +0200)
crates/ra_ide/src/completion/complete_keyword.rs

index feaa438afcbb56f918754262247fee0dbe1c251d..8ea51c7aa553440347e9a663992736b2c482c58d 100644 (file)
@@ -130,7 +130,7 @@ fn get_completion_text_and_assert_positions(code: &str) -> Vec<(String, String)>
         let mut returned_keywords = Vec::<(String, String)>::new();
 
         for item in completion_items {
-            debug_assert!(item.text_edit().len() == 1);
+            assert!(item.text_edit().len() == 1);
             assert!(item.kind() == Some(CompletionItemKind::Keyword));
             let atom = item.text_edit().iter().next().unwrap().clone();
             assert!(atom.delete.start() == position.offset);
@@ -165,12 +165,6 @@ fn completes_keywords_in_use_stmt_new_approach() {
         ]
         "###
         );
-        // assert_completion_keyword(
-        //     r"
-        // use <|>
-        // ",
-        //     &[("crate", "crate::"), ("self", "self"), ("super", "super::")],
-        // );
     }
 
     #[test]