Skip to content

Commit 6af7861

Browse files
debuginfo: Added support for region pointers.
1 parent 46d28c8 commit 6af7861

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/librustc/middle/trans/debuginfo.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -886,9 +886,9 @@ fn create_ty(cx: &mut CrateContext, t: ty::t, span: span) -> DIType {
886886
let pointee = create_ty(cx, mt.ty, span);
887887
create_pointer_type(cx, t, span, pointee)
888888
},
889-
ty::ty_rptr(ref _region, ref _mt) => {
890-
cx.sess.span_note(span, "debuginfo for rptr NYI");
891-
create_unimpl_ty(cx, t)
889+
ty::ty_rptr(_, ref mt) => {
890+
let pointee = create_ty(cx, mt.ty, span);
891+
create_pointer_type(cx, t, span, pointee)
892892
},
893893
ty::ty_bare_fn(ref barefnty) => {
894894
let inputs = barefnty.sig.inputs.map(|a| *a);

0 commit comments

Comments
 (0)