diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-09-18 11:17:40 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-09-18 11:31:57 -0700 |
| commit | 2cdb23bbc08fba2f5dc7b0dcc79983fc02e32960 (patch) | |
| tree | 683f1e841f369e737e6d0c26fcafe5057531566c /src/libcore/dvec.rs | |
| parent | efa6675f1d632f5d524f4a7a18838c6ee1c0c447 (diff) | |
Replace uses of 'unchecked' with 'unsafe'
Diffstat (limited to 'src/libcore/dvec.rs')
| -rw-r--r-- | src/libcore/dvec.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/dvec.rs b/src/libcore/dvec.rs index d59d3828206..6f0f5c6bb06 100644 --- a/src/libcore/dvec.rs +++ b/src/libcore/dvec.rs @@ -140,7 +140,7 @@ impl<A> DVec<A> { /// Returns the number of elements currently in the dvec pure fn len() -> uint { - unchecked { + unsafe { do self.check_out |v| { let l = v.len(); self.give_back(move v); @@ -280,7 +280,7 @@ impl<A: Copy> DVec<A> { * See `unwrap()` if you do not wish to copy the contents. */ pure fn get() -> ~[A] { - unchecked { + unsafe { do self.check_out |v| { let w = copy v; self.give_back(move v); |
