From 8f63b416af498e4b5ab47da56450e6cf4207ca25 Mon Sep 17 00:00:00 2001 From: Florian Diebold Date: Sat, 29 Oct 2016 12:21:49 +0200 Subject: [PATCH] rustc_trans: fix compilation --- src/librustc_trans/collector.rs | 2 ++ src/librustc_trans/symbol_names_test.rs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/librustc_trans/collector.rs b/src/librustc_trans/collector.rs index 5c7b004375ed..a4439b0796e9 100644 --- a/src/librustc_trans/collector.rs +++ b/src/librustc_trans/collector.rs @@ -1124,6 +1124,8 @@ impl<'b, 'a, 'v> ItemLikeVisitor<'v> for RootCollector<'b, 'a, 'v> { _ => { /* Nothing to do here */ } } } + + fn visit_expr_id(&mut self, _: hir::ExprId) { } } fn create_trans_items_for_default_impls<'a, 'tcx>(scx: &SharedCrateContext<'a, 'tcx>, diff --git a/src/librustc_trans/symbol_names_test.rs b/src/librustc_trans/symbol_names_test.rs index aa23a1817227..de6a13ec80b0 100644 --- a/src/librustc_trans/symbol_names_test.rs +++ b/src/librustc_trans/symbol_names_test.rs @@ -81,5 +81,7 @@ impl<'a, 'tcx> Visitor<'tcx> for SymbolNamesTest<'a, 'tcx> { self.process_attrs(ii.id); intravisit::walk_impl_item(self, ii) } + + fn visit_expr_id(&mut self, _: hir::ExprId) { } }