Make managed_boxes feature gate error less opinionated
This commit is contained in:
parent
623daf66a9
commit
6a33cc244a
@ -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,
|
||||||
by a library type, and a garbage \
|
"The managed box syntax will be replaced \
|
||||||
collector is not yet implemented. \
|
by a library type, and a garbage \
|
||||||
Consider using the `std::rc` module \
|
collector is not yet implemented. \
|
||||||
as it performs much better as a \
|
Consider using the `std::rc::Rc` type \
|
||||||
reference counting implementation.");
|
for reference counted pointers.");
|
||||||
}
|
}
|
||||||
_ => {}
|
_ => {}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user