From ad07cf38fad914acde69a1a25071d05db24342f4 Mon Sep 17 00:00:00 2001 From: Som Snytt Date: Tue, 16 Apr 2024 02:10:50 -0700 Subject: [PATCH] Update some ranges in test output --- test/files/neg/t12735a.check | 4 ++-- test/files/neg/t12735b.check | 8 +++---- test/files/neg/t12735c.check | 30 +++++++++++++-------------- test/files/run/macro-openmacros.check | 6 +++--- 4 files changed, 24 insertions(+), 24 deletions(-) diff --git a/test/files/neg/t12735a.check b/test/files/neg/t12735a.check index 9e9c1b325ff6..421d088e7274 100644 --- a/test/files/neg/t12735a.check +++ b/test/files/neg/t12735a.check @@ -1,6 +1,6 @@ -[ERROR] [RangePosition(t12735a.scala, 97, 97, 98)]: class B needs to be abstract. +[ERROR] [RangePosition(t12735a.scala, 104, 104, 105)]: class B needs to be abstract. Missing implementation for member of trait A: def x: String = ??? -[ERROR] [RangePosition(t12735a.scala, 123, 123, 127)]: covariant type T occurs in contravariant position in type T of value t +[ERROR] [RangePosition(t12735a.scala, 130, 130, 134)]: covariant type T occurs in contravariant position in type T of value t 2 errors diff --git a/test/files/neg/t12735b.check b/test/files/neg/t12735b.check index 2e8b8cf6ab79..6a5138333fe2 100644 --- a/test/files/neg/t12735b.check +++ b/test/files/neg/t12735b.check @@ -1,7 +1,7 @@ -[WARNING] [RangePosition(t12735b.scala, 112, 112, 113)]: private method m in class UnusedMethod is never used -[WARNING] [RangePosition(t12735b.scala, 216, 216, 217)]: private object X in object UnusedObject is never used -[WARNING] [RangePosition(t12735b.scala, 228, 228, 253)]: side-effecting nullary methods are discouraged: suggest defining as `def stuff to create a range()` instead -[WARNING] [RangePosition(t12735b.scala, 128, 132, 135)]: match may not be exhaustive. +[WARNING] [RangePosition(t12735b.scala, 119, 119, 120)]: private method m in class UnusedMethod is never used +[WARNING] [RangePosition(t12735b.scala, 223, 223, 224)]: private object X in object UnusedObject is never used +[WARNING] [RangePosition(t12735b.scala, 235, 235, 260)]: side-effecting nullary methods are discouraged: suggest defining as `def stuff to create a range()` instead +[WARNING] [RangePosition(t12735b.scala, 135, 139, 142)]: match may not be exhaustive. It would fail on the following input: List(_) [ERROR] [NoPosition]: No warnings can be incurred under -Werror. 4 warnings diff --git a/test/files/neg/t12735c.check b/test/files/neg/t12735c.check index 41e43646cce2..fcbb3b774ccd 100644 --- a/test/files/neg/t12735c.check +++ b/test/files/neg/t12735c.check @@ -1,20 +1,20 @@ -[WARNING] [RangePosition(t12735c.scala, 109, 109, 110)]: private val v in class UnusedVal is never used -[WARNING] [RangePosition(t12735c.scala, 207, 207, 208)]: private val v in class UnusedVals is never used -[WARNING] [RangePosition(t12735c.scala, 210, 210, 211)]: private val w in class UnusedVals is never used -[WARNING] [RangePosition(t12735c.scala, 213, 213, 214)]: private val x in class UnusedVals is never used -[WARNING] [RangePosition(t12735c.scala, 216, 216, 217)]: private val y in class UnusedVals is never used -[WARNING] [RangePosition(t12735c.scala, 219, 219, 220)]: private val z in class UnusedVals is never used -[WARNING] [RangePosition(t12735c.scala, 319, 319, 320)]: private val v in class UnusedIdents is never used -[WARNING] [RangePosition(t12735c.scala, 322, 322, 323)]: private val w in class UnusedIdents is never used -[WARNING] [RangePosition(t12735c.scala, 325, 325, 326)]: private val x in class UnusedIdents is never used -[WARNING] [RangePosition(t12735c.scala, 328, 328, 329)]: private val y in class UnusedIdents is never used -[WARNING] [RangePosition(t12735c.scala, 331, 331, 332)]: private val z in class UnusedIdents is never used -[WARNING] [RangePosition(t12735c.scala, 424, 424, 427)]: private type int in object UnusedAlias is never used -[WARNING] [RangePosition(t12735c.scala, 125, 129, 132)]: match may not be exhaustive. +[WARNING] [RangePosition(t12735c.scala, 116, 116, 117)]: private val v in class UnusedVal is never used +[WARNING] [RangePosition(t12735c.scala, 214, 214, 215)]: private val v in class UnusedVals is never used +[WARNING] [RangePosition(t12735c.scala, 217, 217, 218)]: private val w in class UnusedVals is never used +[WARNING] [RangePosition(t12735c.scala, 220, 220, 221)]: private val x in class UnusedVals is never used +[WARNING] [RangePosition(t12735c.scala, 223, 223, 224)]: private val y in class UnusedVals is never used +[WARNING] [RangePosition(t12735c.scala, 226, 226, 227)]: private val z in class UnusedVals is never used +[WARNING] [RangePosition(t12735c.scala, 326, 326, 327)]: private val v in class UnusedIdents is never used +[WARNING] [RangePosition(t12735c.scala, 329, 329, 330)]: private val w in class UnusedIdents is never used +[WARNING] [RangePosition(t12735c.scala, 332, 332, 333)]: private val x in class UnusedIdents is never used +[WARNING] [RangePosition(t12735c.scala, 335, 335, 336)]: private val y in class UnusedIdents is never used +[WARNING] [RangePosition(t12735c.scala, 338, 338, 339)]: private val z in class UnusedIdents is never used +[WARNING] [RangePosition(t12735c.scala, 431, 431, 434)]: private type int in object UnusedAlias is never used +[WARNING] [RangePosition(t12735c.scala, 132, 136, 139)]: match may not be exhaustive. It would fail on the following input: List(_) -[WARNING] [source-t12735c.scala,line-12,offset=239]: match may not be exhaustive. +[WARNING] [source-t12735c.scala,line-12,offset=246]: match may not be exhaustive. It would fail on the following input: List(_) -[WARNING] [source-t12735c.scala,line-19,offset=343]: match may not be exhaustive. +[WARNING] [source-t12735c.scala,line-19,offset=350]: match may not be exhaustive. It would fail on the following input: List(_) [ERROR] [NoPosition]: No warnings can be incurred under -Werror. 15 warnings diff --git a/test/files/run/macro-openmacros.check b/test/files/run/macro-openmacros.check index 81cd1bbba5c2..d923d03544b0 100644 --- a/test/files/run/macro-openmacros.check +++ b/test/files/run/macro-openmacros.check @@ -1,3 +1,3 @@ -List(MacroContext(foo@source-Test_2.scala,line-3,offset=63 +0)) -List(MacroContext(foo@source-Test_2.scala,line-3,offset=63 +1), MacroContext(foo@source-Test_2.scala,line-3,offset=63 +0)) -List(MacroContext(foo@source-Test_2.scala,line-3,offset=63 +2), MacroContext(foo@source-Test_2.scala,line-3,offset=63 +1), MacroContext(foo@source-Test_2.scala,line-3,offset=63 +0)) +List(MacroContext(foo@source-Test_2.scala,line-3,offset=70 +0)) +List(MacroContext(foo@source-Test_2.scala,line-3,offset=70 +1), MacroContext(foo@source-Test_2.scala,line-3,offset=70 +0)) +List(MacroContext(foo@source-Test_2.scala,line-3,offset=70 +2), MacroContext(foo@source-Test_2.scala,line-3,offset=70 +1), MacroContext(foo@source-Test_2.scala,line-3,offset=70 +0))