Skip to content

Commit 75db82f

Browse files
committed
Polishings
1 parent ccf6948 commit 75db82f

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

compiler/src/dotty/tools/dotc/ast/untpd.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ object untpd extends Trees.Instance[Untyped] with UntypedTreeInfo {
154154
enum GenCheckMode {
155155
case Ignore // neither filter nor check since filtering was done before
156156
case Check // check that pattern is irrefutable
157-
case FilterNow //filter out non-matching elements since we are not yet in 3.1
157+
case FilterNow // filter out non-matching elements since we are not yet in 3.1
158158
case FilterAlways // filter out non-matching elements since pattern is prefixed by `case`
159159
}
160160

compiler/src/dotty/tools/dotc/parsing/Parsers.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1891,7 +1891,7 @@ object Parsers {
18911891
case DO =>
18921892
ctx.errorOrMigrationWarning(
18931893
i"""`do <body> while <cond>` is no longer supported,
1894-
|use `while <body> ; <cond>} do ()` instead.${rewriteNotice()}""",
1894+
|use `while <body> ; <cond> do ()` instead.${rewriteNotice()}""",
18951895
in.sourcePos())
18961896
val start = in.skipToken()
18971897
atSpan(start) {

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,7 @@ class ImportInfo(symf: Context ?=> Symbol,
174174
private var myOwner: Symbol = null
175175
private var myResults: SimpleIdentityMap[TermName, java.lang.Boolean] = SimpleIdentityMap.Empty
176176

177-
/** Does this import clause or a preceding import clause import `owner.feature`?
178-
* if `feature` is empty, we are looking for a source designator instead.
179-
*/
177+
/** Does this import clause or a preceding import clause import `owner.feature`? */
180178
def featureImported(feature: TermName, owner: Symbol)(using Context): Boolean =
181179

182180
def compute =

0 commit comments

Comments
 (0)