Skip to content

Commit 5e9090c

Browse files
committed
Remove depreciated quoted.matching package
1 parent 7a17422 commit 5e9090c

File tree

13 files changed

+8
-100
lines changed

13 files changed

+8
-100
lines changed

library/src/scala/quoted/matching/ConstSeq.scala

Lines changed: 0 additions & 26 deletions
This file was deleted.

library/src/scala/quoted/matching/ValueSeq.scala

Lines changed: 0 additions & 25 deletions
This file was deleted.

library/src/scala/quoted/matching/package.scala

Lines changed: 0 additions & 32 deletions
This file was deleted.

library/src/scala/util/FromDigits.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package scala.util
22
import scala.math.{BigInt}
33
import quoted._
4-
import quoted.matching._
54
import internal.Chars.digit2int
65
import annotation.internal.sharable
76

tests/neg-macros/i6976.check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
| ^^^^^^^^^
55
| Exception occurred while executing macro expansion.
66
| scala.MatchError: Inlined(EmptyTree,List(),Literal(Constant(2))) (of class dotty.tools.dotc.ast.Trees$Inlined)
7-
| at playground.macros$.mcrImpl(Macro_1.scala:12)
7+
| at playground.macros$.mcrImpl(Macro_1.scala:10)
88
|
99
| This location contains code that was inlined from Test_2.scala:5

tests/neg-macros/i6976/Macro_1.scala

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
package playground
22

3-
import scala.quoted._, scala.quoted.matching._
4-
import scala.quoted.{given _}
5-
import scala.tasty._
3+
import scala.quoted._
64

75
object macros {
86
inline def mcr(x: => Any) = ${mcrImpl('x)}
97

108
def mcrImpl(body: Expr[Any])(using ctx: QuoteContext) : Expr[Any] = {
11-
import ctx.tasty.{_, given _}
9+
import ctx.tasty._
1210
body.unseal match { case Block(_, _) => '{2} }
1311
}
1412
}

tests/neg/i6997b.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package playground
22

3-
import scala.quoted.{_, given _}, scala.quoted.matching._
3+
import scala.quoted._
44

55
inline def mcr(x: => Any): Any = ${mcrImpl('x)}
66

tests/neg/i7698.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import scala.quoted._
2-
import scala.quoted.matching._
32

43
trait Show[T] {
54
def show(x: T): String

tests/pos-macros/i7011/Macros_1.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import scala.quoted._, scala.quoted.matching._
2-
import scala.quoted.{given _}
1+
import scala.quoted._
32

43
inline def mcr(body: => Any): Unit = ${mcrImpl('body)}
54

tests/pos/i6997c.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package playground
22

3-
import scala.quoted.{_, given _}, scala.quoted.matching._
3+
import scala.quoted._
44

55
inline def mcr(x: => Any): Any = ${mcrImpl('x)}
66

tests/pos/i8651b.scala

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ abstract class Coroutine[+T] {
55
object Macros {
66

77
import scala.quoted._
8-
import scala.quoted.matching._
9-
108

119
inline def coroutine[T](inline body: Any): Coroutine[T] = ${ coroutineImpl('{body}) }
1210

tests/run-macros/i7008/macro_1.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import scala.quoted._, scala.quoted.matching._
2-
import scala.quoted.{given _}
1+
import scala.quoted._
32
import scala.tasty._
43

54
case class Box[T](v: T)

tests/run-staging/i6992/Macro_1.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11

2-
import scala.quoted._, scala.quoted.matching._
2+
import scala.quoted._
33
import scala.quoted.staging._
4-
import scala.quoted.{given _}
54

65
given Toolbox = Toolbox.make(getClass.getClassLoader)
76

0 commit comments

Comments
 (0)