diff options
| author | Pietro Albini <pietro@pietroalbini.org> | 2024-04-02 00:26:10 +0200 |
|---|---|---|
| committer | Pietro Albini <pietro@pietroalbini.org> | 2024-04-14 18:45:28 +0200 |
| commit | 13f76235b333f4b9c750be45839b488d7f5c8203 (patch) | |
| tree | 42289a05fb4042517ef2207473b478cdb5f67d9a /src/tools/rustfmt | |
| parent | 2ec337c19336845b371dcd6bc1369e6b34124afd (diff) | |
store the span of the nested part of the use tree in the ast
Diffstat (limited to 'src/tools/rustfmt')
| -rw-r--r-- | src/tools/rustfmt/src/imports.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tools/rustfmt/src/imports.rs b/src/tools/rustfmt/src/imports.rs index 09f6e752338..2da746295fc 100644 --- a/src/tools/rustfmt/src/imports.rs +++ b/src/tools/rustfmt/src/imports.rs @@ -458,7 +458,9 @@ impl UseTree { version, }); } - UseTreeKind::Nested(ref list) => { + UseTreeKind::Nested { + items: ref list, .. + } => { // Extract comments between nested use items. // This needs to be done before sorting use items. let items = itemize_list( |
