about summary refs log tree commit diff
path: root/src/comp/middle/debuginfo.rs
diff options
context:
space:
mode:
authorKevin Cantu <me@kevincantu.org>2012-02-01 03:41:58 -0800
committerBrian Anderson <banderson@mozilla.com>2012-02-01 21:56:53 -0800
commit6156bc56cbd1f40e538b59ff91ce9b8d89969ff3 (patch)
treeec399916523a701e8ac25903855e90d2210a9254 /src/comp/middle/debuginfo.rs
parent47c57a17dc51ff32594b5759c300b84e380b9f7b (diff)
Propagating unsafe::slice 2
Diffstat (limited to 'src/comp/middle/debuginfo.rs')
-rw-r--r--src/comp/middle/debuginfo.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/comp/middle/debuginfo.rs b/src/comp/middle/debuginfo.rs
index 56a07619a46..b674af49b26 100644
--- a/src/comp/middle/debuginfo.rs
+++ b/src/comp/middle/debuginfo.rs
@@ -157,7 +157,7 @@ fn cached_metadata<T: copy>(cache: metadata_cache, mdtag: int,
 }
 
 fn create_compile_unit(cx: @crate_ctxt, full_path: str)
-    -> @metadata<compile_unit_md> {
+    -> @metadata<compile_unit_md> unsafe {
     let cache = get_cache(cx);
     let tg = CompileUnitTag;
     alt cached_metadata::<@metadata<compile_unit_md>>(cache, tg,
@@ -168,7 +168,7 @@ fn create_compile_unit(cx: @crate_ctxt, full_path: str)
 
     let work_dir = cx.sess.working_dir;
     let file_path = if str::starts_with(full_path, work_dir) {
-        str::slice(full_path, str::byte_len(work_dir),
+        str::unsafe::slice(full_path, str::byte_len(work_dir),
                    str::byte_len(full_path))
     } else {
         full_path