Skip to content

Commit fddee36

Browse files
committed
Resolve rebase conflicts
1 parent 0bcade9 commit fddee36

File tree

3 files changed

+10
-80
lines changed

3 files changed

+10
-80
lines changed

tests/neg-custom-args/captures/linear-buffer-2.check

Lines changed: 4 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -2,68 +2,47 @@
22
Separation failure: Illegal access to (buf : Buffer[Int]^), which was used as a prefix to consume method append
33
and therefore is no longer available.
44

5-
where: ^ refers to a fresh root capability in the type of parameter buf
5+
where: ^ refers to a fresh root capability classified as Unscoped in the type of parameter buf
66
11 | val buf1: Buffer[Int]^ = buf.append(1)
77
| ---
88
| The capability was consumed here.
99
12 | val buf2 = buf1.append(2) // OK
1010
13 | val buf3 = buf.append(3) // error
1111
| ^^^
12-
<<<<<<< HEAD
13-
| Separation failure: Illegal access to (buf : Buffer[Int]^), which was used as a prefix to consume method append
14-
| on line 11 and therefore is no longer available.
15-
|
16-
| where: ^ refers to a fresh root capability classified as Unscoped in the type of parameter buf
17-
=======
1812
| Then, it was used here
1913

20-
>>>>>>> 2ee70f2604 (Update checkfiles)
2114
-- Error: tests/neg-custom-args/captures/linear-buffer-2.scala:20:13 ---------------------------------------------------
2215
Separation failure: Illegal access to (buf1 : Buffer[Int]^), which was used as a prefix to consume method append
2316
and therefore is no longer available.
2417

25-
where: ^ refers to a fresh root capability in the type of value buf1
18+
where: ^ refers to a fresh root capability classified as Unscoped in the type of value buf1
2619
18 | if ??? then buf1.append(2) // OK
2720
| ----
2821
| The capability was consumed here.
2922
19 | else buf1.append(3) // OK
3023
20 | val buf3 = buf1.append(4) // error
3124
| ^^^^
32-
<<<<<<< HEAD
33-
|Separation failure: Illegal access to (buf1 : Buffer[Int]^), which was used as a prefix to consume method append
34-
|on line 18 and therefore is no longer available.
35-
|
36-
|where: ^ refers to a fresh root capability classified as Unscoped in the type of value buf1
37-
=======
3825
| Then, it was used here
3926

40-
>>>>>>> 2ee70f2604 (Update checkfiles)
4127
-- Error: tests/neg-custom-args/captures/linear-buffer-2.scala:28:13 ---------------------------------------------------
4228
Separation failure: Illegal access to (buf1 : Buffer[Int]^), which was used as a prefix to consume method append
4329
and therefore is no longer available.
4430

45-
where: ^ refers to a fresh root capability in the type of value buf1
31+
where: ^ refers to a fresh root capability classified as Unscoped in the type of value buf1
4632
25 | case 1 => buf1.append(2) // OK
4733
| ----
4834
| The capability was consumed here.
4935
26 | case 2 => buf1.append(2)
5036
27 | case _ => buf1.append(3)
5137
28 | val buf3 = buf1.append(4) // error
5238
| ^^^^
53-
<<<<<<< HEAD
54-
|Separation failure: Illegal access to (buf1 : Buffer[Int]^), which was used as a prefix to consume method append
55-
|on line 25 and therefore is no longer available.
56-
|
57-
|where: ^ refers to a fresh root capability classified as Unscoped in the type of value buf1
58-
=======
5939
| Then, it was used here
6040

61-
>>>>>>> 2ee70f2604 (Update checkfiles)
6241
-- Error: tests/neg-custom-args/captures/linear-buffer-2.scala:38:13 ---------------------------------------------------
6342
Separation failure: Illegal access to (buf1 : Buffer[Int]^), which was used as a prefix to consume method append
6443
and therefore is no longer available.
6544

