Skip to content

Commit a49eb83

Browse files
pnkfelixbrson
authored andcommitted
Turn nonzeroing move hints back off by default.
This is a temporary workaround for the bugs that have been found in the implementation of PR rust-lang#26173. * pnkfelix is unavailable in the short-term (i.e. for the next week) to fix them. * When the bugs are fixed, we will turn this back on by default. (If you want to play with the known-to-be-buggy optimization in the meantime, you can opt-back in via the debugging option that this commit is toggling.)
1 parent 87f8589 commit a49eb83

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: src/librustc/session/config.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -596,8 +596,8 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options,
596596
"Force drop flag checks on or off"),
597597
trace_macros: bool = (false, parse_bool,
598598
"For every macro invocation, print its name and arguments"),
599-
disable_nonzeroing_move_hints: bool = (false, parse_bool,
600-
"Force nonzeroing move optimization off"),
599+
enable_nonzeroing_move_hints: bool = (false, parse_bool,
600+
"Force nonzeroing move optimization on"),
601601
}
602602

603603
pub fn default_lib_output() -> CrateType {

Diff for: src/librustc/session/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ impl Session {
273273
self.opts.debugging_opts.print_enum_sizes
274274
}
275275
pub fn nonzeroing_move_hints(&self) -> bool {
276-
!self.opts.debugging_opts.disable_nonzeroing_move_hints
276+
self.opts.debugging_opts.enable_nonzeroing_move_hints
277277
}
278278
pub fn sysroot<'a>(&'a self) -> &'a Path {
279279
match self.opts.maybe_sysroot {

0 commit comments

Comments
 (0)