You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This allows overriding `use_small_heuristics` in doc code. This is
particularly useful for code that wants to use
`use_small_heuristics = "Max"` internally but present doctests and
examples using `use_small_heuristics = "Default"`.
Copy file name to clipboardExpand all lines: Configurations.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1051,6 +1051,14 @@ Max width for code snippets included in doc comments. Only used if [`format_code
1051
1051
-**Possible values**: any positive integer that is less than or equal to the value specified for [`max_width`](#max_width)
1052
1052
-**Stable**: No (tracking issue: [#5359](https://github.com/rust-lang/rustfmt/issues/5359))
1053
1053
1054
+
## `doc_comment_code_block_small_heuristics`
1055
+
1056
+
Value for [`use_small_heuristics`](#use_small_heuristics) for use in code blocks in doc comments. Only used if [`format_code_in_doc_comments`](#format_code_in_doc_comments) is true.
-**Stable**: No (tracking issue: [#FIXME](https://github.com/rust-lang/rustfmt/issues/FIXME))
1061
+
1054
1062
## `format_generated_files`
1055
1063
1056
1064
Format generated files. A file is considered generated if any of the first several lines contain a `@generated` comment marker. The number of lines to check is configured by `generated_marker_line_search_limit`.
0 commit comments