Skip to content

Commit adc1cec

Browse files
committed
---
yaml --- r: 66974 b: refs/heads/master c: 0239a06 h: refs/heads/master v: v3
1 parent d15148b commit adc1cec

File tree

6 files changed

+3
-11
lines changed

6 files changed

+3
-11
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 8d561587b2be3c09116142aeb837811656257c63
2+
refs/heads/master: 0239a06a6401d789a70c0089ada071ca981874df
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 18e3db7392d2d0697b7e27d6d986139960144d85
55
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9

trunk/src/libstd/reflect.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ impl<V:TyVisitor + MovePtr> TyVisitor for MovePtrAdaptor<V> {
197197
true
198198
}
199199

200+
#[cfg(stage0)]
200201
fn visit_str(&self) -> bool {
201202
self.align_to::<~str>();
202203
if ! self.inner.visit_str() { return false; }

trunk/src/libstd/repr.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,7 @@ impl TyVisitor for ReprVisitor {
269269
}
270270

271271
// Type no longer exists, vestigial function.
272+
#[cfg(stage0)]
272273
fn visit_str(&self) -> bool { fail!(); }
273274

274275
fn visit_estr_box(&self) -> bool {

trunk/src/libstd/unstable/intrinsics.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ pub trait TyVisitor {
8282
fn visit_f64(&self) -> bool;
8383

8484
fn visit_char(&self) -> bool;
85-
fn visit_str(&self) -> bool;
8685

8786
fn visit_estr_box(&self) -> bool;
8887
fn visit_estr_uniq(&self) -> bool;

trunk/src/test/run-pass/reflect-visit-data.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -181,13 +181,6 @@ impl<V:TyVisitor + movable_ptr> TyVisitor for ptr_visit_adaptor<V> {
181181
true
182182
}
183183

184-
fn visit_str(&self) -> bool {
185-
self.align_to::<~str>();
186-
if ! self.inner.visit_str() { return false; }
187-
self.bump_past::<~str>();
188-
true
189-
}
190-
191184
fn visit_estr_box(&self) -> bool {
192185
self.align_to::<@str>();
193186
if ! self.inner.visit_estr_box() { return false; }
@@ -556,7 +549,6 @@ impl TyVisitor for my_visitor {
556549
fn visit_f64(&self) -> bool { true }
557550

558551
fn visit_char(&self) -> bool { true }
559-
fn visit_str(&self) -> bool { true }
560552

561553
fn visit_estr_box(&self) -> bool { true }
562554
fn visit_estr_uniq(&self) -> bool { true }

trunk/src/test/run-pass/reflect-visit-type.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ impl TyVisitor for MyVisitor {
5959
fn visit_f64(&self) -> bool { true }
6060

6161
fn visit_char(&self) -> bool { true }
62-
fn visit_str(&self) -> bool { true }
6362

6463
fn visit_estr_box(&self) -> bool { true }
6564
fn visit_estr_uniq(&self) -> bool { true }

0 commit comments

Comments
 (0)