Skip to content

(SymbolGraphGen) orphaned stdlib symbol 'Unicode._NFD.Iterator.next' #65335

Open
@tayloraswift

Description

@tayloraswift

SymbolGraphGen on swift 5.8 currently omits the Unicode._NFD and Unicode._NFD.Iterator symbols when dumping the stdlib symbol graph, but for some reason it emits a symbol for Unicode._NFD.Iterator.next (ss7UnicodeO4_NFDV8IteratorV4nextAB6ScalarVSgyF), and a memberOf edge connecting it to the nonexistent Unicode._NFD.Iterator symbol (ss7UnicodeO4_NFDV8IteratorV). this causes downstream tooling to error.

this can be reproduced by dumping the stdlib symbol graph with:

swift symbolgraph-extract \
    -target x86_64-unknown-linux-gnu \
    -minimum-access-level internal \
    -output-dir <output dir> \
    -skip-inherited-docs \
    -emit-extension-block-symbols \
    -pretty-print \
    -module-name Swift

note that Unicode._NFD would normally appear (despite being underscored) because of -minimum-access-level internal, it is most likely hidden because it is SPI.

Metadata

Metadata

Assignees

No one assigned

    Labels

    @_spiFeature → attributes: the @_spi attributeSymbolGraphGenThe swiftSymbolGraphGen library, responsible for gathering and emitting symbol graphs.attributesFeature: Declaration and type attributesbugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfswift 5.8unexpected behaviorBug: Unexpected behavior or incorrect output

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions