Skip to content

Commit 0d80c80

Browse files
Merge pull request #8546 from dotty-staging/simplify-autolift-import
Simplify quoted.autolift import
2 parents b5b50bc + 7648055 commit 0d80c80

File tree

80 files changed

+81
-84
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+81
-84
lines changed

docs/docs/reference/metaprogramming/macros.md

Lines changed: 1 addition & 1 deletion
Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
package scala.quoted
22

3-
/** Enable implicit conversion from a term of type `T` to an expression of type `Expr[T]` */
4-
object autolift {
5-
/** Implicit conversion from a term of type `T` to an expression of type `Expr[T]` */
6-
given autoToExpr[T](using Liftable[T], QuoteContext) as Conversion[T, Expr[T]] = Expr(_)
7-
}
3+
/** Implicit conversion from a term of type `T` to an expression of type `Expr[T]` */
4+
given autolift[T](using Liftable[T], QuoteContext) as Conversion[T, Expr[T]] = Expr(_)

tests/disabled/neg-with-compiler/quote-run-in-macro-2/quoted_1.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import scala.quoted._
2-
import scala.quoted.autolift.{given _}
2+
import scala.quoted.autolift
33

44
object Macros {
55

tests/disabled/run/xml-interpolation-3/XmlQuote_1.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import scala.quoted._
22
import scala.tasty.Tasty
3-
import scala.quoted.autolift.{given _}
3+
import scala.quoted.autolift
44

55
import scala.language.implicitConversions
66

tests/neg-macros/i6432/Macro_1.scala

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

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

55

66
object Macro {

tests/neg-macros/i6432b/Macro_1.scala

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

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

55

66
object Macro {

tests/neg-macros/inline-macro-staged-interpreter/Macro_1.scala

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

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

55

66
object E {

tests/neg-macros/inline-tuples-1/Macro_1.scala

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

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

55
object Macros {
66
def tup1(tup: Expr[Tuple1[Int]]) (using QuoteContext): Expr[Int] = tup.unliftOrError.productIterator.map(_.asInstanceOf[Int]).sum

tests/neg-macros/quote-interpolator-core-old.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import scala.quoted._
2-
import scala.quoted.autolift.{given _}
2+
import scala.quoted.autolift
33

44
// This test checks the correct interpretation of the inlined value class
55

0 commit comments

Comments
 (0)