From 6a33cc244aff1e8f059a9b67bf581bec69d27924 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Wed, 30 Oct 2013 16:27:31 -0700 Subject: [PATCH] Make managed_boxes feature gate error less opinionated --- src/librustc/front/feature_gate.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/librustc/front/feature_gate.rs b/src/librustc/front/feature_gate.rs index c17d6cabfed..c4337abb740 100644 --- a/src/librustc/front/feature_gate.rs +++ b/src/librustc/front/feature_gate.rs @@ -140,12 +140,12 @@ impl Visitor<()> for Context { }, 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."); } _ => {} }