Propagating unsafe::slice 4
This commit is contained in:
parent
fceec03da0
commit
c71667d9d2
8 changed files with 16 additions and 16 deletions
|
@ -2,8 +2,8 @@
|
||||||
use std;
|
use std;
|
||||||
import str::*;
|
import str::*;
|
||||||
|
|
||||||
fn main() {
|
fn main() unsafe {
|
||||||
let a: uint = 4u;
|
let a: uint = 4u;
|
||||||
let b: uint = 1u;
|
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 str::*;
|
||||||
import uint::*;
|
import uint::*;
|
||||||
|
|
||||||
fn main() {
|
fn main() unsafe {
|
||||||
let a: uint = 1u;
|
let a: uint = 1u;
|
||||||
let b: uint = 4u;
|
let b: uint = 4u;
|
||||||
let c: uint = 5u;
|
let c: uint = 5u;
|
||||||
|
@ -16,5 +16,5 @@ fn main() {
|
||||||
// the next statement, since it's not true in the
|
// the next statement, since it's not true in the
|
||||||
// prestate.
|
// prestate.
|
||||||
let d <- a;
|
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 str::*;
|
||||||
import uint::le;
|
import uint::le;
|
||||||
|
|
||||||
fn main() {
|
fn main() unsafe {
|
||||||
let a: uint = 4u;
|
let a: uint = 4u;
|
||||||
let b: uint = 1u;
|
let b: uint = 1u;
|
||||||
check (le(a, b));
|
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 str::*;
|
||||||
import uint::*;
|
import uint::*;
|
||||||
|
|
||||||
fn main() {
|
fn main() unsafe {
|
||||||
let a: uint = 1u;
|
let a: uint = 1u;
|
||||||
let b: uint = 4u;
|
let b: uint = 4u;
|
||||||
let c: uint = 17u;
|
let c: uint = 17u;
|
||||||
check (le(a, b));
|
check (le(a, b));
|
||||||
c <- a;
|
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 str::*;
|
||||||
import uint::*;
|
import uint::*;
|
||||||
|
|
||||||
fn main() {
|
fn main() unsafe {
|
||||||
let a: uint = 1u;
|
let a: uint = 1u;
|
||||||
let b: uint = 4u;
|
let b: uint = 4u;
|
||||||
check (le(a, b));
|
check (le(a, b));
|
||||||
let c <- a;
|
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 str::*;
|
||||||
import uint::*;
|
import uint::*;
|
||||||
|
|
||||||
fn main() {
|
fn main() unsafe {
|
||||||
let a: uint = 4u;
|
let a: uint = 4u;
|
||||||
let b: uint = 1u;
|
let b: uint = 1u;
|
||||||
check (le(b, a));
|
check (le(b, a));
|
||||||
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 str::*;
|
||||||
import uint::*;
|
import uint::*;
|
||||||
|
|
||||||
fn main() {
|
fn main() unsafe {
|
||||||
let a: uint = 1u;
|
let a: uint = 1u;
|
||||||
let b: uint = 4u;
|
let b: uint = 4u;
|
||||||
check (le(a, b));
|
check (le(a, b));
|
||||||
let c = 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 str::*;
|
||||||
import uint::*;
|
import uint::*;
|
||||||
|
|
||||||
fn main() {
|
fn main() unsafe {
|
||||||
let a: uint = 1u;
|
let a: uint = 1u;
|
||||||
let b: uint = 4u;
|
let b: uint = 4u;
|
||||||
check (le(a, b));
|
check (le(a, b));
|
||||||
log(debug, safe_slice("kitties", a, b));
|
log(debug, str::unsafe::safe_slice("kitties", a, b));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue