about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/example/std_example.rs
diff options
context:
space:
mode:
authorYacin Tmimi <yacintmimi@gmail.com>2022-03-20 13:21:44 -0400
committerCaleb Cartwright <calebcartwright@users.noreply.github.com>2022-03-20 21:39:12 -0500
commite41329ce87409df929ecfa191297f944472cc999 (patch)
treebdebf3d7bde474cbd31818887d6c8aecc513cd30 /compiler/rustc_codegen_gcc/example/std_example.rs
parenta36dc368d7c914014356c3d1f240f2caaf4692c2 (diff)
downloadrust-e41329ce87409df929ecfa191297f944472cc999.tar.gz
rust-e41329ce87409df929ecfa191297f944472cc999.zip
Search for struct body span after any generic arguments
Fixes 5273

Previously, rustfmt searched for the start of a struct body after the
opening `{`. In most cases this works just fine, but const values can
also be defined between `{ }`, which lead to issues when rewriting the
struct body.

Now, rustfmt will search for the `{` after the generic argument list to
guarantee that the `{` it finds is the start of the struct body.
Diffstat (limited to 'compiler/rustc_codegen_gcc/example/std_example.rs')
0 files changed, 0 insertions, 0 deletions