Skip to content

Commit 3170956

Browse files
committed
Remove unused option flag
1 parent 3d0e933 commit 3170956

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

src/librustc/session/config.rs

-6
Original file line numberDiff line numberDiff line change
@@ -1233,8 +1233,6 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options,
12331233
"for every macro invocation, print its name and arguments"),
12341234
debug_macros: bool = (false, parse_bool, [TRACKED],
12351235
"emit line numbers debug info inside macros"),
1236-
enable_nonzeroing_move_hints: bool = (false, parse_bool, [TRACKED],
1237-
"force nonzeroing move optimization on"),
12381236
keep_hygiene_data: bool = (false, parse_bool, [UNTRACKED],
12391237
"don't clear the hygiene data after analysis"),
12401238
keep_ast: bool = (false, parse_bool, [UNTRACKED],
@@ -3153,10 +3151,6 @@ mod tests {
31533151
opts.debugging_opts.force_overflow_checks = Some(true);
31543152
assert!(reference.dep_tracking_hash() != opts.dep_tracking_hash());
31553153

3156-
opts = reference.clone();
3157-
opts.debugging_opts.enable_nonzeroing_move_hints = true;
3158-
assert!(reference.dep_tracking_hash() != opts.dep_tracking_hash());
3159-
31603154
opts = reference.clone();
31613155
opts.debugging_opts.show_span = Some(String::from("abc"));
31623156
assert!(reference.dep_tracking_hash() != opts.dep_tracking_hash());

src/librustc/session/mod.rs

-3
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)