File tree 3 files changed +3
-26
lines changed
3 files changed +3
-26
lines changed Original file line number Diff line number Diff line change @@ -241,24 +241,6 @@ $ dot -T pdf maybe_init_suffix.dot > maybe_init_suffix.pdf
241
241
$ firefox maybe_init_suffix.pdf # Or your favorite pdf viewer
242
242
```
243
243
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
-
262
244
## Narrowing (Bisecting) Regressions
263
245
264
246
The [ cargo-bisect-rustc] [ bisect ] tool can be used as a quick and easy way to
Original file line number Diff line number Diff line change @@ -8,11 +8,6 @@ additional output formats, including:
8
8
control-flow graph
9
9
* ` -Z dump-mir-dataflow ` - dumps a ` .dot ` file showing the [ dataflow state] at
10
10
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.
16
11
17
12
` -Z dump-mir=F ` is a handy compiler option that will let you view the MIR for
18
13
each function at each stage of compilation. ` -Z dump-mir ` takes a ** filter** ` F `
Original file line number Diff line number Diff line change @@ -354,9 +354,9 @@ There are several forms the `EMIT_MIR` comment can take:
354
354
355
355
This is useful if you want to see how an optimization changes the MIR.
356
356
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.
360
360
361
361
By default 32 bit and 64 bit targets use the same dump files, which can be
362
362
problematic in the presence of pointers in constants or other bit width
You can’t perform that action at this time.
0 commit comments