rustc_back: fix fallout of merging ast::ViewItem into ast::Item.
This commit is contained in:
parent
7cece8725b
commit
e389ab18a2
@ -188,7 +188,6 @@ enum SawAbiComponent<'a> {
|
||||
SawLifetimeDef(token::InternedString),
|
||||
|
||||
SawMod,
|
||||
SawViewItem,
|
||||
SawForeignItem,
|
||||
SawItem,
|
||||
SawDecl,
|
||||
@ -436,19 +435,6 @@ fn visit_stmt(&mut self, s: &Stmt) {
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user