This can probably be 
```rust
let mut visitor = DeadVisitor { ... };
visit::walk_crate(&mut visitor, crate, ());
```