about summary refs log tree commit diff
path: root/compiler/rustc_errors/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-06-16 09:10:22 +0200
committerGitHub <noreply@github.com>2022-06-16 09:10:22 +0200
commitae58a55d0348681c1b7c845ebfd20eb9ee554b2e (patch)
tree61a63dc4f7f42248508edc48c0e6380c6dae3881 /compiler/rustc_errors/src
parentf4297b06e8db75fcf6b3feeae91739ba6ffd4d66 (diff)
parent95adaa22e0e2cb6ce9cf0521232620ffdb7b5f00 (diff)
downloadrust-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