Commit ee4c68a
authored
Remove trace in adaptBoxed (#22791)
The project currently doesn't clean compile with tracing enabled because
there is a `return` in a `trace` block in `CheckCaptures.scala`, which
is a non-local return when tracing is enabled.
```
[info] compiling 595 Scala sources and 8 Java sources to /localhome/bovel/scala3/compiler/target/scala-3.6.4-RC1/classes ...
[warn] -- Warning: /localhome/bovel/scala3/compiler/src/dotty/tools/dotc/cc/CheckCaptures.scala:1387:14
[warn] 1387 | return actual
[warn] | ^^^^^^^^^^^^^
[warn] |Non local returns are no longer supported; use `boundary` and `boundary.break` in `scala.util` instead
[error] No warnings can be incurred under -Werror (or -Xfatal-warnings)
[warn] one warning found
[error] one error found
[error] (scala3-compiler / Compile / compileIncremental) Compilation failed
[error] Total time: 26 s, completed Mar 13, 2025, 10:09:01 AM
```
Interestingly, first compiling with `tracingEnabled = false` and then
switching to `true` works 🤔1 file changed
+0
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1434 | 1434 | | |
1435 | 1435 | | |
1436 | 1436 | | |
1437 | | - | |
1438 | | - | |
1439 | 1437 | | |
1440 | 1438 | | |
1441 | 1439 | | |
| |||
1484 | 1482 | | |
1485 | 1483 | | |
1486 | 1484 | | |
1487 | | - | |
1488 | 1485 | | |
1489 | 1486 | | |
1490 | 1487 | | |
| |||
0 commit comments