Propagating unsafe::slice 4
This commit is contained in:
parent
fceec03da0
commit
c71667d9d2
@ -2,8 +2,8 @@
|
||||
use std;
|
||||
import str::*;
|
||||
|
||||
fn main() {
|
||||
fn main() unsafe {
|
||||
let a: uint = 4u;
|
||||
let b: uint = 1u;
|
||||
log(error, safe_slice("kitties", a, b));
|
||||
log(error, str::unsafe::safe_slice("kitties", a, b));
|
||||
}
|
||||
|
@ -3,7 +3,7 @@ use std;
|
||||
import str::*;
|
||||
import uint::*;
|
||||
|
||||
fn main() {
|
||||
fn main() unsafe {
|
||||
let a: uint = 1u;
|
||||
let b: uint = 4u;
|
||||
let c: uint = 5u;
|
||||
@ -16,5 +16,5 @@ fn main() {
|
||||
// the next statement, since it's not true in the
|
||||
// prestate.
|
||||
let d <- a;
|
||||
log(debug, safe_slice("kitties", b, d));
|
||||
log(debug, str::unsafe::safe_slice("kitties", b, d));
|
||||
}
|
||||
|
@ -3,9 +3,9 @@ use std;
|
||||
import str::*;
|
||||
import uint::le;
|
||||
|
||||
fn main() {
|
||||
fn main() unsafe {
|
||||
let a: uint = 4u;
|
||||
let b: uint = 1u;
|
||||
check (le(a, b));
|
||||
log(error, safe_slice("kitties", a, b));
|
||||
log(error, str::unsafe::safe_slice("kitties", a, b));
|
||||
}
|
||||
|
@ -2,11 +2,11 @@ use std;
|
||||
import str::*;
|
||||
import uint::*;
|
||||
|
||||
fn main() {
|
||||
fn main() unsafe {
|
||||
let a: uint = 1u;
|
||||
let b: uint = 4u;
|
||||
let c: uint = 17u;
|
||||
check (le(a, b));
|
||||
c <- a;
|
||||
log(debug, safe_slice("kitties", c, b));
|
||||
log(debug, str::unsafe::safe_slice("kitties", c, b));
|
||||
}
|
||||
|
@ -2,10 +2,10 @@ use std;
|
||||
import str::*;
|
||||
import uint::*;
|
||||
|
||||
fn main() {
|
||||
fn main() unsafe {
|
||||
let a: uint = 1u;
|
||||
let b: uint = 4u;
|
||||
check (le(a, b));
|
||||
let c <- a;
|
||||
log(debug, safe_slice("kitties", c, b));
|
||||
log(debug, str::unsafe::safe_slice("kitties", c, b));
|
||||
}
|
||||
|
@ -2,10 +2,10 @@ use std;
|
||||
import str::*;
|
||||
import uint::*;
|
||||
|
||||
fn main() {
|
||||
fn main() unsafe {
|
||||
let a: uint = 4u;
|
||||
let b: uint = 1u;
|
||||
check (le(b, a));
|
||||
b <-> a;
|
||||
log(debug, safe_slice("kitties", a, b));
|
||||
log(debug, str::unsafe::safe_slice("kitties", a, b));
|
||||
}
|
||||
|
@ -2,10 +2,10 @@ use std;
|
||||
import str::*;
|
||||
import uint::*;
|
||||
|
||||
fn main() {
|
||||
fn main() unsafe {
|
||||
let a: uint = 1u;
|
||||
let b: uint = 4u;
|
||||
check (le(a, b));
|
||||
let c = b;
|
||||
log(debug, safe_slice("kitties", a, c));
|
||||
log(debug, str::unsafe::safe_slice("kitties", a, c));
|
||||
}
|
||||
|
@ -2,9 +2,9 @@ use std;
|
||||
import str::*;
|
||||
import uint::*;
|
||||
|
||||
fn main() {
|
||||
fn main() unsafe {
|
||||
let a: uint = 1u;
|
||||
let b: uint = 4u;
|
||||
check (le(a, b));
|
||||
log(debug, safe_slice("kitties", a, b));
|
||||
log(debug, str::unsafe::safe_slice("kitties", a, b));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user