File tree Expand file tree Collapse file tree 1 file changed +5
-22
lines changed
compiler-core/src/language_server/tests Expand file tree Collapse file tree 1 file changed +5
-22
lines changed Original file line number Diff line number Diff line change @@ -10802,24 +10802,6 @@ fn wibble() -> Nil
1080210802 ) ;
1080310803}
1080410804
10805- #[ test]
10806- fn annotate_all_top_level_definitions_dont_affect_local_vars( ) {
10807- assert_code_action ! (
10808- ANNOTATE_TOP_LEVEL_DEFINITIONS ,
10809- r#"
10810- pub const answer = 42
10811-
10812- pub fn add_two(thing) {
10813- thing + 2
10814-
10815- pub fn add_one(thing) {
10816- let result = thing + 1
10817- result
10818- }
10819- "# ,
10820- find_position_of( "fn" ) . select_until( find_position_of( "(" ) ) ;
10821- }
10822-
1082310805#[ test]
1082410806fn annotate_all_top_level_definitions_constant ( ) {
1082510807 assert_code_action ! (
@@ -10842,20 +10824,21 @@ pub fn add_one(thing) {
1084210824#[ test]
1084310825fn annotate_all_top_level_definitions_function ( ) {
1084410826 assert_code_action ! (
10845- ANNOTATE_TOP_LEVEL_TYPE_DEFINITIONS ,
10827+ ANNOTATE_TOP_LEVEL_DEFINITIONS ,
1084610828 r#"
1084710829pub fn add_two(thing) {
10848- thing + 2
10830+ thing + 2
1084910831}
1085010832
1085110833pub fn add_one(thing) {
10852- thing + 1
10834+ thing + 1
1085310835}
10854- "#,
10836+ "# ,
1085510837 find_position_of( "fn" ) . select_until( find_position_of( "(" ) )
1085610838 ) ;
1085710839}
1085810840
10841+ #[ test]
1085910842fn annotate_all_top_level_definitions_already_annotated ( ) {
1086010843 assert_no_code_actions ! (
1086110844 ANNOTATE_TOP_LEVEL_DEFINITIONS ,
You can’t perform that action at this time.
0 commit comments