File tree Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
5
5
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
- refs/heads/try2: 89a7407c999449c56f9b00145cfbdfbb49fbde7c
8
+ refs/heads/try2: e7f42f140b8d2271888f97ba62c5e0570032b6e5
9
9
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
10
10
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
11
11
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
Original file line number Diff line number Diff line change @@ -414,6 +414,11 @@ pub fn write_content(bcx: block,
414
414
return bcx;
415
415
}
416
416
417
+ // Some cleanup would be required in the case in which failure happens
418
+ // during a copy. But given that copy constructors are not overridable,
419
+ // this can only happen as a result of OOM. So we just skip out on the
420
+ // cleanup since things would *probably* be broken at that point anyways.
421
+
417
422
let elem = unpack_datum ! ( bcx, {
418
423
expr:: trans_to_datum( bcx, element)
419
424
} ) ;
Original file line number Diff line number Diff line change 9
9
// except according to those terms.
10
10
11
11
pub fn main( ) {
12
+ struct Foo { a : ~str }
13
+
14
+ let v = [ ~Foo { a : ~"Hello !" }, ..129 ];
15
+ let w = [ ~" Hello !", ..129 ];
12
16
let x = [ @[true], ..512 ];
13
17
let y = [ 0, ..1 ];
18
+
19
+ error!(" %?", v) ;
20
+ error!( "%?", w) ;
14
21
error!( "%?", x) ;
15
22
error!( "%?", y) ;
16
23
}
You can’t perform that action at this time.
0 commit comments