diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-06-16 09:10:22 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-16 09:10:22 +0200 |
| commit | ae58a55d0348681c1b7c845ebfd20eb9ee554b2e (patch) | |
| tree | 61a63dc4f7f42248508edc48c0e6380c6dae3881 /compiler/rustc_errors/src | |
| parent | f4297b06e8db75fcf6b3feeae91739ba6ffd4d66 (diff) | |
| parent | 95adaa22e0e2cb6ce9cf0521232620ffdb7b5f00 (diff) | |
| download | rust-ae58a55d0348681c1b7c845ebfd20eb9ee554b2e.tar.gz rust-ae58a55d0348681c1b7c845ebfd20eb9ee554b2e.zip | |
Rollup merge of #98137 - michaelwoerister:fix-unsized-rc-arc-natvis, r=wesleywiser
debuginfo: Fix NatVis for Rc and Arc with unsized pointees.
Currently, the NatVis for `Rc<T>` and `Arc<T>` does not support unsized `T`. For both `Rc<T>` and `Rc<dyn SomeTrait>` the visualizers fail:
```txt
[Reference count] : -> must be used on pointers and . on structures
[Weak reference count] : -> must be used on pointers and . on structures
```
This PR fixes the visualizers. For slices we can even give show the elements, so one now gets something like:
```txt
slice_rc : { len=3 }
[Length] : 3
[Reference count] : 41
[Weak reference count] : 2
[0] : 1
[1] : 2
[2] : 3
```
r? `@wesleywiser`
Diffstat (limited to 'compiler/rustc_errors/src')
0 files changed, 0 insertions, 0 deletions
