mirror of
https://github.com/facebook/sapling.git
synced 2024-12-28 23:54:12 +03:00
cf412e0d6b
Summary: I observed that for whatever reason our setting of `use_try_shorthand = true` in rustfmt.toml was causing entire functions to not get processed by rustfmt. Even files that contain neither `try` nor `?`. Remove it and reformat fbsource. Documentation of that config: - https://github.com/rust-lang/rustfmt/blob/master/Configurations.md#use_try_shorthand We don't particularly care about the value anymore because nobody writes `r#try!(...)` in 2018 edition code. Minimized: ``` fn f() { g( ) // ... .h } ``` This function gets formatted only if use_try_shorthand is not set. The bug is fixed in the rustfmt 2.0 release candidate. Reviewed By: jsgf Differential Revision: D21878162 fbshipit-source-id: b028673c0eb703984d24bf0d2983453fc2a8c212
6 lines
165 B
TOML
6 lines
165 B
TOML
# Get help on options with `rustfmt --help=config`
|
|
# Please keep these in alphabetical order.
|
|
edition = "2018"
|
|
merge_derives = false
|
|
use_field_init_shorthand = true
|