Skip to content

Commit 8469fed

Browse files
committed
test(rust-lsp): tag the shared-registry fixtures as Rust defs
The shared Tier-2 build now registers Rust definitions only. Two fixtures that feed cbm_rust_build_cross_registry left CBMLSPDef.lang zero, which the pipeline never does (pass_lsp_cross.c tags every def with its file's language). The other shared-registry fixtures in this file already set CBM_LANG_RUST. Set it on these two as well. Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
1 parent ec4f0ea commit 8469fed

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎tests/test_rust_lsp.c‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,9 @@ TEST(rustlsp_shared_registry_resolves_like_per_file) {
591591
defs[1].receiver_type = "test.demo.Database";
592592
defs[1].def_module_qn = "test.demo";
593593
defs[1].return_types = "alloc.string.String";
594+
/* The shared build registers Rust defs only, as the pipeline tags them. */
595+
defs[0].lang = CBM_LANG_RUST;
596+
defs[1].lang = CBM_LANG_RUST;
594597

595598
const char *imp_names[] = {"demo"};
596599
const char *imp_qns[] = {"test::demo"};
@@ -695,6 +698,7 @@ TEST(rustlsp_shared_registry_macro_hidden_call_has_carrier) {
695698
defs[0].label = "Function";
696699
defs[0].def_module_qn = "test.lib";
697700
defs[0].return_types = "str";
701+
defs[0].lang = CBM_LANG_RUST;
698702

699703
const char *imp_names[] = {"lib"};
700704
const char *imp_qns[] = {"test::lib"};

0 commit comments

Comments
 (0)