From d97ce15c14f4298cae65e63f6b1b516bb346b066 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Fri, 22 Nov 2013 06:54:33 -0500 Subject: [PATCH] mention `Gc` in the managed box feature gate --- src/librustc/front/feature_gate.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/librustc/front/feature_gate.rs b/src/librustc/front/feature_gate.rs index c4337abb740..129e61be743 100644 --- a/src/librustc/front/feature_gate.rs +++ b/src/librustc/front/feature_gate.rs @@ -141,11 +141,9 @@ impl Visitor<()> for Context { }, 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."); } _ => {} }