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
|

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
| =>³ refers to a fresh root capability in the result type of method mapd
2222
| ^ refers to a root capability associated with the result type of (ref: LazyRef[A]^{io}, f: A => B): LazyRef[B]^
2323
|
24-
|
2524
|Note that the existential capture root in LazyRef[B]^
2625
|cannot subsume the capability f1.type since that capability is not a SharedCapability
2726
|

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
|where: => refers to a fresh root capability created in method mkLoggers2 when checking argument to parameter f of method map
1717
| cap is a root capability associated with the result type of (_$1: box File^{files*}): box Logger{val f: File^{_$1}}^{cap.rd, _$1}
1818
|
19-
|
2019
|Note that reference <cap of (_$1: box File^{files*}): box Logger{val f: File^?}^?>.rd
2120
|cannot be included in outer capture set ?
2221
|

tests/neg-custom-args/captures/i21920.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 cell when checking argument to parameter f of method open
88
| ^ refers to the universal root capability
99
|
10-
|
1110
|Note that reference <cap of (): IterableOnce[box File^?]^>
1211
|cannot be included in outer capture set ?
1312
|

tests/neg-custom-args/captures/leaking-iterators.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 method test when checking argument to parameter op of method usingLogFile
88
| ^ refers to the universal root capability
99
|
10-
|
1110
|Note that reference log.type
1211
|cannot be included in outer capture set ?
1312
57 | xs.iterator.map: x =>

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@
8686
| where: ^ refers to the universal root capability
8787
| ^² refers to a root capability associated with the result type of (x: File^): File^²
8888
|
89-
|
9089
| Note that the existential capture root in File^
9190
| cannot subsume the capability x.type since that capability is not a SharedCapability
9291
|

tests/neg-custom-args/captures/scoped-caps.check

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
| ^² refers to a fresh root capability in the type of value g
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
|
@@ -54,7 +53,6 @@
5453
| where: ^ refers to the universal root capability
5554
| ^² refers to a root capability associated with the result type of (x: A^): B^²
5655
|
57-
|
5856
| Note that the existential capture root in B^
5957
| cannot subsume the capability x.type since that capability is not a SharedCapability
6058
|
@@ -69,7 +67,6 @@
6967
| ^² refers to a root capability associated with the result type of (x: S^{cap.rd}): B^²
7068
| cap is the universal root capability
7169
|
72-
|
7370
| Note that the existential capture root in B^
7471
| cannot subsume the capability cap
7572
|

tests/neg-custom-args/captures/simple-using.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 method test when checking argument to parameter op of method usingLogFile
88
| ^ refers to the universal root capability
99
|
10-
|
1110
|Note that reference f.type
1211
|cannot be included in outer capture set ?
1312
|

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
|where: => refers to a fresh root capability created in value xx when checking argument to parameter op of method handle
4040
| ^ refers to the universal root capability
4141
|
42-
|
4342
|Note that reference x.type
4443
|cannot be included in outer capture set ?
4544
36 | (x: CanThrow[Exception]) =>
@@ -58,7 +57,6 @@
5857
|where: => refers to a fresh root capability created in value global when checking argument to parameter op of method handle
5958
| ^ refers to the universal root capability
6059
|
61-
|
6260
|Note that reference x.type
6361
|cannot be included in outer capture set ?
6462
48 | (x: CanThrow[Exception]) =>

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
|where: => refers to a fresh root capability created in value later when checking argument to parameter op of method usingLogFile
88
| ^ refers to the universal root capability
99
|
10-
|
1110
|Note that reference f.type
1211
|cannot be included in outer capture set ?
1312
|
@@ -21,7 +20,6 @@
2120
|where: => refers to a fresh root capability created in value later2 when checking argument to parameter op of method usingLogFile
2221
| ^ refers to the universal root capability
2322
|
24-
|
2523
|Note that reference f.type
2624
|cannot be included in outer capture set ?
2725
|
@@ -35,7 +33,6 @@
3533
|where: => refers to a fresh root capability created in value later when checking argument to parameter op of method usingFile
3634
| ^ refers to the universal root capability
3735
|
38-
|
3936
|Note that reference f.type
4037
|cannot be included in outer capture set ?
4138
|
@@ -49,7 +46,6 @@
4946
|where: => refers to a fresh root capability created in value later when checking argument to parameter op of method usingFile
5047
| ^ refers to the universal root capability
5148
|
52-
|
5349
|Note that reference _$1.type
5450
|cannot be included in outer capture set ?
5551
|

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
|
2828
| where: ^ refers to the universal root capability
2929
|
30-
|
3130
| Note that reference cap3.type
3231
| cannot be included in outer capture set ?
3332
37 | def g(x: String): String = if cap3 == cap3 then "" else "a"

0 commit comments

Comments
 (0)