Skip to content

Commit a20078f

Browse files
committed
Add drop_tracking_mir option.
1 parent cb873b2 commit a20078f

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

compiler/rustc_session/src/options.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1290,6 +1290,8 @@ options! {
12901290
(default: no)"),
12911291
drop_tracking: bool = (false, parse_bool, [TRACKED],
12921292
"enables drop tracking in generators (default: no)"),
1293+
drop_tracking_mir: bool = (false, parse_bool, [TRACKED],
1294+
"enables drop tracking on MIR in generators (default: no)"),
12931295
dual_proc_macros: bool = (false, parse_bool, [TRACKED],
12941296
"load proc macros for both target and host, but only link to the target (default: no)"),
12951297
dump_dep_graph: bool = (false, parse_bool, [UNTRACKED],

tests/rustdoc-ui/z-help.stdout

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
-Z dlltool=val -- import library generation tool (windows-gnu only)
2121
-Z dont-buffer-diagnostics=val -- emit diagnostics rather than buffering (breaks NLL error downgrading, sorting) (default: no)
2222
-Z drop-tracking=val -- enables drop tracking in generators (default: no)
23+
-Z drop-tracking-mir=val -- enables drop tracking on MIR in generators (default: no)
2324
-Z dual-proc-macros=val -- load proc macros for both target and host, but only link to the target (default: no)
2425
-Z dump-dep-graph=val -- dump the dependency graph to $RUST_DEP_GRAPH (default: /tmp/dep_graph.gv) (default: no)
2526
-Z dump-drop-tracking-cfg=val -- dump drop-tracking control-flow graph as a `.dot` file (default: no)

0 commit comments

Comments
 (0)