mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
auto merge of #10181 : brson/rust/managed_boxes, r=thestinger
This commit is contained in:
commit
1bbd4afb4a
@ -140,12 +140,12 @@ impl Visitor<()> for Context {
|
|||||||
|
|
||||||
},
|
},
|
||||||
ast::ty_box(_) => {
|
ast::ty_box(_) => {
|
||||||
self.gate_feature("managed_boxes", t.span, "The managed box syntax may be replaced \
|
self.gate_feature("managed_boxes", t.span,
|
||||||
|
"The managed box syntax will be replaced \
|
||||||
by a library type, and a garbage \
|
by a library type, and a garbage \
|
||||||
collector is not yet implemented. \
|
collector is not yet implemented. \
|
||||||
Consider using the `std::rc` module \
|
Consider using the `std::rc::Rc` type \
|
||||||
as it performs much better as a \
|
for reference counted pointers.");
|
||||||
reference counting implementation.");
|
|
||||||
}
|
}
|
||||||
_ => {}
|
_ => {}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user