diff options
| author | Michael Howell <michael@notriddle.com> | 2022-08-16 12:48:04 -0700 |
|---|---|---|
| committer | Michael Howell <michael@notriddle.com> | 2022-08-16 12:48:04 -0700 |
| commit | 2aa4aa70ddd11ebc56667dbb3907c93a5a0176c2 (patch) | |
| tree | aed8324936a1f72c5286fe25e883f52eaca33025 /src/librustdoc/html/format.rs | |
| parent | a39bdb1d6b9eaf23f2636baee0949d67890abcd8 (diff) | |
| download | rust-2aa4aa70ddd11ebc56667dbb3907c93a5a0176c2.tar.gz rust-2aa4aa70ddd11ebc56667dbb3907c93a5a0176c2.zip | |
rustdoc: factor Type::QPath out into its own box
This reduces the size of Type.
Diffstat (limited to 'src/librustdoc/html/format.rs')
| -rw-r--r-- | src/librustdoc/html/format.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/librustdoc/html/format.rs b/src/librustdoc/html/format.rs index 3dee4d1acc8..b023792e95a 100644 --- a/src/librustdoc/html/format.rs +++ b/src/librustdoc/html/format.rs @@ -1079,7 +1079,12 @@ fn fmt_type<'cx>( write!(f, "impl {}", print_generic_bounds(bounds, cx)) } } - clean::QPath { ref assoc, ref self_type, ref trait_, should_show_cast } => { + clean::QPath(box clean::QPathData { + ref assoc, + ref self_type, + ref trait_, + should_show_cast, + }) => { if f.alternate() { if should_show_cast { write!(f, "<{:#} as {:#}>::", self_type.print(cx), trait_.print(cx))? |
