Skip to content

Commit d97ce15

Browse files
committed
mention Gc in the managed box feature gate
1 parent 747213a commit d97ce15

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/librustc/front/feature_gate.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,9 @@ impl Visitor<()> for Context {
141141
},
142142
ast::ty_box(_) => {
143143
self.gate_feature("managed_boxes", t.span,
144-
"The managed box syntax will be replaced \
145-
by a library type, and a garbage \
146-
collector is not yet implemented. \
147-
Consider using the `std::rc::Rc` type \
148-
for reference counted pointers.");
144+
"The managed box syntax is being replaced by the `std::gc::Gc`
145+
and `std::rc::Rc` types. Equivalent functionality to managed
146+
trait objects will be implemented but is currently missing.");
149147
}
150148
_ => {}
151149
}

0 commit comments

Comments
 (0)