Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow -Wconf to match "unused" details #12551

Closed
Daenyth opened this issue Mar 11, 2022 · 3 comments
Closed

Allow -Wconf to match "unused" details #12551

Daenyth opened this issue Mar 11, 2022 · 3 comments

Comments

@Daenyth
Copy link

Daenyth commented Mar 11, 2022

I'm trying to maintain a crossbuilding codebase, and in scala 2.13 the scala.collection.compat imports are of course marked as unused.

I tried this to silence those:

-Wconf:msg=scala.collection.compat:is
-Wconf:cat=unused&origin=scala.collection.compat:is

But neither msg nor origin seem to work to match on the error. It would be good if there would be a way to match on this

@som-snytt
Copy link

Duplicates #12326 which was just fixed in scala/scala#9939

This use case prompted the original ticket.

@SethTisue
Copy link
Member

SethTisue commented Mar 11, 2022

@som-snytt Yay! But also, I think you could improve the PR description of scala/scala#9939 to use this as an example. I've added the "release notes" label to that PR — it's more significant that I had originally realized.

@SethTisue
Copy link
Member

@Daenyth if you want to test this in a nightly build of 2.13.9, see https://stackoverflow.com/a/40622879/86485

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants