Make managed_boxes feature gate error less opinionated

This commit is contained in:
Brian Anderson 2013-10-30 16:27:31 -07:00
parent 623daf66a9
commit 6a33cc244a

View File

@ -140,12 +140,12 @@ fn visit_ty(&mut self, t: &ast::Ty, _: ()) {
},
ast::ty_box(_) => {
self.gate_feature("managed_boxes", t.span, "The managed box syntax may be replaced \
by a library type, and a garbage \
collector is not yet implemented. \
Consider using the `std::rc` module \
as it performs much better as a \
reference counting implementation.");
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.");
}
_ => {}
}