diff options
| author | Eduard Burtescu <edy.burt@gmail.com> | 2014-12-23 15:11:24 +0200 |
|---|---|---|
| committer | Eduard Burtescu <edy.burt@gmail.com> | 2015-01-21 16:27:26 +0200 |
| commit | e389ab18a28b71479be6f24776845cc021767193 (patch) | |
| tree | 5463bc48a86d10ea520960032c2da25c6a4ce96e | |
| parent | 7cece8725b6a7e12045bdbff257ecec7327654bf (diff) | |
| download | rust-e389ab18a28b71479be6f24776845cc021767193.tar.gz rust-e389ab18a28b71479be6f24776845cc021767193.zip | |
rustc_back: fix fallout of merging ast::ViewItem into ast::Item.
| -rw-r--r-- | src/librustc_back/svh.rs | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/librustc_back/svh.rs b/src/librustc_back/svh.rs index b71e465b938..79d7a0ced39 100644 --- a/src/librustc_back/svh.rs +++ b/src/librustc_back/svh.rs @@ -188,7 +188,6 @@ mod svh_visitor { SawLifetimeDef(token::InternedString), SawMod, - SawViewItem, SawForeignItem, SawItem, SawDecl, @@ -436,19 +435,6 @@ mod svh_visitor { SawStmt(saw_stmt(&s.node)).hash(self.st); visit::walk_stmt(self, s) } - fn visit_view_item(&mut self, i: &ViewItem) { - // Two kinds of view items can affect the ABI for a crate: - // exported `pub use` view items (since that may expose - // items that downstream crates can call), and `use - // foo::Trait`, since changing that may affect method - // resolution. - // - // The simplest approach to handling both of the above is - // just to adopt the same simple-minded (fine-grained) - // hash that I am deploying elsewhere here. - SawViewItem.hash(self.st); visit::walk_view_item(self, i) - } - fn visit_foreign_item(&mut self, i: &ForeignItem) { // FIXME (#14132) ideally we would incorporate privacy (or // perhaps reachability) somewhere here, so foreign items |
