]> git.lizzy.rs Git - rust.git/commit - src/tools/rustfmt
Rollup merge of #76389 - MaulingMonkey:pr-natvis-hashmap-vsc, r=petrochenkov
authorDylan DPC <dylan.dpc@gmail.com>
Tue, 8 Sep 2020 23:35:17 +0000 (01:35 +0200)
committerGitHub <noreply@github.com>
Tue, 8 Sep 2020 23:35:17 +0000 (01:35 +0200)
commit222b88501daa363517a17ad0cacc31b8cb8a7664
treea809bc253965e080351c67089bff1e426334a2ae
parentb2ca5131ede52c3207ab757c5bee43b519b4ce1a
parent5acd272f5f7d892b73cfbe90bdf266af10ea30ce
Rollup merge of #76389 - MaulingMonkey:pr-natvis-hashmap-vsc, r=petrochenkov

Fix HashMap visualizers in Visual Studio (Code)

CDB (as used in unit tests) doesn't care that we're using static_cast between unrelated types (`u8*` to `tuple<$T1, $T2>*`).
Visual Studio & Visual Studio Code care.  These should've been reinterpret_cast or C casts.

Credit to @petrochenkov per https://github.com/rust-lang/rust/issues/76352 for helping catch this.

### Testing

```cmd
x.py test --stage 1 src/tools/tidy
x.py test --stage 1 --build x86_64-pc-windows-msvc src\test\debuginfo
```