@@ -711,6 +711,7 @@ fn main() {
711
711
println!("cargo:rerun-if-changed=build.rs");
712
712
}
713
713
//- /src/main.rs
714
+ #![allow(warnings)]
714
715
#![feature(rustc_attrs)]
715
716
#[rustc_builtin_macro] macro_rules! include {
716
717
($file:expr $(,)?) => {{ /* compiler built-in */ }};
@@ -759,7 +760,7 @@ fn main() {
759
760
let res = server. send_request :: < HoverRequest > ( HoverParams {
760
761
text_document_position_params : TextDocumentPositionParams :: new (
761
762
server. doc_id ( "src/main.rs" ) ,
762
- Position :: new ( 29 , 10 ) ,
763
+ Position :: new ( 30 , 10 ) ,
763
764
) ,
764
765
work_done_progress_params : Default :: default ( ) ,
765
766
} ) ;
@@ -768,7 +769,7 @@ fn main() {
768
769
let res = server. send_request :: < HoverRequest > ( HoverParams {
769
770
text_document_position_params : TextDocumentPositionParams :: new (
770
771
server. doc_id ( "src/main.rs" ) ,
771
- Position :: new ( 30 , 10 ) ,
772
+ Position :: new ( 31 , 10 ) ,
772
773
) ,
773
774
work_done_progress_params : Default :: default ( ) ,
774
775
} ) ;
@@ -778,23 +779,23 @@ fn main() {
778
779
GotoDefinitionParams {
779
780
text_document_position_params : TextDocumentPositionParams :: new (
780
781
server. doc_id ( "src/main.rs" ) ,
781
- Position :: new ( 27 , 9 ) ,
782
+ Position :: new ( 28 , 9 ) ,
782
783
) ,
783
784
work_done_progress_params : Default :: default ( ) ,
784
785
partial_result_params : Default :: default ( ) ,
785
786
} ,
786
787
json ! ( [ {
787
788
"originSelectionRange" : {
788
- "end" : { "character" : 10 , "line" : 27 } ,
789
- "start" : { "character" : 8 , "line" : 27 }
789
+ "end" : { "character" : 10 , "line" : 28 } ,
790
+ "start" : { "character" : 8 , "line" : 28 }
790
791
} ,
791
792
"targetRange" : {
792
- "end" : { "character" : 9 , "line" : 18 } ,
793
- "start" : { "character" : 0 , "line" : 17 }
793
+ "end" : { "character" : 9 , "line" : 19 } ,
794
+ "start" : { "character" : 0 , "line" : 18 }
794
795
} ,
795
796
"targetSelectionRange" : {
796
- "end" : { "character" : 8 , "line" : 18 } ,
797
- "start" : { "character" : 7 , "line" : 18 }
797
+ "end" : { "character" : 8 , "line" : 19 } ,
798
+ "start" : { "character" : 7 , "line" : 19 }
798
799
} ,
799
800
"targetUri" : "file:///[..]src/main.rs"
800
801
} ] ) ,
@@ -804,23 +805,23 @@ fn main() {
804
805
GotoDefinitionParams {
805
806
text_document_position_params : TextDocumentPositionParams :: new (
806
807
server. doc_id ( "src/main.rs" ) ,
807
- Position :: new ( 28 , 9 ) ,
808
+ Position :: new ( 29 , 9 ) ,
808
809
) ,
809
810
work_done_progress_params : Default :: default ( ) ,
810
811
partial_result_params : Default :: default ( ) ,
811
812
} ,
812
813
json ! ( [ {
813
814
"originSelectionRange" : {
814
- "end" : { "character" : 10 , "line" : 28 } ,
815
- "start" : { "character" : 8 , "line" : 28 }
815
+ "end" : { "character" : 10 , "line" : 29 } ,
816
+ "start" : { "character" : 8 , "line" : 29 }
816
817
} ,
817
818
"targetRange" : {
818
- "end" : { "character" : 9 , "line" : 22 } ,
819
- "start" : { "character" : 0 , "line" : 21 }
819
+ "end" : { "character" : 9 , "line" : 23 } ,
820
+ "start" : { "character" : 0 , "line" : 22 }
820
821
} ,
821
822
"targetSelectionRange" : {
822
- "end" : { "character" : 8 , "line" : 22 } ,
823
- "start" : { "character" : 7 , "line" : 22 }
823
+ "end" : { "character" : 8 , "line" : 23 } ,
824
+ "start" : { "character" : 7 , "line" : 23 }
824
825
} ,
825
826
"targetUri" : "file:///[..]src/main.rs"
826
827
} ] ) ,
0 commit comments