Skip to content

Non exported paths can be imported from other crates if they are reachable #3137

Description

@msullivan

The metadata and resolve3 don't distinguish between things in the metadata because they were actually exported and things that are in the metadata because they were reachable. This means that a lot of things can be imported from other crates that weren't actually exported.

The solution is probably to tag whether something is exported in the metadata and check that in resolve3.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-linkageArea: linking into static, shared libraries and binaries

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions