Skip to content

Diagnostics are silently suppressed #13057

Open
@som-snytt

Description

@som-snytt

Reproduction steps

Scala version: 2.13.15

If a diagnostic is suppressed for any reason, it is suppressed without notice.

There is no mechanism for auditing suppression.

There are many subtle mechanisms of suppression: -Wconf, -nowarn, @nowarn, : Unit, @unchecked.

Diagnostics may be hidden if at the same position. (-Xdev -Vdebug to make that verbose?)

The inline mechanisms are especially dangerous, since it is unthinkable to "comment them out".

It would be nice if suppressions could be summarized by a count, or verbosely listed for a detailed audit.

Problem

If an expected diagnostic doesn't show up in a build, you have to be Stefan Zeiger to figure out why.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions