Skip to content

Commit 71e44e8

Browse files
committed
Turn on -Zdrop-tracking by default
1 parent 07c993e commit 71e44e8

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

compiler/rustc_interface/src/tests.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,7 @@ fn test_unstable_options_tracking_hash() {
738738
tracked!(debug_info_for_profiling, true);
739739
tracked!(debug_macros, true);
740740
tracked!(dep_info_omit_d_target, true);
741-
tracked!(drop_tracking, true);
741+
tracked!(drop_tracking, false);
742742
tracked!(dual_proc_macros, true);
743743
tracked!(dwarf_version, Some(5));
744744
tracked!(emit_thin_lto, false);

compiler/rustc_session/src/options.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1366,8 +1366,8 @@ options! {
13661366
dont_buffer_diagnostics: bool = (false, parse_bool, [UNTRACKED],
13671367
"emit diagnostics rather than buffering (breaks NLL error downgrading, sorting) \
13681368
(default: no)"),
1369-
drop_tracking: bool = (false, parse_bool, [TRACKED],
1370-
"enables drop tracking in generators (default: no)"),
1369+
drop_tracking: bool = (true, parse_bool, [TRACKED],
1370+
"enables drop tracking in generators (default: yes)"),
13711371
drop_tracking_mir: bool = (false, parse_bool, [TRACKED],
13721372
"enables drop tracking on MIR in generators (default: no)"),
13731373
dual_proc_macros: bool = (false, parse_bool, [TRACKED],

tests/rustdoc-ui/z-help.stdout

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
-Z diagnostic-width=val -- set the current output width for diagnostic truncation
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)
22-
-Z drop-tracking=val -- enables drop tracking in generators (default: no)
22+
-Z drop-tracking=val -- enables drop tracking in generators (default: yes)
2323
-Z drop-tracking-mir=val -- enables drop tracking on MIR in generators (default: no)
2424
-Z dual-proc-macros=val -- load proc macros for both target and host, but only link to the target (default: no)
2525
-Z dump-dep-graph=val -- dump the dependency graph to $RUST_DEP_GRAPH (default: /tmp/dep_graph.gv) (default: no)

0 commit comments

Comments
 (0)