diff options
| author | Yacin Tmimi <yacintmimi@gmail.com> | 2022-03-20 13:21:44 -0400 |
|---|---|---|
| committer | Caleb Cartwright <calebcartwright@users.noreply.github.com> | 2022-03-20 21:39:12 -0500 |
| commit | e41329ce87409df929ecfa191297f944472cc999 (patch) | |
| tree | bdebf3d7bde474cbd31818887d6c8aecc513cd30 /compiler/rustc_codegen_gcc/example/std_example.rs | |
| parent | a36dc368d7c914014356c3d1f240f2caaf4692c2 (diff) | |
| download | rust-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
