Skip to content

Commit 0990b79

Browse files
committed
rustc_back: fix fallout of merging ast::ViewItem into ast::Item.
1 parent cd2724f commit 0990b79

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/librustc_back/svh.rs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,6 @@ mod svh_visitor {
184184
SawLifetimeDef(token::InternedString),
185185

186186
SawMod,
187-
SawViewItem,
188187
SawForeignItem,
189188
SawItem,
190189
SawDecl,
@@ -430,19 +429,6 @@ mod svh_visitor {
430429
SawStmt(saw_stmt(&s.node)).hash(self.st); visit::walk_stmt(self, s)
431430
}
432431

433-
fn visit_view_item(&mut self, i: &ViewItem) {
434-
// Two kinds of view items can affect the ABI for a crate:
435-
// exported `pub use` view items (since that may expose
436-
// items that downstream crates can call), and `use
437-
// foo::Trait`, since changing that may affect method
438-
// resolution.
439-
//
440-
// The simplest approach to handling both of the above is
441-
// just to adopt the same simple-minded (fine-grained)
442-
// hash that I am deploying elsewhere here.
443-
SawViewItem.hash(self.st); visit::walk_view_item(self, i)
444-
}
445-
446432
fn visit_foreign_item(&mut self, i: &ForeignItem) {
447433
// FIXME (#14132) ideally we would incorporate privacy (or
448434
// perhaps reachability) somewhere here, so foreign items

0 commit comments

Comments
 (0)