Propagating unsafe::slice 4

This commit is contained in:
Kevin Cantu 2012-02-01 03:53:09 -08:00 committed by Brian Anderson
parent fceec03da0
commit c71667d9d2
8 changed files with 16 additions and 16 deletions

View file

@ -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));
}

View file

@ -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));
}

View file

@ -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));
}

View file

@ -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));
}

View file

@ -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));
}

View file

@ -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));
}

View file

@ -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));
}

View file

@ -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));
}