Commit fd2d655
committed
Split -Wconf combined rules into separate flags for Scala 2.13.15+
Since Scala 2.13.15 (scala/scala#10708), the semantics of combined
-Wconf rules changed: in '-Wconf:x,y', y now takes priority over x
(last-match-wins), whereas before 2.13.15, x took priority
(first-match-wins). This means '-Wconf:cat=deprecation:wv,any:e' now
treats deprecation warnings as errors (any:e overrides
cat=deprecation:wv), breaking Scala 2.13 compilation when -Pdelta is
enabled.
Split into separate -Wconf flags where later flags have higher
priority:
-Wconf:any:e (baseline)
-Wconf:msg=While parsing annotations in:silent (override)
-Wconf:cat=deprecation:wv (override)
This aligns with Apache Spark's approach in SPARK-49746 (983f6f43).
Gluten uses Scala 2.13.17 which is affected by this change.
Reference:
- scala/scala#10708
- apache/spark#481921 parent 406821d commit fd2d655
1 file changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
629 | 629 | | |
630 | 630 | | |
631 | 631 | | |
632 | | - | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
633 | 635 | | |
634 | 636 | | |
635 | 637 | | |
636 | | - | |
637 | 638 | | |
638 | 639 | | |
639 | 640 | | |
| |||
1026 | 1027 | | |
1027 | 1028 | | |
1028 | 1029 | | |
1029 | | - | |
| 1030 | + | |
| 1031 | + | |
1030 | 1032 | | |
1031 | 1033 | | |
1032 | 1034 | | |
| |||
0 commit comments