File tree 1 file changed +17
-17
lines changed
compiler/src/dotty/tools/dotc/transform
1 file changed +17
-17
lines changed Original file line number Diff line number Diff line change @@ -733,10 +733,10 @@ object TreeChecker {
733
733
if nowDefinedSyms.contains(tree.symbol.maybeOwner) then
734
734
super .assertDefined(tree)
735
735
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
740
740
}
741
741
742
742
def checkMacroGeneratedTree (original : tpd.Tree , expansion : tpd.Tree )(using Context ): Unit =
@@ -753,19 +753,19 @@ object TreeChecker {
753
753
catch
754
754
case err : java.lang.AssertionError =>
755
755
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
+ | """ ,
769
769
original
770
770
)
771
771
You can’t perform that action at this time.
0 commit comments