66-
where: ^ refers to a fresh root capability in the type of value buf1
45+
where: ^ refers to a fresh root capability classified as Unscoped in the type of value buf1
6746
33 | case 1 => buf1.append(2) // OK
6847
| ----
6948
| The capability was consumed here.
@@ -73,15 +52,8 @@ where: ^ refers to a fresh root capability in the type of value buf1
7352
37 | case 5 => buf1.append(5)
7453
38 | val buf3 = buf1.append(4) // error
7554
| ^^^^
76-
<<<<<<< HEAD
77-
|Separation failure: Illegal access to (buf1 : Buffer[Int]^), which was used as a prefix to consume method append
78-
|on line 33 and therefore is no longer available.
79-
|
80-
|where: ^ refers to a fresh root capability classified as Unscoped in the type of value buf1
81-
=======
8255
| Then, it was used here
8356

84-
>>>>>>> 2ee70f2604 (Update checkfiles)
8557
-- Error: tests/neg-custom-args/captures/linear-buffer-2.scala:42:4 ----------------------------------------------------
8658
42 | buf.append(1) // error
8759
| ^^^

tests/neg-custom-args/captures/linear-buffer.check

Lines changed: 4 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -37,68 +37,47 @@
3737
Separation failure: Illegal access to (buf : Buffer[Int]^), which was passed as a consume parameter to method app
3838
and therefore is no longer available.
3939

40-
where: ^ refers to a fresh root capability in the type of parameter buf
40+
where: ^ refers to a fresh root capability classified as Unscoped in the type of parameter buf
4141
21 | val buf1: Buffer[Int]^ = app(buf, 1)
4242
| ---
4343
| The capability was consumed here.
4444
22 | val buf2 = app(buf1, 2) // OK
4545
23 | val buf3 = app(buf, 3) // error
4646
| ^^^
47-
<<<<<<< HEAD
48-
|Separation failure: Illegal access to (buf : Buffer[Int]^), which was passed as a consume parameter to method app
49-
|on line 21 and therefore is no longer available.
50-
|
51-
|where: ^ refers to a fresh root capability classified as Unscoped in the type of parameter buf
52-
=======
5347
| Then, it was used here
5448

55-
>>>>>>> 2ee70f2604 (Update checkfiles)
5649
-- Error: tests/neg-custom-args/captures/linear-buffer.scala:30:17 -----------------------------------------------------
5750
Separation failure: Illegal access to (buf1 : Buffer[Int]^), which was passed as a consume parameter to method app
5851
and therefore is no longer available.
5952

60-
where: ^ refers to a fresh root capability in the type of value buf1
53+
where: ^ refers to a fresh root capability classified as Unscoped in the type of value buf1
6154
28 | if ??? then app(buf1, 2) // OK
6255
| ----
6356
| The capability was consumed here.
6457
29 | else app(buf1, 3) // OK
6558
30 | val buf3 = app(buf1, 4) // error
6659
| ^^^^
67-
<<<<<<< HEAD
68-
|Separation failure: Illegal access to (buf1 : Buffer[Int]^), which was passed as a consume parameter to method app
69-
|on line 28 and therefore is no longer available.
70-
|
71-
|where: ^ refers to a fresh root capability classified as Unscoped in the type of value buf1
72-
=======
7360
| Then, it was used here
7461

75-
>>>>>>> 2ee70f2604 (Update checkfiles)
7662
-- Error: tests/neg-custom-args/captures/linear-buffer.scala:38:17 -----------------------------------------------------
7763
Separation failure: Illegal access to (buf1 : Buffer[Int]^), which was passed as a consume parameter to method app
7864
and therefore is no longer available.
7965

80-
where: ^ refers to a fresh root capability in the type of value buf1
66+
where: ^ refers to a fresh root capability classified as Unscoped in the type of value buf1
8167
35 | case 1 => app(buf1, 2) // OK
8268
| ----
8369
| The capability was consumed here.
8470
36 | case 2 => app(buf1, 2)
8571
37 | case _ => app(buf1, 3)
8672
38 | val buf3 = app(buf1, 4) // error
8773
| ^^^^
88-
<<<<<<< HEAD
89-
|Separation failure: Illegal access to (buf1 : Buffer[Int]^), which was passed as a consume parameter to method app
90-
|on line 35 and therefore is no longer available.
91-
|
92-
|where: ^ refers to a fresh root capability classified as Unscoped in the type of value buf1
93-
=======
9474
| Then, it was used here
9575

