]> git.lizzy.rs Git - rust.git/commitdiff
stabilise shorthand options
authorNick Cameron <ncameron@mozilla.com>
Fri, 18 May 2018 04:37:55 +0000 (16:37 +1200)
committerNick Cameron <ncameron@mozilla.com>
Fri, 18 May 2018 04:38:09 +0000 (16:38 +1200)
cc #1974

src/config/mod.rs

index ed480aa9fa1cc747253f421dbf97100205309c7d..6f9a5fdec782002eb4cc2713fb632af8ee136b6e 100644 (file)
 
     // Options that can change the source code beyond whitespace/blocks (somewhat linty things)
     merge_derives: bool, true, true, "Merge multiple `#[derive(...)]` into a single one";
-    use_try_shorthand: bool, false, false, "Replace uses of the try! macro by the ? shorthand";
+    use_try_shorthand: bool, false, true, "Replace uses of the try! macro by the ? shorthand";
+    use_field_init_shorthand: bool, false, true, "Use field initialization shorthand if possible";
+    force_explicit_abi: bool, true, true, "Always print the abi for extern items";
     condense_wildcard_suffixes: bool, false, false, "Replace strings of _ wildcards by a single .. \
                                               in tuple patterns";
-    force_explicit_abi: bool, true, true, "Always print the abi for extern items";
-    use_field_init_shorthand: bool, false, false, "Use field initialization shorthand if possible";
 
     // Control options (changes the operation of rustfmt, rather than the formatting)
     write_mode: WriteMode, WriteMode::Overwrite, false,