Skip to content

Make lang items private #72240

Open
Open
@doctorn

Description

@doctorn

#72170 and #72216 put some effort in to try and prevent some potential ICEs that can occur in #![no_core] due to how we currently reference lang items.

@oli-obk pointed out:

Oh, that's a very good idea. I wonder if we can make lang_items private at some point and just have sensible wrappers like require_lang_item.

I'm opening this issue to start a discussion about how we could take this forward.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lang-itemArea: Language itemsC-enhancementCategory: An issue proposing an enhancement or a PR with one.T-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