From 34a3f7fe6416203475d2a0ed45512dd28cfdcf9d Mon Sep 17 00:00:00 2001 From: eugene yokota Date: Tue, 9 Mar 2021 11:55:29 -0500 Subject: [PATCH] Use fully qualified name in the macro --- .../src/main/scala/sbt/internal/util/appmacro/Instance.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core-macros/src/main/scala/sbt/internal/util/appmacro/Instance.scala b/core-macros/src/main/scala/sbt/internal/util/appmacro/Instance.scala index c9aaa691c..35e2d7dc6 100644 --- a/core-macros/src/main/scala/sbt/internal/util/appmacro/Instance.scala +++ b/core-macros/src/main/scala/sbt/internal/util/appmacro/Instance.scala @@ -201,7 +201,7 @@ object Instance { val tx = util.transformWrappers(tree, (n, tpe, t, replace) => sub(n, tpe, t, replace)) // resetting attributes must be: a) local b) done here and not wider or else there are obscure errors val tr = makeApp(inner(tx)) - val noWarn = q"""($tr: @scala.annotation.nowarn("cat=other-pure-statement"))""" + val noWarn = q"""($tr: @_root_.scala.annotation.nowarn("cat=other-pure-statement"))""" c.Expr[i.M[N[T]]](noWarn) }