diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-12-02 04:09:04 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-12-02 04:09:04 +0100 |
| commit | 319064f469a19ac68aa930127d3bdc88747dac29 (patch) | |
| tree | bdd871480d7b55d0f04b3d92a80bc4388e097766 /src/test/debuginfo/enum-thinlto.rs | |
| parent | 90ac08222a640db4563506983ef0185bb1b54996 (diff) | |
| parent | 9034efe3f707b7e7aed83b049035c63f290a16fa (diff) | |
| download | rust-319064f469a19ac68aa930127d3bdc88747dac29.tar.gz rust-319064f469a19ac68aa930127d3bdc88747dac29.zip | |
Rollup merge of #66907 - eddyb:br-nicer-named, r=oli-obk
rustc: don't just show raw DefIndex's in BrNamed's fmt::Debug impl. Context: these `fmt::Debug` impls only get used with `-Z verbose` (which some tests use). I was going to print the path like in #66850 (or rather, use `DefId`'s `fmt::Debug`, which is close but not as nice), but then I realized that most of the `DefId`s were `crate0:DefIndex(0)`, i.e. the crate root. As the crate root is not a lifetime, they're clearly dummies of some sort, and we don't have to print anything other than the name for them. This means that out of all the tests, there's only 5 instances of `BrNamed` that now print the full path to the lifetime parameter, and everything else is shorter instead, which doesn't feel too bad. cc @nikomatsakis
Diffstat (limited to 'src/test/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions
