diff options
author | Stiopa Koltsov <nga@meta.com> | 2024-01-09 22:59:04 -0800 |
---|---|---|
committer | Facebook GitHub Bot <facebook-github-bot@users.noreply.github.com> | 2024-01-09 22:59:04 -0800 |
commit | cb9d1243276fab7d47f35d0faf76a608bce0bc95 (patch) | |
tree | c2de0b67874f256e5bdac0abc4e625101b00cb12 | |
parent | 15db2a4ad0e30f15c169821e1e37c390bb16ba42 (diff) |
format_code_in_doc_comments = true
Summary:
Another attempt to enable the option.
[We agreed](https://fb.workplace.com/groups/rust.language/posts/24184800024475285) we want it everywhere by default.
# Help us, help yourself
If you can help enabling this option, consider running this command ahead of time:
```
hg files . -I 'your_project/**/*.rs' | \
xargs arc rustfmt --config format_code_in_doc_comments=true
```
Fix the which is not landed yet:
```
hg st --rev .~1 -n -ma -I '**/*.rs' | \
xargs arc rustfmt --config format_code_in_doc_comments=true
```
Fix the stack of commits: checkout the top commit, and then:
```
# must include changes from D52632478
fbcode/scripts/nga/stack-rustfmt-new
```
# Previous attempt
D42766542
Reviewed By: zertosh, dtolnay
Differential Revision: D52632085
fbshipit-source-id: f45998c76076470d66339eb99f585856d2114999
-rw-r--r-- | rustfmt.toml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/rustfmt.toml b/rustfmt.toml index b7258ed0..336df502 100644 --- a/rustfmt.toml +++ b/rustfmt.toml @@ -1,6 +1,7 @@ # Get help on options with `rustfmt --help=config` # Please keep these in alphabetical order. edition = "2021" +format_code_in_doc_comments = true group_imports = "StdExternalCrate" imports_granularity = "Item" merge_derives = false |