Skip to content

Commit 2ef4a2d

Browse files
committed
wip
1 parent 4c276ce commit 2ef4a2d

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

compiler/src/dotty/tools/dotc/transform/TreeChecker.scala

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -733,10 +733,10 @@ object TreeChecker {
733733
if nowDefinedSyms.contains(tree.symbol.maybeOwner) then
734734
super.assertDefined(tree)
735735

736-
override def checkNoOrphans(tp0: Type, tree: untpd.Tree = untpd.EmptyTree)(using Context): Type =
737-
// TODO: Is this fails on tests/run-macros/quoted-ToExpr-derivation-macro.
738-
// Is this a bug?
739-
tp0 // Do not check for orphans
736+
// override def checkNoOrphans(tp0: Type, tree: untpd.Tree = untpd.EmptyTree)(using Context): Type =
737+
// // TODO: Is this fails on tests/run-macros/quoted-ToExpr-derivation-macro.
738+
// // Is this a bug?
739+
// tp0 // Do not check for orphans
740740
}
741741

742742
def checkMacroGeneratedTree(original: tpd.Tree, expansion: tpd.Tree)(using Context): Unit =
@@ -753,19 +753,19 @@ object TreeChecker {
753753
catch
754754
case err: java.lang.AssertionError =>
755755
report.error(
756-
em"""Malformed tree was found while expanding macro with -Xcheck-macros.
757-
|The tree does not conform to the compiler's tree invariants.
758-
|
759-
|Macro was:
760-
|${original}
761-
|
762-
|The macro returned:
763-
|${expansion}
764-
|
765-
|Error:
766-
|${err.getMessage}
767-
|
768-
|""",
756+
s"""Malformed tree was found while expanding macro with -Xcheck-macros.
757+
|The tree does not conform to the compiler's tree invariants.
758+
|
759+
|Macro was:
760+
|${scala.quoted.runtime.impl.QuotesImpl.showDecompiledTree(original)}
761+
|
762+
|The macro returned:
763+
|${scala.quoted.runtime.impl.QuotesImpl.showDecompiledTree(expansion)}
764+
|
765+
|Error:
766+
|${err.getMessage}
767+
|
768+
|""",
769769
original
770770
)
771771

0 commit comments

Comments
 (0)