]> git.lizzy.rs Git - rust.git/commitdiff
Make managed_boxes feature gate error less opinionated
authorBrian Anderson <banderson@mozilla.com>
Wed, 30 Oct 2013 23:27:31 +0000 (16:27 -0700)
committerBrian Anderson <banderson@mozilla.com>
Thu, 31 Oct 2013 17:45:03 +0000 (10:45 -0700)
src/librustc/front/feature_gate.rs

index c17d6cabfed4f924f8f233e992a960596034eaca..c4337abb740927d3e7b46be3b6fb0f13a7b418e5 100644 (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.");
             }
             _ => {}
         }