Skip to content

Commit 30facf9

Browse files
committed
---
yaml --- r: 222175 b: refs/heads/tmp c: 20aa27b h: refs/heads/master i: 222173: 042dc13 222171: babd755 222167: 7668ef3 222159: 0cac4ae 222143: 518a897 v: v3
1 parent 94ba8a9 commit 30facf9

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
2525
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
2626
refs/heads/beta: 2b45108ecb944d63daba0f1b5529ac4c8afdc295
2727
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
28-
refs/heads/tmp: 9ef61f1ee0690b4fb04192a283113901d5764b32
28+
refs/heads/tmp: 20aa27b7bca3504f6a7672cc88e17a9c286cec4b
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: e58601ab085591c71a27ae82137fc313222c2270
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828

branches/tmp/src/librustc/session/config.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -594,6 +594,8 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options,
594594
"Force drop flag checks on or off"),
595595
trace_macros: bool = (false, parse_bool,
596596
"For every macro invocation, print its name and arguments"),
597+
disable_nonzeroing_move_hints: bool = (false, parse_bool,
598+
"Force nonzeroing move optimization off"),
597599
}
598600

599601
pub fn default_lib_output() -> CrateType {

branches/tmp/src/librustc/session/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,9 @@ impl Session {
272272
pub fn print_enum_sizes(&self) -> bool {
273273
self.opts.debugging_opts.print_enum_sizes
274274
}
275+
pub fn nonzeroing_move_hints(&self) -> bool {
276+
!self.opts.debugging_opts.disable_nonzeroing_move_hints
277+
}
275278
pub fn sysroot<'a>(&'a self) -> &'a Path {
276279
match self.opts.maybe_sysroot {
277280
Some (ref sysroot) => sysroot,

0 commit comments

Comments
 (0)