Skip to content

Commit 49a06c2

Browse files
committed
---
yaml --- r: 226239 b: refs/heads/snap-stage3 c: 20aa27b h: refs/heads/master i: 226237: a004429 226235: 257182a 226231: e0092c6 226223: 3e98bd9 226207: 0681940 226175: c2b9d7e v: v3
1 parent cf1ec1a commit 49a06c2

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,6 +1,6 @@
11
---
22
refs/heads/master: e5d90d98402475b6e154ce216f9efcb80da1a747
3-
refs/heads/snap-stage3: 9ef61f1ee0690b4fb04192a283113901d5764b32
3+
refs/heads/snap-stage3: 20aa27b7bca3504f6a7672cc88e17a9c286cec4b
44
refs/heads/try: b53c0f93eedcdedd4fd89bccc5a3a09d1c5cd23e
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
66
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/snap-stage3/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/snap-stage3/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)