Replace uses of 'unchecked' with 'unsafe'

This commit is contained in:
Brian Anderson 2012-09-18 11:17:40 -07:00
parent efa6675f1d
commit 2cdb23bbc0
21 changed files with 107 additions and 107 deletions

View file

@ -5,7 +5,7 @@ fn foo(v: &const Option<int>) {
match *v {
Some(ref i) => {
//~^ ERROR illegal borrow unless pure
unchecked {
unsafe {
impure(*i); //~ NOTE impure due to access to impure function
}
}