Skip to content

"private type in exported type signature" error does not check re-exports #19275

Closed
@SimonSapin

Description

@SimonSapin

… apparently, or it would have caught #19271. It should, especially if libcore and other crates that libstd is a facade of can not be used directly in the stable channel.

That is, if a function, type, or trait is re-exported, all the signatures involved should also be checked for type that are not also reachable from the same crate. Otherwise it is possible to get a value of a type that can not be named, which this error tries to prevent in the first place.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions