Skip to content

Respect -Xlint:-multiarg-infix to suppress lint at callsite#9089

Merged
lrytz merged 1 commit intoscala:2.13.xfrom
som-snytt:issue/12058
Jun 29, 2020
Merged

Respect -Xlint:-multiarg-infix to suppress lint at callsite#9089
lrytz merged 1 commit intoscala:2.13.xfrom
som-snytt:issue/12058

Conversation

@som-snytt
Copy link
Copy Markdown
Contributor

@scala-jenkins scala-jenkins added this to the 2.13.4 milestone Jun 26, 2020
@SethTisue SethTisue added the release-notes worth highlighting in next release notes label Jun 26, 2020
Copy link
Copy Markdown
Member

@lrytz lrytz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. The alternative would be to turn it into a deprecation, but multiarg-infix is not deprecated in dotty either (not even with -source:3.1).

@lrytz lrytz merged commit f8a7132 into scala:2.13.x Jun 29, 2020
@som-snytt som-snytt deleted the issue/12058 branch June 29, 2020 12:59
@dwijnand dwijnand changed the title Multiarg infix application is behind lint flag Honour -Xlint:-multiarg-infix Nov 10, 2020
@dwijnand dwijnand removed the release-notes worth highlighting in next release notes label Nov 10, 2020
@dwijnand
Copy link
Copy Markdown
Member

(Feels like a too niche bug fix to be noteworthy to me...)

@som-snytt som-snytt changed the title Honour -Xlint:-multiarg-infix Respect -Xlint:multiarg-infix Nov 10, 2020
@som-snytt
Copy link
Copy Markdown
Contributor Author

som-snytt commented Nov 10, 2020

The hyphen -Xlint:-multiarg-infix means turn it off. Also chose a spelling-neutral word.

IIRC there was a warning difference between application and definition.

@dwijnand
Copy link
Copy Markdown
Member

My point was it was always on (for applications or definitions) and it wouldn't respect a desire to switch it off, but I guess it was too terse to be communicate that clearly.

@som-snytt som-snytt changed the title Respect -Xlint:multiarg-infix Respect -Xlint:-multiarg-infix to suppress lint at callsite Nov 11, 2020
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

Successfully merging this pull request may close these issues.

scalac -Xlint:-multiarg-infix does not suppress multiarg-infix linting as expected

5 participants