Skip to content

Rust associated type defaults are not emitted for trait symbols #2603

Description

@Widthdom

Summary

Extract_RustTraitAssociatedTypeDefaults_RecordsPropertySymbols fails because Rust trait declarations are indexed as protocol symbols, while the associated type default post-pass only scans interface containers.

Evidence

  • PR Fix HTML class reference extraction #2599 CI failed on build (ubuntu-latest, net9.0) with CodeIndex.Tests.SymbolExtractorTests.Extract_RustTraitAssociatedTypeDefaults_RecordsPropertySymbols.
  • The same failure reproduced locally when running dotnet test tests/CodeIndex.Tests/CodeIndex.Tests.csproj --filter FullyQualifiedName~SymbolExtractorTests after merging current origin/main.

Expected

Rust trait associated type defaults such as type Output = (); and type Error: std::error::Error = String; should be emitted as property symbols under the trait container.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions