Skip to content

Update some compiler options #2727

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

Merged
merged 2 commits into from
Mar 10, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion _overviews/scala3-migration/options-intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ To do so you can refer to the [Lookup Table](options-lookup.html).

You can also discover the new Scala 3 compiler options, that have no equivalent in Scala 2.13, in the [New Compiler Options](options-new.html) page.

For scaladoc settings reference and their compatibility with Scala2 scaladoc, read [Scaladoc settings compatibility between Scala2 and Scala3](scaladoc-settings-compatibility.html) page.
For Scaladoc settings reference and their compatibility with Scala2 Scaladoc, read [Scaladoc settings compatibility between Scala2 and Scala3](scaladoc-settings-compatibility.html) page.
32 changes: 16 additions & 16 deletions _overviews/scala3-migration/options-lookup.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@ Each Scala 2.13 option is associated with its status in Scala 3.
|-|-|
| <i class="fa fa-check fa-lg"></i> | it is available in Scala 3 |
| `<new-name>` | It has been renamed to `<new-name>` |
| <i class="fa fa-times fa-lg"></i> | It is not available in 3.0.0 but it could be added later |
| <i class="fa fa-times fa-lg"></i> | It is not yet available could be added later |

> The current comparison is based on Scala 2.13.4 and 3.0.0-M3.
> The current comparison is based on Scala 2.13.10 and 3.3.0.

## Standard Settings

| 2.13.x | 3.0.x |
| 2.13.x | 3.3.x |
|-|-|
| `-Dproperty=value` | <i class="fa fa-times fa-lg"></i> |
| `-J<flag>` | <i class="fa fa-times fa-lg"></i> |
| `-Dproperty=value` | <i class="fa fa-check fa-lg"></i> |
| `-J<flag>` | <i class="fa fa-check fa-lg"></i> |
| `-P:<plugin>:<opt>` |<i class="fa fa-check fa-lg"></i>|
| `-V` | <i class="fa fa-times fa-lg"></i> |
| `-W` | <i class="fa fa-times fa-lg"></i> |
| `-V` | <i class="fa fa-check fa-lg"></i> |
| `-W` | <i class="fa fa-check fa-lg"></i> |
| `-X` |<i class="fa fa-check fa-lg"></i>|
| `-Y` |<i class="fa fa-check fa-lg"></i>|
| `-bootclasspath` |<i class="fa fa-check fa-lg"></i>|
Expand Down Expand Up @@ -186,9 +186,10 @@ Each Scala 2.13 option is associated with its status in Scala 3.
Verbose settings were introduced in 2.13.
Most of them are not yet implemented in Scala 3.

| 2.13.x | 3.0.x |
| 2.13.x | 3.3.x |
|-|-|
| `-Vbrowse:<phases>` | <i class="fa fa-times fa-lg"></i> |
| `-Vclasspath` | `-Ylog-classpath` |
| `-Vdebug-tasty` | <i class="fa fa-times fa-lg"></i> |
| `-Vdoc` | <i class="fa fa-times fa-lg"></i> |
| `-Vfree-terms` | <i class="fa fa-times fa-lg"></i> |
Expand All @@ -203,10 +204,9 @@ Most of them are not yet implemented in Scala 3.
| `-Vmacro-lite` | <i class="fa fa-times fa-lg"></i> |
| `-Vopt <package/Class.method>` | <i class="fa fa-times fa-lg"></i> |
| `-Vpatmat` | <i class="fa fa-times fa-lg"></i> |
| `-Vphases` | <i class="fa fa-check fa-lg"></i> |
| `-Vpos`| <i class="fa fa-times fa-lg"></i> |
| `-Vprint:<phases>` | `-Xprint:<phases>` |
| `-Vphases` | `-Xshow-phases` |
| `-Vclasspath` | `-Ylog-classpath` |
| `-Vprint:<phases>` | <i class="fa fa-check fa-lg"></i> |
| `-Vlog:<phases>` | `-Ylog:<phases>`|
| `-Vdebug` | `-Ydebug` |
| `-Vprint-args <file>` | <i class="fa fa-times fa-lg"></i> |
Expand All @@ -230,17 +230,17 @@ Most of them are not yet implemented in Scala 3.
Warning settings were introduced in 2.13.
Most of them are not yet implemented in Scala 3.

| 2.13.x | 3.0.x |
| 2.13.x | 3.3.x |
|-|-|
| `-Wconf` | <i class="fa fa-times fa-lg"></i> |
| `-Wconf` | <i class="fa fa-check fa-lg"></i> |
| `-Wdead-code` | <i class="fa fa-times fa-lg"></i> |
| `-Werror` | `-Xfatal-warnings` |
| `-Werror` | <i class="fa fa-check fa-lg"></i> |
| `-Wextra-implicit` | <i class="fa fa-times fa-lg"></i> |
| `-Wmacros:<mode>` | <i class="fa fa-times fa-lg"></i> |
| `-Wnumeric-widen` | <i class="fa fa-times fa-lg"></i> |
| `-Woctal-literal` | <i class="fa fa-times fa-lg"></i> |
| `-Wunused:<warnings>` | <i class="fa fa-times fa-lg"></i> |
| `-Wvalue-discard`| <i class="fa fa-times fa-lg"></i> |
| `-Wunused:<warnings>` | <i class="fa fa-check fa-lg"></i> |
| `-Wvalue-discard`| <i class="fa fa-check fa-lg"></i> |
| `-Wself-implicit` | <i class="fa fa-times fa-lg"></i> |

## Compiler Plugins
Expand Down