Skip to content

Commit c9347f7

Browse files
authored
Rollup merge of rust-lang#52765 - sinkuu:remove_nonzeroing_move_opt, r=pnkfelix
Remove unused "-Zenable_nonzeroing_move_hints" flag Removing a dead option which seems to be a remnant of the old drop-flag system.
2 parents 1fad057 + 3170956 commit c9347f7

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

src/librustc/session/config.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1247,8 +1247,6 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options,
12471247
"for every macro invocation, print its name and arguments"),
12481248
debug_macros: bool = (false, parse_bool, [TRACKED],
12491249
"emit line numbers debug info inside macros"),
1250-
enable_nonzeroing_move_hints: bool = (false, parse_bool, [TRACKED],
1251-
"force nonzeroing move optimization on"),
12521250
keep_hygiene_data: bool = (false, parse_bool, [UNTRACKED],
12531251
"don't clear the hygiene data after analysis"),
12541252
keep_ast: bool = (false, parse_bool, [UNTRACKED],
@@ -3168,10 +3166,6 @@ mod tests {
31683166
opts.debugging_opts.force_overflow_checks = Some(true);
31693167
assert!(reference.dep_tracking_hash() != opts.dep_tracking_hash());
31703168

3171-
opts = reference.clone();
3172-
opts.debugging_opts.enable_nonzeroing_move_hints = true;
3173-
assert!(reference.dep_tracking_hash() != opts.dep_tracking_hash());
3174-
31753169
opts = reference.clone();
31763170
opts.debugging_opts.show_span = Some(String::from("abc"));
31773171
assert!(reference.dep_tracking_hash() != opts.dep_tracking_hash());

src/librustc/session/mod.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -624,9 +624,6 @@ impl Session {
624624
pub fn unstable_options(&self) -> bool {
625625
self.opts.debugging_opts.unstable_options
626626
}
627-
pub fn nonzeroing_move_hints(&self) -> bool {
628-
self.opts.debugging_opts.enable_nonzeroing_move_hints
629-
}
630627
pub fn overflow_checks(&self) -> bool {
631628
self.opts
632629
.cg

0 commit comments

Comments
 (0)