Skip to content

Commit

Permalink
format_code_in_doc_comments = true
Browse files Browse the repository at this point in the history
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
  • Loading branch information
stepancheg authored and facebook-github-bot committed Jan 10, 2024
1 parent b9200ff commit 58af4ef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rustfmt.toml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 58af4ef

Please sign in to comment.