Skip to content

Commit 2f6976e

Browse files
committed
rustc_incremental: fix compilation
1 parent 490c23f commit 2f6976e

File tree

4 files changed

+0
-12
lines changed

4 files changed

+0
-12
lines changed

src/librustc_incremental/assert_dep_graph.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,6 @@ impl<'a, 'tcx> ItemLikeVisitor<'tcx> for IfThisChanged<'a, 'tcx> {
174174
fn visit_impl_item(&mut self, impl_item: &'tcx hir::ImplItem) {
175175
self.process_attrs(impl_item.id, &impl_item.attrs);
176176
}
177-
178-
fn visit_expr_id(&mut self, _: hir::ExprId) { }
179177
}
180178

181179
fn check_paths<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,

src/librustc_incremental/calculate_svh/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,5 @@ impl<'a, 'tcx> Visitor<'tcx> for HashItemsVisitor<'a, 'tcx> {
226226
self.calculate_node_id(item.id, |v| v.visit_foreign_item(item));
227227
visit::walk_foreign_item(self, item);
228228
}
229-
230-
fn visit_expr_id(&mut self, _: hir::ExprId) { }
231229
}
232230

src/librustc_incremental/calculate_svh/svh_visitor.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -509,10 +509,6 @@ macro_rules! hash_span {
509509
}
510510

511511
impl<'a, 'hash, 'tcx> visit::Visitor<'tcx> for StrictVersionHashVisitor<'a, 'hash, 'tcx> {
512-
fn visit_expr_id(&mut self, _: hir::ExprId) {
513-
// Body exprs are hashed independently
514-
}
515-
516512
fn visit_variant_data(&mut self,
517513
s: &'tcx VariantData,
518514
name: Name,

src/librustc_incremental/persist/dirty_clean.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,6 @@ impl<'a, 'tcx> ItemLikeVisitor<'tcx> for DirtyCleanVisitor<'a, 'tcx> {
185185

186186
fn visit_impl_item(&mut self, _impl_item: &hir::ImplItem) {
187187
}
188-
189-
fn visit_expr_id(&mut self, _: hir::ExprId) { }
190188
}
191189

192190
pub fn check_dirty_clean_metadata<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
@@ -231,8 +229,6 @@ impl<'a, 'tcx, 'm> ItemLikeVisitor<'tcx> for DirtyCleanMetadataVisitor<'a, 'tcx,
231229

232230
fn visit_impl_item(&mut self, _impl_item: &hir::ImplItem) {
233231
}
234-
235-
fn visit_expr_id(&mut self, _: hir::ExprId) { }
236232
}
237233

238234
impl<'a, 'tcx, 'm> DirtyCleanMetadataVisitor<'a, 'tcx, 'm> {

0 commit comments

Comments
 (0)