96-
>>>>>>> 2ee70f2604 (Update checkfiles)
9776
-- Error: tests/neg-custom-args/captures/linear-buffer.scala:48:17 -----------------------------------------------------
9877
Separation failure: Illegal access to (buf1 : Buffer[Int]^), which was passed as a consume parameter to method app
9978
and therefore is no longer available.
10079

101-
where: ^ refers to a fresh root capability in the type of value buf1
80+
where: ^ refers to a fresh root capability classified as Unscoped in the type of value buf1
10281
43 | case 1 => app(buf1, 2) // OK
10382
| ----
10483
| The capability was consumed here.
@@ -108,15 +87,8 @@ where: ^ refers to a fresh root capability in the type of value buf1
10887
47 | case 5 => app(buf1, 5)
10988
48 | val buf3 = app(buf1, 4) // error
11089
| ^^^^
111-
<<<<<<< HEAD
112-
|Separation failure: Illegal access to (buf1 : Buffer[Int]^), which was passed as a consume parameter to method app
113-
|on line 43 and therefore is no longer available.
114-
|
115-
|where: ^ refers to a fresh root capability classified as Unscoped in the type of value buf1
116-
=======
11790
| Then, it was used here
11891

119-
>>>>>>> 2ee70f2604 (Update checkfiles)
12092
-- Error: tests/neg-custom-args/captures/linear-buffer.scala:52:8 ------------------------------------------------------
12193
52 | app(buf, 1) // error
12294
| ^^^

tests/neg-custom-args/captures/sep-consume.check

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,42 +7,28 @@
77
Separation failure: Illegal access to (x : Ref^), which was passed as a consume parameter to method bad
88
and therefore is no longer available.
99

10-
where: ^ refers to a fresh root capability in the type of parameter x
10+
where: ^ refers to a fresh root capability classified as Unscoped in the type of parameter x
1111
18 | val rx: () => Unit = bad(f) // hides x.rd in the resulting `cap`
1212
| -
1313
| The capability was consumed here.
1414
19 | x.put(42) // error
1515
| ^
16-
<<<<<<< HEAD
17-
| Separation failure: Illegal access to (x : Ref^), which was passed as a consume parameter to method bad
18-
| on line 18 and therefore is no longer available.
19-
|
20-
| where: ^ refers to a fresh root capability classified as Unscoped in the type of parameter x
21-
=======
2216
| Then, it was used here
2317

24-
>>>>>>> 2ee70f2604 (Update checkfiles)
2518
-- Error: tests/neg-custom-args/captures/sep-consume.scala:21:16 -------------------------------------------------------
2619
Separation failure: Illegal access to (x : Ref^), which was passed as a consume parameter to method bad
2720
and therefore is no longer available.
2821

29-
where: ^ refers to a fresh root capability in the type of parameter x
22+
where: ^ refers to a fresh root capability classified as Unscoped in the type of parameter x
3023
18 | val rx: () => Unit = bad(f) // hides x.rd in the resulting `cap`
3124
| -
3225
| The capability was consumed here.
3326
19 | x.put(42) // error
3427
20 | x.get // ok rd/rd
3528
21 | par(rx, () => x.put(42)) // error
3629
| ^
37-
<<<<<<< HEAD
38-
| Separation failure: Illegal access to (x : Ref^), which was passed as a consume parameter to method bad
39-
| on line 18 and therefore is no longer available.
40-
|
41-
| where: ^ refers to a fresh root capability classified as Unscoped in the type of parameter x
42-
=======
4330
| Then, it was used here
4431

45-
>>>>>>> 2ee70f2604 (Update checkfiles)
4632
-- Error: tests/neg-custom-args/captures/sep-consume.scala:26:16 -------------------------------------------------------
4733
26 | def foo = bad(f) // error
4834
| ^

0 commit comments

Comments
 (0)