Skip to content

Commit 4e9ebec

Browse files
committed
Avoid double blank line in front of error notes
1 parent 3bc3d2f commit 4e9ebec

20 files changed

+0
-29
lines changed

compiler/src/dotty/tools/dotc/cc/CheckCaptures.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1300,7 +1300,6 @@ class CheckCaptures extends Recheck, SymTransformer:
13001300
i"""the existential capture root in ${ex.originalBinder.resType}
13011301
|cannot subsume the capability $other$since"""
13021302
i"""
1303-
|
13041303
|Note that ${msg.toString}"""
13051304

13061305

tests/neg-custom-args/captures/cc-existential-conformance.check

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
| where: ^ refers to a fresh root capability in the type of value y
2020
| ^² refers to a root capability associated with the result type of (x: A): B^²
2121
|
22-
|
2322
| Note that the existential capture root in B^
2423
| cannot subsume the capability cap
2524
|
@@ -45,7 +44,6 @@
4544
| where: ^ refers to a fresh root capability in the type of value y
4645
| ^² refers to a root capability associated with the result type of (x: A): B^²
4746
|
48-
|
4947
| Note that the existential capture root in B^
5048
| cannot subsume the capability cap
5149
|

tests/neg-custom-args/captures/effect-swaps-explicit.check

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
|where: ?=> refers to a fresh root capability created in method fail4 when checking argument to parameter body of method make
2525
| ^ refers to the universal root capability
2626
|
27-
|
2827
|Note that reference contextual$9.type
2928
|cannot be included in outer capture set ?
3029
70 | fr.await.ok

tests/neg-custom-args/captures/effect-swaps.check

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
|where: ?=> refers to a fresh root capability created in method fail4 when checking argument to parameter body of method make
2525
| cap is the universal root capability
2626
|
27-
|
2827
|Note that reference contextual$9.type
2928
|cannot be included in outer capture set ?
3029
70 | fr.await.ok

tests/neg-custom-args/captures/erased-methods2.check

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
| ?=>² refers to a root capability associated with the result type of (using erased x$1: CT[Ex3]^): (erased x$2: CT[Ex2]^) ?=>² Unit
99
| ^ refers to the universal root capability
1010
|
11-
|
1211
|Note that the existential capture root in (erased x$2: CT[Ex2]^) ?=> Unit
1312
|cannot subsume the capability x$1.type since that capability is not a SharedCapability
1413
21 | ?=> (x$2: CT[Ex2]^)
@@ -28,7 +27,6 @@
2827
| ?=>³ refers to a root capability associated with the result type of (using erased x$1: CT[Ex2]^): (erased x$2: CT[Ex1]^) ?=>³ Unit
2928
| ^ refers to the universal root capability
3029
|
31-
|
3230
|Note that the existential capture root in (erased x$1: CT[Ex2]^) ?=> (erased x$2: CT[Ex1]^) ?=> Unit
3331
|cannot subsume the capability x$1.type since that capability is not a SharedCapability
3432
32 | ?=> (erased x$2: CT[Ex2]^)

tests/neg-custom-args/captures/filevar.check

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
|where: => refers to a root capability associated with the result type of (using l: scala.caps.Capability^{cap.rd}): (f: File^{l}) => Unit
88
| cap is the universal root capability
99
|
10-
|
1110
|Note that reference l.type
1211
|cannot be included in outer capture set ? of parameter f
1312
16 | val o = Service()

tests/neg-custom-args/captures/heal-tparam-cs.check

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
|where: => refers to a fresh root capability created in value test1 when checking argument to parameter op of method localCap
88
| ^ refers to the universal root capability
99
|
10-
|
1110
|Note that reference c.type
1211
|cannot be included in outer capture set ?
1312
11 | () => { c.use() }
@@ -23,7 +22,6 @@
2322
| where: => refers to a root capability associated with the result type of (c: Capp^): () => Unit
2423
| ^ refers to the universal root capability
2524
|
26-
|
2725
| Note that the existential capture root in () => Unit
2826
| cannot subsume the capability x$0.type since that capability is not a SharedCapability
2927
16 | (c1: Capp^) => () => { c1.use() }

tests/neg-custom-args/captures/i15923.check

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
| cap is the universal root capability
99
| cap² is a root capability associated with the result type of (x$0: Cap^{lcap}): box Id[box Cap^{cap².rd}]^?
1010
|
11-
|
1211
|Note that reference <cap of (x$0: Cap^{lcap}): box Id[box Cap^{cap.rd}]^?>.rd
1312
|cannot be included in outer capture set ?
1413
|

tests/neg-custom-args/captures/i15923a.check

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
| ^ refers to the universal root capability
1010
| ^² refers to a root capability associated with the result type of (): box Id[box Cap^²]^?
1111
|
12-
|
1312
|Note that reference <cap of (): box Id[box Cap^]^?>
1413
|cannot be included in outer capture set ?
1514
|

tests/neg-custom-args/captures/i15923b.check

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
|where: => refers to a fresh root capability created in value leak when checking argument to parameter op of method withCap
88
| ^ refers to the universal root capability
99
|
10-
|
1110
|Note that reference lcap.type
1211
|cannot be included in outer capture set ?
1312
|

0 commit comments

Comments
 (0)