Skip to content

Commit 1dc1152

Browse files
Zalathartshepang
authored andcommitted
Remove outdated references to -Z dump-mir-spanview
This flag was removed by <rust-lang/rust#119566>.
1 parent f3f15a9 commit 1dc1152

File tree

3 files changed

+3
-26
lines changed

3 files changed

+3
-26
lines changed

src/compiler-debugging.md

-18
Original file line numberDiff line numberDiff line change
@@ -241,24 +241,6 @@ $ dot -T pdf maybe_init_suffix.dot > maybe_init_suffix.pdf
241241
$ firefox maybe_init_suffix.pdf # Or your favorite pdf viewer
242242
```
243243

244-
## Viewing Spanview output (.html files)
245-
[viewing-spanview-output]: #viewing-spanview-output
246-
247-
In addition to [graphviz output](#formatting-graphviz-output-dot-files), MIR debugging
248-
flags include an option to generate a MIR representation called `Spanview` that
249-
uses HTML to highlight code regions in the original source code and display
250-
compiler metadata associated with each region.
251-
[`-Z dump-mir-spanview`](./mir/debugging.md), for example, highlights spans
252-
associated with each MIR `Statement`, `Terminator`, and/or `BasicBlock`.
253-
254-
These `.html` files use CSS features to dynamically expand spans obscured by
255-
overlapping spans, and native tooltips (based on the HTML `title` attribute) to
256-
reveal the actual MIR elements, as text.
257-
258-
To view these files, simply use a modern browser, or a CSS-capable HTML preview
259-
feature in a modern IDE. (The default HTML preview pane in *VS Code* is known to
260-
work, for instance.)
261-
262244
## Narrowing (Bisecting) Regressions
263245

264246
The [cargo-bisect-rustc][bisect] tool can be used as a quick and easy way to

src/mir/debugging.md

-5
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,6 @@ additional output formats, including:
88
control-flow graph
99
* `-Z dump-mir-dataflow` - dumps a `.dot` file showing the [dataflow state] at
1010
each point in the control-flow graph
11-
* `-Z dump-mir-spanview` - dumps an `.html` file that highlights the source
12-
spans associated with MIR elements (including mouse-over actions to reveal
13-
elements obscured by overlaps, and tooltips to view the MIR statements).
14-
This flag takes an optional value: `statement` (the default), `terminator`, or
15-
`block`, to generate span highlights with different levels of granularity.
1611

1712
`-Z dump-mir=F` is a handy compiler option that will let you view the MIR for
1813
each function at each stage of compilation. `-Z dump-mir` takes a **filter** `F`

src/tests/compiletest.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -354,9 +354,9 @@ There are several forms the `EMIT_MIR` comment can take:
354354

355355
This is useful if you want to see how an optimization changes the MIR.
356356

357-
* `// EMIT_MIR $MIR_PATH.dot` or `$MIR_PATH.html` — These are special cases
358-
for other MIR outputs (via `-Z dump-mir-graphviz` and `-Z dump-mir-spanview`)
359-
that will check that the output matches the given file.
357+
* `// EMIT_MIR $MIR_PATH.dot` — When using specific flags that dump additional
358+
MIR data (e.g. `-Z dump-mir-graphviz` to produce `.dot` files), this will
359+
check that the output matches the given file.
360360

361361
By default 32 bit and 64 bit targets use the same dump files, which can be
362362
problematic in the presence of pointers in constants or other bit width

0 commit comments

Comments
 (0)