Skip to content

Commit 8eb6e7f

Browse files
committed
Remove unnecessary given imports
1 parent 5e9090c commit 8eb6e7f

File tree

15 files changed

+8
-15
lines changed

15 files changed

+8
-15
lines changed

docs/docs/reference/metaprogramming/macros.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ Here’s a compiler that maps an expression given in the interpreted
237237
language to quoted Scala code of type `Expr[Int]`.
238238
The compiler takes an environment that maps variable names to Scala `Expr`s.
239239
```scala
240-
import scala.quoted.{given _, _}
240+
import scala.quoted._
241241

242242
def compile(e: Exp, env: Map[String, Expr[Int]])(using QuoteContext): Expr[Int] = e match {
243243
case Num(n) =>

tests/neg/i6762.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import scala.quoted.{_, given _}
1+
import scala.quoted._
22

33
type G[X]
44
case class Foo[T](x: T)

tests/neg/i7048e.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import scala.quoted.{given _, _}
1+
import scala.quoted._
22

33
abstract class Test {
44
type T

tests/neg/i7618.scala

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

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

55
enum Exp {
66
case Num(n: Int)

tests/neg/i7618b.scala

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

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

55
enum Exp {
66
case Num(n: Int)

tests/neg/toexproftuple.scala

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

43
inline def mcr: Any = ${mcrImpl}
54
def mcrImpl(using ctx: QuoteContext): Expr[Any] = {

tests/pos-macros/treemap-unapply/Macro.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import scala.quoted.{ given _, _ }
1+
import scala.quoted._
22

33
inline def mcr(x: => Unit): Unit = ${mcrImpl('x)}
44
def mcrImpl(x: Expr[Unit])(using ctx: QuoteContext) : Expr[Unit] =

tests/pos/i7048e.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import scala.quoted.{given _, _}
1+
import scala.quoted._
22

33
abstract class Test {
44
type T

tests/pos/toexproftuple.scala

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

43
inline def mcr: Any = ${mcrImpl}
54
def mcrImpl(using ctx: QuoteContext): Expr[Any] = {

tests/run-macros/i6765-b/Macro_1.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.{given _}
32

43
inline def foo = ${fooImpl}
54

tests/run-macros/i6765-c/Macro_1.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.{given _}
32

43
inline def foo(inline n: Int) = ${fooImpl('n)}
54

tests/run-macros/i6765/Macro_1.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.{given _}
32

43
inline def foo = ${fooImpl}
54

tests/run-macros/i7715/Macros_1.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import scala.quoted.{ given _, _ }
1+
import scala.quoted._
22

33
inline def mcr(e: => Any): Any = ${mcrImpl('e)}
44
def mcrImpl(e: Expr[Any])(using ctx: QuoteContext): Expr[Any] =

tests/run-macros/quote-toExprOfSeq/Macro_1.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.{given _}
32

43
inline def seq = ${fooImpl}
54

tests/run-staging/quote-function-applied-to.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.{given _}
32
import scala.quoted.staging._
43

54
object Test {

0 commit comments

Comments
 (0)