Skip to content

Commit 91bd5df

Browse files
committed
Drop Label_this and fix comments referring to it
1 parent a17a6df commit 91bd5df

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,6 @@ object StdNames {
357357
val Flag : N = "Flag"
358358
val Ident: N = "Ident"
359359
val Import: N = "Import"
360-
val Label_this: N = "Label_this"
361360
val Literal: N = "Literal"
362361
val LiteralAnnotArg: N = "LiteralAnnotArg"
363362
val Matchable: N = "Matchable"

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,10 +218,10 @@ class DropBreaks extends MiniPhase:
218218
*
219219
* return[target] arg
220220
*
221-
* where `target` is the `goto` return label associated with `local`.
221+
* where `target` is the `goto` return label associated with `lbl`.
222222
* Adjust associated ref counts accordingly. The local refcount is increased
223-
* and the non-local refcount is decreased, since `local` the `Label_this`
224-
* binding containing `local` is dropped.
223+
* and the non-local refcount is decreased, since the `lbl` implicit argument
224+
* to `break` is dropped.
225225
*/
226226
override def transformApply(tree: Apply)(using Context): Tree =
227227
if enclosingBoundaries == 0 then tree

0 commit comments

Comments
 (0)