librustc: Disallow "unsafe" for external functions
This commit is contained in:
parent
887c656970
commit
9457ebee55
36 changed files with 1709 additions and 1829 deletions
|
|
@ -119,7 +119,7 @@ fn main() {
|
|||
|
||||
foreach y in range(0, 256) {
|
||||
foreach x in range(0, 256) {
|
||||
print((symbols[pixels[y*256+x] / 0.2f32) as int]);
|
||||
print(symbols[(pixels[y*256+x] / 0.2f32) as int]);
|
||||
}
|
||||
println("");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
mod test {
|
||||
#[abi = "cdecl"]
|
||||
extern {
|
||||
pub unsafe fn free();
|
||||
pub fn free();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
extern {
|
||||
pub unsafe fn free(p: *u8);
|
||||
pub fn free(p: *u8);
|
||||
}
|
||||
|
||||
pub fn main() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue