Skip to content

Commit 0937563

Browse files
committed
Also perform change in error messages
1 parent 9d36dd1 commit 0937563

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

compiler/src/dotty/tools/dotc/core/TypeErrors.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ extends TypeError:
117117
em"""Recursion limit exceeded.
118118
|Maybe there is an illegal cyclic reference?
119119
|If that's not the case, you could also try to increase the stacksize using the -Xss JVM option.
120-
|For the unprocessed stack trace, compile with -Xno-decode-stacktraces.
120+
|For the unprocessed stack trace, compile with Xno-enrich-error-messages.
121121
|A recurring operation is (inner to outer):
122122
|${opsString(mostCommon).stripMargin}"""
123123

compiler/src/dotty/tools/dotc/core/tasty/TreePickler.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -941,7 +941,7 @@ class TreePickler(pickler: TastyPickler, attributes: Attributes) {
941941
em"""Recursion limit exceeded while pickling ${ex.mdef}
942942
|in ${ex.mdef.symbol.showLocated}.
943943
|You could try to increase the stacksize using the -Xss JVM option.
944-
|For the unprocessed stack trace, compile with -Xno-decode-stacktraces.""",
944+
|For the unprocessed stack trace, compile with -Xno-enrich-error-messages.""",
945945
ex.mdef.srcPos)
946946

947947
def missing = forwardSymRefs.keysIterator

tests/neg/i2887b.check

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
| Recursion limit exceeded.
55
| Maybe there is an illegal cyclic reference?
66
| If that's not the case, you could also try to increase the stacksize using the -Xss JVM option.
7-
| For the unprocessed stack trace, compile with -Xno-decode-stacktraces.
7+
| For the unprocessed stack trace, compile with Xno-enrich-error-messages.
88
| A recurring operation is (inner to outer):
99
|
1010
| try to instantiate Z[Z]

0 commit comments

Comments
 (0)