File tree Expand file tree Collapse file tree 4 files changed +28
-2
lines changed Expand file tree Collapse file tree 4 files changed +28
-2
lines changed Original file line number Diff line number Diff line change @@ -381,11 +381,13 @@ TASK_XFAILS := test/run-pass/acyclic-unwind.rs \
381
381
test/run-pass/task-comm-9.rs \
382
382
test/run-pass/task-comm.rs \
383
383
test/run-pass/threads.rs \
384
- test/run-pass/yield.rs
384
+ test/run-pass/yield.rs
385
385
386
386
TEST_XFAILS_X86 := $(TASK_XFAILS ) \
387
387
test/run-pass/bind-obj-ctor.rs \
388
+ test/run-pass/child-outlives-parent.rs \
388
389
test/run-pass/clone-with-exterior.rs \
390
+ test/run-pass/constrained-type.rs \
389
391
test/run-pass/obj-as.rs \
390
392
test/run-pass/vec-slice.rs \
391
393
test/run-pass/fn-lval.rs \
@@ -424,10 +426,12 @@ TEST_XFAILS_LLVM := $(TASK_XFAILS) \
424
426
box-in-tup.rs \
425
427
box-unbox.rs \
426
428
cast.rs \
429
+ child-outlives-parent.rs \
427
430
clone-with-exterior.rs \
428
431
comm.rs \
429
432
command-line-args.rs \
430
433
complex.rs \
434
+ constrained-type.rs \
431
435
deep.rs \
432
436
deref.rs \
433
437
destructor-ordering.rs \
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ and parse_carg_base (ps:pstate) : Ast.carg_base =
121
121
122
122
and parse_carg (ps :pstate ) : Ast.carg =
123
123
match peek ps with
124
- IDENT _ ->
124
+ IDENT _ | STAR ->
125
125
begin
126
126
let base = Ast. CARG_base (parse_carg_base ps) in
127
127
let path =
Original file line number Diff line number Diff line change
1
+ // Reported as issue #126, child leaks the string.
2
+
3
+ fn child2 ( str s) {
4
+ }
5
+
6
+ fn main ( ) {
7
+ auto x = spawn child2 ( "hi" ) ;
8
+ }
Original file line number Diff line number Diff line change
1
+ // -*- rust -*-
2
+
3
+ // Reported as issue #141, as a parse error. Ought to work in full though.
4
+
5
+ type list = tag ( cons( int, @list) , nil ( ) ) ;
6
+ type bubu = rec ( int x, int y) ;
7
+
8
+
9
+ fn less_than ( int x, int y) -> bool { ret x < y; }
10
+
11
+ type ordered_range = rec ( int low, int high ) : less_than ( * . low , * . high ) ;
12
+
13
+ fn main ( ) {
14
+ }
You can’t perform that action at this time.
0 commit comments