]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #66850 - eddyb:span-free-formats, r=oli-obk
authorMazdak Farrokhzad <twingoow@gmail.com>
Mon, 2 Dec 2019 03:09:01 +0000 (04:09 +0100)
committerGitHub <noreply@github.com>
Mon, 2 Dec 2019 03:09:01 +0000 (04:09 +0100)
commitdbe880e8ecd088ded3ac63fac1d60f813f11ad4e
tree914fed746b44b8f70282a6073f899db9d0bc1e46
parentfd09fad064504e18cd7fd15ccd7c957787482b81
parent71710608f009066b5a2dd65ea88ec5c0a79422e4
Rollup merge of #66850 - eddyb:span-free-formats, r=oli-obk

rustc: hide HirId's fmt::Debug output from -Z span_free_formats.

This replaces the only occurrences of `HirId {...}` from tests with paths, i.e.:
```rust
[closure@HirId { owner: DefIndex(4), local_id: 15 } q:&i32, t:&T]
```
becomes, after this PR:
```rust
[closure@foo<T>::{{closure}}#0 q:&i32, t:&T]
```

r? @oli-obk cc @michaelwoerister
src/librustc/mir/mod.rs
src/librustc/ty/print/pretty.rs