Skip to content

Improve TupleStruct ctor privacy err diagnostic when working cross-crate #78708

Closed
@guswynn

Description

@guswynn

currently
#78401
and
#76499

only work with types within the crate, as the struct_constructors only has full info for types within the current Crate being built
We can likely recover this info in the extern crate metadtata, but as reaching into this metadata is likely slow and complicated, this should only happen on the err path

I will see if I can find time to work on this

cc @estebank @petrochenkov

@rustbot modify labels to +T-lang, +A-diagnostics

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsA-visibilityArea: Visibility / privacyT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions