diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-09-18 17:34:08 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-09-18 19:36:25 -0700 |
| commit | 2906f2de31d3a4709a2e028c5cefe3274df1edd2 (patch) | |
| tree | 608d302d2da9538bc12cdf286437a6cd654c7535 /src/test/run-fail | |
| parent | 77480e8e44d9c5a6858172faeb291496314cf739 (diff) | |
| download | rust-2906f2de31d3a4709a2e028c5cefe3274df1edd2.tar.gz rust-2906f2de31d3a4709a2e028c5cefe3274df1edd2.zip | |
core: Rename 'unsafe' mod to 'cast'
Diffstat (limited to 'src/test/run-fail')
| -rw-r--r-- | src/test/run-fail/unwind-box-res.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/run-fail/unwind-box-res.rs b/src/test/run-fail/unwind-box-res.rs index 77db30c8e5b..0bea0f934f4 100644 --- a/src/test/run-fail/unwind-box-res.rs +++ b/src/test/run-fail/unwind-box-res.rs @@ -7,7 +7,7 @@ fn failfn() { struct r { v: *int, drop unsafe { - let _v2: ~int = unsafe::reinterpret_cast(&self.v); + let _v2: ~int = cast::reinterpret_cast(&self.v); } } @@ -19,8 +19,8 @@ fn r(v: *int) -> r { fn main() unsafe { let i1 = ~0; - let i1p = unsafe::reinterpret_cast(&i1); - unsafe::forget(i1); + let i1p = cast::reinterpret_cast(&i1); + cast::forget(i1); let x = @r(i1p); failfn(); log(error, x); |
