librustc: Remove pub extern and priv extern from the language.

Place `pub` or `priv` on individual items instead.
This commit is contained in:
Patrick Walton 2013-07-18 19:08:57 -07:00
parent bb8ca1f52c
commit 06594ed96b
85 changed files with 818 additions and 694 deletions

View file

@ -12,7 +12,7 @@
mod test {
#[abi = "cdecl"]
pub extern {
extern {
pub unsafe fn free();
}
}

View file

@ -13,7 +13,7 @@
#[deny(unused_unsafe)];
mod foo {
pub extern {
extern {
pub fn bar();
}
}

View file

@ -10,7 +10,7 @@
//error-pattern:libc::c_int or libc::c_long should be used
mod xx {
pub extern {
extern {
pub fn strlen(str: *u8) -> uint;
pub fn foo(x: int, y: uint);
}