]> git.lizzy.rs Git - rust.git/commitdiff
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)
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

1  2 
src/librustc/mir/mod.rs
src/librustc/ty/print/pretty.rs

Simple merge
Simple merge