Make managed_boxes feature gate error less opinionated
auto merge of #10181 : brson/rust/managed_boxes, r=thestinger