Skip to content

Commit 490c23f

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

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

src/librustc_incremental/assert_dep_graph.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,8 @@ 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) { }
177179
}
178180

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

src/librustc_incremental/calculate_svh/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,5 +226,7 @@ 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) { }
229231
}
230232

src/librustc_incremental/calculate_svh/svh_visitor.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -509,6 +509,10 @@ 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+
512516
fn visit_variant_data(&mut self,
513517
s: &'tcx VariantData,
514518
name: Name,

src/librustc_incremental/persist/dirty_clean.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,8 @@ 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) { }
188190
}
189191

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

230232
fn visit_impl_item(&mut self, _impl_item: &hir::ImplItem) {
231233
}
234+
235+
fn visit_expr_id(&mut self, _: hir::ExprId) { }
232236
}
233237

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

0 commit comments

Comments
 (0)