File tree Expand file tree Collapse file tree 5 files changed +13
-20
lines changed
branches/dist-snap/src/test Expand file tree Collapse file tree 5 files changed +13
-20
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
8
refs/heads/try2: a810c03263670238bccd64cabb12a23a46e3a278
9
9
refs/heads/incoming: e90142e536c150df0d9b4b2f11352152177509b5
10
- refs/heads/dist-snap: d4cc7db138a1e8f81d50c4b451f4a5c5c3f45f74
10
+ refs/heads/dist-snap: f8bd95589fceb893e5244f8f94e010a8b30f6529
11
11
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
12
12
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
13
13
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
Original file line number Diff line number Diff line change 1
1
mod kitties {
2
- #[ legacy_exports] ;
3
2
4
- struct cat {
5
- priv {
6
- mut meows : uint ,
7
- }
8
-
9
- how_hungry : int,
10
-
11
- }
3
+ pub struct cat {
4
+ priv mut meows : uint ,
5
+ how_hungry : int ,
6
+ }
12
7
13
8
impl cat {
14
- priv fn nap ( ) { for uint:: range( 1 u , 10000 u) |_i|{ } }
9
+ priv fn nap ( ) { for uint:: range( 1 , 10000 u) |_i|{ } }
15
10
}
16
11
17
- fn cat ( in_x : uint , in_y : int ) -> cat {
12
+ pub fn cat ( in_x : uint , in_y : int ) -> cat {
18
13
cat {
19
14
meows : in_x,
20
15
how_hungry : in_y
Original file line number Diff line number Diff line change 1
- // xfail-test
2
-
1
+ // xfail-test - #2093
3
2
fn let_in < T > ( x : T , f : fn ( T ) ) { }
4
3
5
4
fn main ( ) {
Original file line number Diff line number Diff line change 1
1
// error-pattern:attempted access of field `nap` on type
2
+ // xfail-test Cross-crate impl method privacy doesn't work
2
3
// xfail-fast
3
- // xfail-test
4
4
// aux-build:cci_class_5.rs
5
- use cci_class_5;
5
+ extern mod cci_class_5;
6
6
use cci_class_5:: kitties:: * ;
7
7
8
8
fn main ( ) {
9
- let nyan : cat = cat ( 52 u , 99 ) ;
9
+ let nyan : cat = cat ( 52 , 99 ) ;
10
10
nyan. nap ( ) ;
11
11
}
Original file line number Diff line number Diff line change 1
- // xfail-test
2
-
1
+ // xfail-test blk region isn't supported in the front-end
3
2
fn foo ( cond : bool ) {
4
3
// Here we will infer a type that uses the
5
4
// region of the if stmt then block, but in the scope:
6
5
let mut x; //~ ERROR foo
7
6
8
7
if cond {
9
- x = & [ 1 , 2 , 3 ] blk ;
8
+ x = & blk/ [ 1 , 2 , 3 ] ;
10
9
}
11
10
}
12
11
You can’t perform that action at this time.
0 commit comments