]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Rollup merge of #82258 - tmiasko:foreign-hir-stats, r=davidtwco
authorDylan DPC <dylan.dpc@gmail.com>
Tue, 23 Feb 2021 15:10:22 +0000 (16:10 +0100)
committerGitHub <noreply@github.com>
Tue, 23 Feb 2021 15:10:22 +0000 (16:10 +0100)
commit2982ba50fc4bb629b8fe4108a81cb2f9b053510b
tree6351625182f3aaef77a86e51f53d5f3adca1b69d
parent547b3adfe4afb7cfe3d3603e16faa458913ef56f
parentbf09e0499e30a39426695c149c8a45c0c06bf715
Rollup merge of #82258 - tmiasko:foreign-hir-stats, r=davidtwco

Implement -Z hir-stats for nested foreign items

An attempt to compute HIR stats for crates with nested foreign items results in an ICE.

```rust
fn main() {
    extern "C" { fn f(); }
}
```

```
thread 'rustc' panicked at 'visit_nested_xxx must be manually implemented in this visitor'
```

Provide required implementation of visitor method.
compiler/rustc_passes/src/hir_stats.rs