File tree 2 files changed +1
-3
lines changed
src/dotty/tools/dotc/reporting
test/dotty/tools/dotc/config
2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ object WConf:
119
119
def fromSettings (settings : List [String ]): Either [List [String ], WConf ] =
120
120
if (settings.isEmpty) Right (WConf (Nil ))
121
121
else
122
- val parsedConfs : List [Either [List [String ], (List [MessageFilter ], Action )]] = settings.map(conf =>
122
+ val parsedConfs : List [Either [List [String ], (List [MessageFilter ], Action )]] = settings.reverse. map(conf =>
123
123
val filtersAndAction = conf.split(':' )
124
124
if filtersAndAction.length != 2 then Left (List (" exactly one `:` expected (<filter>&...&<filter>:<action>)" ))
125
125
else
Original file line number Diff line number Diff line change @@ -89,7 +89,6 @@ class ScalaSettingsTests:
89
89
val nowr = new Diagnostic .Warning (" This is a problem." .toMessage, util.NoSourcePosition )
90
90
assertEquals(Action .Silent , sut.action(nowr))
91
91
92
- @ Ignore (" LTS backport rejected: https://github.com/scala/scala3/pull/18503" )
93
92
@ Test def `i18367 rightmost WConf flags take precedence over flags to the left` : Unit =
94
93
import reporting .{Action , Diagnostic }
95
94
val sets = new ScalaSettings
@@ -186,7 +185,6 @@ class ScalaSettingsTests:
186
185
)
187
186
)
188
187
189
- @ Ignore (" LTS backport rejected: https://github.com/scala/scala3/pull/18503" )
190
188
@ Test def `WConf src filter can be mixed with other filters with rightmost taking precedence` : Unit =
191
189
val result = wconfSrcFilterTest(
192
190
argsStr = " -Wconf:src=.*:s,cat=deprecation:e" ,
You can’t perform that action at this time.
0 commit comments