Skip to content

Commit 84df136

Browse files
committed
rustc_back: fix fallout of merging ast::ViewItem into ast::Item.
1 parent 7029a64 commit 84df136

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
@@ -188,7 +188,6 @@ mod svh_visitor {
188188
SawLifetimeDef(token::InternedString),
189189

190190
SawMod,
191-
SawViewItem,
192191
SawForeignItem,
193192
SawItem,
194193
SawDecl,
@@ -434,19 +433,6 @@ mod svh_visitor {
434433
SawStmt(saw_stmt(&s.node)).hash(self.st); visit::walk_stmt(self, s)
435434
}
436435

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

0 commit comments

Comments
 (0)