Skip to content

Commit 2b40b59

Browse files
committed
---
yaml --- r: 93023 b: refs/heads/auto c: 65d55af h: refs/heads/master i: 93021: 043b4a9 93019: d1b341e 93015: 2bc0833 93007: fda8bdd 92991: ce61a86 v: v3
1 parent 62738e7 commit 2b40b59

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1313
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1414
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1515
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
16-
refs/heads/auto: 179c054631c2b7aa6894c327698090e028def4ac
16+
refs/heads/auto: 65d55afd2f94cb6cd8d66e767a52bc99a1569341
1717
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1818
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1919
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/src/test/compile-fail/borrowck-assign-to-subfield.rs renamed to branches/auto/src/test/run-pass/borrowck-assign-to-subfield.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,17 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#[feature(managed_boxes)];
12-
1311
fn main() {
1412
struct A {
1513
a: int,
1614
w: B,
17-
x: @B,
18-
z: @mut B
1915
}
2016
struct B {
2117
a: int
2218
}
2319
let mut p = A {
2420
a: 1,
2521
w: B {a: 1},
26-
x: @B {a: 1},
27-
z: @mut B {a: 1}
2822
};
2923

3024
// even though `x` is not declared as a mutable field,
@@ -33,9 +27,4 @@ fn main() {
3327

3428
// this is true for an interior field too
3529
p.w.a = 2;
36-
37-
// in these cases we pass through a box, so the mut
38-
// of the box is dominant
39-
p.x.a = 2; //~ ERROR cannot assign to immutable field
40-
p.z.a = 2;
4130
}

0 commit comments

Comments
 (0)