librustc: Remove legacy exports from the language. r=brson
This commit is contained in:
parent
040035cd08
commit
49472ec4c9
14 changed files with 75 additions and 387 deletions
|
|
@ -15,8 +15,6 @@
|
|||
|
||||
extern mod std;
|
||||
|
||||
export context;
|
||||
|
||||
struct arc_destruct<T> {
|
||||
_data: int,
|
||||
}
|
||||
|
|
@ -55,8 +53,8 @@ fn context_res() -> context_res {
|
|||
}
|
||||
}
|
||||
|
||||
type context = arc_destruct<context_res>;
|
||||
pub type context = arc_destruct<context_res>;
|
||||
|
||||
impl context {
|
||||
pub impl context {
|
||||
fn socket() { }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,22 +8,20 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
export rsrc;
|
||||
|
||||
fn foo(_x: i32) {
|
||||
}
|
||||
|
||||
struct rsrc {
|
||||
pub struct rsrc {
|
||||
x: i32,
|
||||
}
|
||||
|
||||
impl rsrc : Drop {
|
||||
pub impl rsrc : Drop {
|
||||
fn finalize(&self) {
|
||||
foo(self.x);
|
||||
}
|
||||
}
|
||||
|
||||
fn rsrc(x: i32) -> rsrc {
|
||||
pub fn rsrc(x: i32) -> rsrc {
|
||||
rsrc {
|
||||
x: x
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue