Skip to content

Commit 0c7b220

Browse files
committed
fix repr of unique vectors with stage0 libstd
Closes #7860
1 parent 0bc204e commit 0c7b220

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/libstd/repr.rs

+9
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,15 @@ impl TyVisitor for ReprVisitor {
353353
}
354354
}
355355

356+
#[cfg(stage0)]
357+
fn visit_evec_uniq(&self, mtbl: uint, inner: *TyDesc) -> bool {
358+
do self.get::<&VecRepr> |b| {
359+
self.writer.write_char('~');
360+
self.write_unboxed_vec_repr(mtbl, &b.unboxed, inner);
361+
}
362+
}
363+
364+
#[cfg(not(stage0))]
356365
fn visit_evec_uniq(&self, mtbl: uint, inner: *TyDesc) -> bool {
357366
do self.get::<&UnboxedVecRepr> |b| {
358367
self.writer.write_char('~');

0 commit comments

Comments
 (0)