diff options
| author | Stuart Cook <Zalathar@users.noreply.github.com> | 2025-08-09 13:58:45 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-09 13:58:45 +1000 |
| commit | 35f2fb9453e1996540ef06658dc96f68a7aabed7 (patch) | |
| tree | 82f351381b8cd467d7b074a13ea399333eeb37b2 /tests/rustdoc-js-std/parser-slice-array.js | |
| parent | 7f77dfdda38eba560c9422d6d1d7c7541f833a65 (diff) | |
| parent | 648e3fc3938b4b5127e7591187ce523e660ade44 (diff) | |
| download | rust-35f2fb9453e1996540ef06658dc96f68a7aabed7.tar.gz rust-35f2fb9453e1996540ef06658dc96f68a7aabed7.zip | |
Rollup merge of #144988 - amandasystems:more-detailed-region-graph, r=lcnr
Add annotations to the graphviz region graph on region origins
This adds
- `(ex<'e>)` for regions whose origin is existential, with name if one exists,
- `(for<'p>)` for regions whose origin is a placeholder, with name if one exists
For any region whose name we don't know, use `'_`.
This has helped _my_ debugging and it doesn't create too bad clutter, I feel.
The change ~~is~~was ridiculously small, but I turned it into a separate PR so we can bikeshed the format.
The following snippet:
```rust
struct Co<'a>(&'a ());
struct Contra<'a>(fn(&'a ()));
// `exists<'e> forall<'p> 'p: 'e` -> ERROR
fn p_outlives_e(
x: for<'e> fn(for<'p> fn(fn(fn(Contra<'e>, Co<'p>)))),
) -> fn(fn(fn(for<'unify> fn(Contra<'unify>, Co<'unify>)))) {
x
```
Gives this graph:

Diffstat (limited to 'tests/rustdoc-js-std/parser-slice-array.js')
0 files changed, 0 insertions, 0 deletions
