librustc: Remove pub extern and priv extern from the language.
Place `pub` or `priv` on individual items instead.
This commit is contained in:
parent
bb8ca1f52c
commit
06594ed96b
85 changed files with 818 additions and 694 deletions
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
mod test {
|
||||
#[abi = "cdecl"]
|
||||
pub extern {
|
||||
extern {
|
||||
pub unsafe fn free();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
#[deny(unused_unsafe)];
|
||||
|
||||
mod foo {
|
||||
pub extern {
|
||||
extern {
|
||||
pub fn bar();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue