any_library: bool,
}
-impl<'a, 'tcx> Visitor for ReachableContext<'a, 'tcx> {
+impl<'a, 'tcx, 'v> Visitor<'v> for ReachableContext<'a, 'tcx> {
fn visit_expr(&mut self, expr: &ast::Expr) {
match *trait_method {
ast::RequiredMethod(_) => false,
ast::ProvidedMethod(_) => true,
+ ast::TypeTraitItem(_) => false,
}
}
Some(ast_map::NodeImplItem(impl_item)) => {
match *impl_item {
- ast::MethodImplItem(method) => {
+ ast::MethodImplItem(ref method) => {
if generics_require_inlining(method.pe_generics()) ||
attributes_specify_inlining(
method.attrs.as_slice()) {
}
}
}
+ ast::TypeImplItem(_) => false,
}
}
Some(_) => false,
// Keep going, nothing to get exported
}
ast::ProvidedMethod(ref method) => {
- visit::walk_block(self, &*method.pe_body())
+ visit::walk_block(self, &*method.pe_body());
}
+ ast::TypeTraitItem(_) => {}
}
}
ast_map::NodeImplItem(impl_item) => {
match *impl_item {
- ast::MethodImplItem(method) => {
+ ast::MethodImplItem(ref method) => {
let did = self.tcx.map.get_parent_did(search_item);
- if method_might_be_inlined(self.tcx, &*method, did) {
- visit::walk_block(self, &*method.pe_body())
+ if method_might_be_inlined(self.tcx, &**method, did) {
+ visit::walk_block(self, method.pe_body())
}
}
+ ast::TypeImplItem(_) => {}
}
}
// Nothing to recurse on for these