Skip to content

Commit c6e944d

Browse files
committed
---
yaml --- r: 228849 b: refs/heads/try c: 20aa27b h: refs/heads/master i: 228847: c7043ef v: v3
1 parent b8dc6e0 commit c6e944d

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
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: aca2057ed5fb7af3f8905b2bc01f72fa001c35c8
33
refs/heads/snap-stage3: 1af31d4974e33027a68126fa5a5a3c2c6491824f
4-
refs/heads/try: 9ef61f1ee0690b4fb04192a283113901d5764b32
4+
refs/heads/try: 20aa27b7bca3504f6a7672cc88e17a9c286cec4b
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
66
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
77
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try/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/try/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)