From a6638af4a60688c970ac9bafdf3c2d79aa1bc13c Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 13 Mar 2020 18:00:23 +0100 Subject: Simplify tests --- crates/ra_ide/src/typing.rs | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/crates/ra_ide/src/typing.rs b/crates/ra_ide/src/typing.rs index 53c65f8bc..cb2cd2479 100644 --- a/crates/ra_ide/src/typing.rs +++ b/crates/ra_ide/src/typing.rs @@ -213,14 +213,14 @@ fn foo() { type_char( '.', r" - pub fn child(&self, db: &impl HirDatabase, name: &Name) -> Cancelable> { - self.child_impl(db, name) + fn main() { + xs.foo() <|> } ", r" - pub fn child(&self, db: &impl HirDatabase, name: &Name) -> Cancelable> { - self.child_impl(db, name) + fn main() { + xs.foo() . } ", @@ -228,8 +228,8 @@ fn foo() { type_char_noop( '.', r" - pub fn child(&self, db: &impl HirDatabase, name: &Name) -> Cancelable> { - self.child_impl(db, name) + fn main() { + xs.foo() <|> } ", @@ -241,14 +241,14 @@ fn foo() { type_char( '.', r" - pub fn child(&self, db: &impl HirDatabase, name: &Name) -> Cancelable> { - self.child_impl(db, name) + fn main() { + xs.foo() <|>; } ", r" - pub fn child(&self, db: &impl HirDatabase, name: &Name) -> Cancelable> { - self.child_impl(db, name) + fn main() { + xs.foo() .; } ", @@ -256,8 +256,8 @@ fn foo() { type_char_noop( '.', r" - pub fn child(&self, db: &impl HirDatabase, name: &Name) -> Cancelable> { - self.child_impl(db, name) + fn main() { + xs.foo() <|>; } ", @@ -269,15 +269,15 @@ fn foo() { type_char( '.', r" - pub fn child(&self, db: &impl HirDatabase, name: &Name) -> Cancelable> { - self.child_impl(db, name) + fn main() { + xs.foo() .first() <|> } ", r" - pub fn child(&self, db: &impl HirDatabase, name: &Name) -> Cancelable> { - self.child_impl(db, name) + fn main() { + xs.foo() .first() . } @@ -286,8 +286,8 @@ fn foo() { type_char_noop( '.', r" - pub fn child(&self, db: &impl HirDatabase, name: &Name) -> Cancelable> { - self.child_impl(db, name) + fn main() { + xs.foo() .first() <|> } @@ -334,7 +334,7 @@ fn foo() { type_char_noop( '.', r" - pub fn child(&self, db: &impl HirDatabase, name: &Name) -> Cancelable> { + fn main() { <|> } ", @@ -342,7 +342,7 @@ fn foo() { type_char_noop( '.', r" - pub fn child(&self, db: &impl HirDatabase, name: &Name) -> Cancelable> { + fn main() { <|> } ", -- cgit v1.2.3