Replace uses of 'unchecked' with 'unsafe'
This commit is contained in:
parent
efa6675f1d
commit
2cdb23bbc0
21 changed files with 107 additions and 107 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue