]> git.lizzy.rs Git - rust.git/commitdiff
mention `Gc` in the managed box feature gate
authorDaniel Micay <danielmicay@gmail.com>
Fri, 22 Nov 2013 11:54:33 +0000 (06:54 -0500)
committerDaniel Micay <danielmicay@gmail.com>
Fri, 22 Nov 2013 12:02:56 +0000 (07:02 -0500)
src/librustc/front/feature_gate.rs

index c4337abb740927d3e7b46be3b6fb0f13a7b418e5..129e61be74378278e2371951ac47fbb3b5e2397e 100644 (file)
@@ -141,11 +141,9 @@ fn visit_ty(&mut self, t: &ast::Ty, _: ()) {
             },
             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.");
             }
             _ => {}
         }