Skip to content

Commit 8c9a021

Browse files
committed
Relocate orphaned doc comment
1 parent 96ac286 commit 8c9a021

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

compiler/src/dotty/tools/dotc/typer/ErrorReporting.scala

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -153,11 +153,6 @@ object ErrorReporting {
153153
|
154154
|The tests were made under $constraintText"""
155155

156-
/** Format `raw` implicitNotFound or implicitAmbiguous argument, replacing
157-
* all occurrences of `${X}` where `X` is in `paramNames` with the
158-
* corresponding shown type in `args`.
159-
*/
160-
161156
def rewriteNotice: String =
162157
if Feature.migrateTo3 then "\nThis patch can be inserted automatically under -rewrite."
163158
else ""
@@ -285,6 +280,10 @@ class ImplicitSearchError(
285280
}
286281
}
287282

283+
/** Format `raw` implicitNotFound or implicitAmbiguous argument, replacing
284+
* all occurrences of `${X}` where `X` is in `paramNames` with the
285+
* corresponding shown type in `args`.
286+
*/
288287
private def userDefinedErrorString(raw: String, paramNames: List[String], args: List[Type]): String = {
289288
def translate(name: String): Option[String] = {
290289
val idx = paramNames.indexOf(name)

0 commit comments

Comments
 (0)