diff options
| author | Ayaz Hafiz <ayaz.hafiz.1@gmail.com> | 2020-05-09 15:19:48 -0700 |
|---|---|---|
| committer | Caleb Cartwright <calebcartwright@users.noreply.github.com> | 2020-10-01 19:12:22 -0500 |
| commit | a15800a32778c35e32efe47f7e6889784e06ebcc (patch) | |
| tree | 7c2e54ee09bb9d6c04f25d98583da31222f37f04 /src/format-diff | |
| parent | 8eedd823178229589183f5bdca5d054e36b702ea (diff) | |
| download | rust-a15800a32778c35e32efe47f7e6889784e06ebcc.tar.gz rust-a15800a32778c35e32efe47f7e6889784e06ebcc.zip | |
Preserve and format type aliases in extern blocks
Previously, non-trivial type aliases in extern blocks were dropped by rustfmt because only the type alias name would be passed to a rewritter. This commit fixes that by passing all type information (generics, bounds, and assignments) to a type alias rewritter, and consolidates `rewrite_type_alias` and `rewrite_associated_type` as one function.
Diffstat (limited to 'src/format-diff')
0 files changed, 0 insertions, 0 deletions
