Skip to content

Commit 406c98f

Browse files
committed
---
yaml --- r: 210553 b: refs/heads/try c: 232b202 h: refs/heads/master i: 210551: 031ff77 v: v3
1 parent 1c043fb commit 406c98f

File tree

2 files changed

+18
-20
lines changed

2 files changed

+18
-20
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: 3e561f05c00cd180ec02db4ccab2840a4aba93d2
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: ba0e1cd8147d452c356aacb29fb87568ca26f111
5-
refs/heads/try: 7ec81722250efc7798d9163574e01eec5cde85ca
5+
refs/heads/try: 232b2022b515fdba7e06354c635998cbc0d76114
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
88
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try/src/librustc_trans/trans/debuginfo/metadata.rs

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -142,26 +142,24 @@ impl<'tcx> TypeMap<'tcx> {
142142
fn get_unique_type_id_of_type<'a>(&mut self, cx: &CrateContext<'a, 'tcx>,
143143
type_: Ty<'tcx>) -> UniqueTypeId {
144144

145-
// basic type -> {:name of the type:}
146-
// tuple -> {tuple_(:param-uid:)*}
147-
// struct -> {struct_:svh: / :node-id:_<(:param-uid:),*> }
148-
// enum -> {enum_:svh: / :node-id:_<(:param-uid:),*> }
149-
// enum variant -> {variant_:variant-name:_:enum-uid:}
150-
// reference (&) -> {& :pointee-uid:}
151-
// mut reference (&mut) -> {&mut :pointee-uid:}
152-
// ptr (*) -> {* :pointee-uid:}
153-
// mut ptr (*mut) -> {*mut :pointee-uid:}
154-
// unique ptr (~) -> {~ :pointee-uid:}
155-
// @-ptr (@) -> {@ :pointee-uid:}
156-
// sized vec ([T; x]) -> {[:size:] :element-uid:}
157-
// unsized vec ([T]) -> {[] :element-uid:}
158-
// trait (T) -> {trait_:svh: / :node-id:_<(:param-uid:),*> }
159-
// closure -> {<unsafe_> <once_> :store-sigil: |(:param-uid:),* <,_...>| -> \
145+
// basic type -> {:name of the type:}
146+
// tuple -> {tuple_(:param-uid:)*}
147+
// struct -> {struct_:svh: / :node-id:_<(:param-uid:),*> }
148+
// enum -> {enum_:svh: / :node-id:_<(:param-uid:),*> }
149+
// enum variant -> {variant_:variant-name:_:enum-uid:}
150+
// reference (&) -> {& :pointee-uid:}
151+
// mut reference (&mut) -> {&mut :pointee-uid:}
152+
// ptr (*) -> {* :pointee-uid:}
153+
// mut ptr (*mut) -> {*mut :pointee-uid:}
154+
// unique ptr (Box) -> {Box :pointee-uid:}
155+
// @-ptr (@) -> {@ :pointee-uid:}
156+
// sized vec ([T; x]) -> {[:size:] :element-uid:}
157+
// unsized vec ([T]) -> {[] :element-uid:}
158+
// trait (T) -> {trait_:svh: / :node-id:_<(:param-uid:),*> }
159+
// closure -> {<unsafe_> <once_> :store-sigil: |(:param-uid:),* <,_...>| -> \
160160
// :return-type-uid: : (:bounds:)*}
161-
// function -> {<unsafe_> <abi_> fn( (:param-uid:)* <,_...> ) -> \
161+
// function -> {<unsafe_> <abi_> fn( (:param-uid:)* <,_...> ) -> \
162162
// :return-type-uid:}
163-
// unique vec box (~[]) -> {HEAP_VEC_BOX<:pointee-uid:>}
164-
// gc box -> {GC_BOX<:pointee-uid:>}
165163

166164
match self.type_to_unique_id.get(&type_).cloned() {
167165
Some(unique_type_id) => return unique_type_id,
@@ -202,7 +200,7 @@ impl<'tcx> TypeMap<'tcx> {
202200
}
203201
},
204202
ty::ty_uniq(inner_type) => {
205-
unique_type_id.push('~');
203+
unique_type_id.push_str("Box ");
206204
let inner_type_id = self.get_unique_type_id_of_type(cx, inner_type);
207205
let inner_type_id = self.get_unique_type_id_as_string(inner_type_id);
208206
unique_type_id.push_str(&inner_type_id[..]);

0 commit comments

Comments
 (0)