@@ -37,7 +37,6 @@ pub(crate) fn add_turbo_fish(acc: &mut Assists, ctx: &AssistContext) -> Option<(
3737 let next_token = ident. next_token ( ) ?;
3838 if next_token. kind ( ) == T ! [ :: ] {
3939 mark:: hit!( add_turbo_fish_one_fish_is_enough) ;
40- mark:: hit!( add_type_ascription_turbofished) ;
4140 return None ;
4241 }
4342 let name_ref = ast:: NameRef :: cast ( ident. parent ( ) ) ?;
@@ -52,7 +51,6 @@ pub(crate) fn add_turbo_fish(acc: &mut Assists, ctx: &AssistContext) -> Option<(
5251 let generics = hir:: GenericDef :: Function ( fun) . params ( ctx. sema . db ) ;
5352 if generics. is_empty ( ) {
5453 mark:: hit!( add_turbo_fish_non_generic) ;
55- mark:: hit!( add_type_ascription_non_generic) ;
5654 return None ;
5755 }
5856
@@ -250,20 +248,6 @@ fn main() {
250248 ) ;
251249 }
252250
253- #[ test]
254- fn add_type_ascription_turbofished ( ) {
255- mark:: check!( add_type_ascription_turbofished) ;
256- check_assist_not_applicable (
257- add_turbo_fish,
258- r#"
259- fn make<T>() -> T {}
260- fn main() {
261- let x = make$0::<()>();
262- }
263- "# ,
264- ) ;
265- }
266-
267251 #[ test]
268252 fn add_type_ascription_already_typed ( ) {
269253 mark:: check!( add_type_ascription_already_typed) ;
@@ -280,20 +264,6 @@ fn make<T>() -> T {}
280264fn main() {
281265 let x: () = make::<${0:_}>();
282266}
283- "# ,
284- ) ;
285- }
286-
287- #[ test]
288- fn add_type_ascription_non_generic ( ) {
289- mark:: check!( add_type_ascription_non_generic) ;
290- check_assist_not_applicable (
291- add_turbo_fish,
292- r#"
293- fn make() -> () {}
294- fn main() {
295- let x = make$0();
296- }
297267"# ,
298268 ) ;
299269 }
0 commit comments