Skip to content

Remove deprecated settings lifted to other categories#26170

Open
SolalPirelli wants to merge 1 commit into
scala:mainfrom
dotty-staging:solal/no-lifted-settings
Open

Remove deprecated settings lifted to other categories#26170
SolalPirelli wants to merge 1 commit into
scala:mainfrom
dotty-staging:solal/no-lifted-settings

Conversation

@SolalPirelli
Copy link
Copy Markdown
Contributor

All the ones that don't need code changes; there are too many for one PR per setting to be useful.

How much have you relied on LLM-based tools in this contribution?

Not at all

How was the solution tested?

Covered by existing tests (this is a refactoring)

@SolalPirelli SolalPirelli added this to the 3.10.0 milestone May 27, 2026
@SolalPirelli SolalPirelli requested a review from a team as a code owner May 27, 2026 10:03
@SolalPirelli SolalPirelli added the needs-minor-release This PR cannot be merged until the next minor release label May 27, 2026
val maybes = Plugin.loadAllFrom(paths, dirs, ctx.settings.disable.value)
val (goods, errors) = maybes partition (_.isSuccess)
// Explicit parameterization of recover to avoid -Xlint warning about inferred Any
// Explicit parameterization of recover to avoid -Wshadow warning about inferred Any
Copy link
Copy Markdown
Contributor

@som-snytt som-snytt May 27, 2026

Choose a reason for hiding this comment

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

Would that be -Winfer-union? I think that comment is from Scala 2. Probably warnings are not turned on anyway?

@@ -1,4 +1,4 @@
//> using options -Werror -Xlint
//> using options -Werror -Wshadow
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The inpervolator was my favorite interpolator, but unfortunately it is Scala 2-only.

@@ -1 +1 @@
-Xlint -Xfatal-warnings
-Wshadow -Xfatal-warnings
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I didn't look at whether or how flags files are used in this context.


object Test {
"" match { case X(b) => b } // should warn under -Xlint. Not an error because of SI-6111
"" match { case X(b) => b } // should warn under -Wshadow. Not an error because of SI-6111
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

all the untried edits are dubious. Does it matter? It makes the repository larger.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We definitely shouldn't have comments referencing compiler switches that don't exist. But I'm open to better edits.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I can't tell which way is more confusing, but I trust your judgment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-minor-release This PR cannot be merged until the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants