]> git.lizzy.rs Git - rust.git/commitdiff
Remove unused option flag
authorShotaro Yamada <sinkuu@sinkuu.xyz>
Fri, 20 Apr 2018 10:53:55 +0000 (19:53 +0900)
committerShotaro Yamada <sinkuu@sinkuu.xyz>
Fri, 27 Jul 2018 08:42:41 +0000 (17:42 +0900)
src/librustc/session/config.rs
src/librustc/session/mod.rs

index 54d9e24bbc0e237134ff86936435643b41ab18a2..9d25d1cad6f5330852f3dc8a725b52a9d6ffa5cd 100644 (file)
@@ -1233,8 +1233,6 @@ fn parse_cross_lang_lto(slot: &mut CrossLangLto, v: Option<&str>) -> bool {
           "for every macro invocation, print its name and arguments"),
     debug_macros: bool = (false, parse_bool, [TRACKED],
           "emit line numbers debug info inside macros"),
-    enable_nonzeroing_move_hints: bool = (false, parse_bool, [TRACKED],
-          "force nonzeroing move optimization on"),
     keep_hygiene_data: bool = (false, parse_bool, [UNTRACKED],
           "don't clear the hygiene data after analysis"),
     keep_ast: bool = (false, parse_bool, [UNTRACKED],
@@ -3153,10 +3151,6 @@ fn test_debugging_options_tracking_hash() {
         opts.debugging_opts.force_overflow_checks = Some(true);
         assert!(reference.dep_tracking_hash() != opts.dep_tracking_hash());
 
-        opts = reference.clone();
-        opts.debugging_opts.enable_nonzeroing_move_hints = true;
-        assert!(reference.dep_tracking_hash() != opts.dep_tracking_hash());
-
         opts = reference.clone();
         opts.debugging_opts.show_span = Some(String::from("abc"));
         assert!(reference.dep_tracking_hash() != opts.dep_tracking_hash());
index 77a1129f66d27726dc67aab94a3bec227a88a177..7b8bbbf4a10e061eb83becc03886f980e460ff5f 100644 (file)
@@ -624,9 +624,6 @@ pub fn no_landing_pads(&self) -> bool {
     pub fn unstable_options(&self) -> bool {
         self.opts.debugging_opts.unstable_options
     }
-    pub fn nonzeroing_move_hints(&self) -> bool {
-        self.opts.debugging_opts.enable_nonzeroing_move_hints
-    }
     pub fn overflow_checks(&self) -> bool {
         self.opts
             .cg