mention `Gc` in the managed box feature gate
This commit is contained in:
parent
747213a280
commit
d97ce15c14
|
@ -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.");
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue