Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2a65842

Browse files
committedJan 30, 2013
test: De-export aux, bench, compile-fail, and run-fail. rs=deexporting
1 parent 77f2aac commit 2a65842

File tree

85 files changed

+218
-409
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+218
-409
lines changed
 

‎src/test/auxiliary/cci_borrow_lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#[legacy_exports];
12-
13-
fn foo(x: &uint) -> uint {
11+
pub fn foo(x: &uint) -> uint {
1412
*x
1513
}

‎src/test/auxiliary/cci_class.rs

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

11-
#[legacy_exports];
12-
mod kitties {
13-
#[legacy_exports];
11+
pub mod kitties {
12+
pub struct cat {
13+
priv mut meows : uint,
1414

15-
struct cat {
16-
priv mut meows : uint,
17-
18-
how_hungry : int,
19-
20-
}
15+
how_hungry : int,
16+
}
2117

22-
fn cat(in_x : uint, in_y : int) -> cat {
18+
pub fn cat(in_x : uint, in_y : int) -> cat {
2319
cat {
2420
meows: in_x,
2521
how_hungry: in_y
2622
}
2723
}
28-
2924
}

0 commit comments

Comments
 (0)
Please sign in to comment.