diff options
| author | Nick Cameron <nrc@ncameron.org> | 2018-07-10 08:34:04 +1200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-07-10 08:34:04 +1200 |
| commit | fba6b68bf2eee8c47da423a7e1204486eb77b489 (patch) | |
| tree | 5c798fc1369c19cf6742b328a0188ac96e0b7165 /src/lib.rs | |
| parent | 4bfd47caac731e3e706b8e8772367927a14dd84e (diff) | |
| parent | 60ce411b5310c8af09de2d552e67b0593f3f1d4b (diff) | |
Merge pull request #2836 from topecongiro/async-closure
Format async closure
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs index 114e72c4847..817ed426e52 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -33,6 +33,7 @@ extern crate serde; extern crate serde_derive; extern crate serde_json; extern crate syntax; +extern crate syntax_pos; extern crate toml; extern crate unicode_segmentation; @@ -793,6 +794,7 @@ fn format_input_inner<T: Write>( config: &Config, mut out: Option<&mut T>, ) -> Result<(Summary, FileMap, FormatReport), (ErrorKind, Summary)> { + syntax_pos::hygiene::set_default_edition(config.edition().to_libsyntax_pos_edition()); let mut summary = Summary::default(); if config.disable_all_formatting() { // When the input is from stdin, echo back the input. |
