mention `Gc` in the managed box feature gate

This commit is contained in:
Daniel Micay 2013-11-22 06:54:33 -05:00
parent 747213a280
commit d97ce15c14
1 changed files with 3 additions and 5 deletions

View File

@ -141,11 +141,9 @@ impl Visitor<()> for Context {
},
ast::ty_box(_) => {
self.gate_feature("managed_boxes", t.span,
"The managed box syntax will be replaced \
by a library type, and a garbage \
collector is not yet implemented. \
Consider using the `std::rc::Rc` type \
for reference counted pointers.");
"The managed box syntax is being replaced by the `std::gc::Gc`
and `std::rc::Rc` types. Equivalent functionality to managed
trait objects will be implemented but is currently missing.");
}
_ => {}
}