Skip to content

Add a warning when user code refers to scala.runtime.* #23824

@Gedochao

Description

@Gedochao

Extracted out of #23804

There are no guarantees for user code relying on API in scala.runtime.*, but we currently do not warn about it at all.

Thus, regressions like #23804 may occur, i.e. when referring to scala.runtime.stdLibPatches.Predef.assert

Expectations
Annotate scala.runtime.* as internal API and print warnings when they're used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:reportingError reporting including formatting, implicit suggestions, etcitype:enhancementstat:needs decisionSome aspects of this issue need a decision from the maintainance team.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions