diff --git a/src/librustdoc/html/templates/type_layout.html b/src/librustdoc/html/templates/type_layout.html index 9e2c2049e31b..58b220c7428f 100644 --- a/src/librustdoc/html/templates/type_layout.html +++ b/src/librustdoc/html/templates/type_layout.html @@ -16,7 +16,9 @@ {# #}
Size: {{ type_layout_size|safe }}
{# #} {% if !variants.is_empty() %} -Size for each variant:
{# #} +{# #} + Size for each variant: {# #} +
{# #}Note: Unable to compute type layout, {#+ #} - possibly due to this type having generic parameters. {#+ #} - Layout can only be computed for concrete, fully-instantiated types.
{# #} +{# #} + Note: Unable to compute type layout, {#+ #} + possibly due to this type having generic parameters. {#+ #} + Layout can only be computed for concrete, fully-instantiated types. {# #} +
{# #} {# This kind of error probably can't happen with valid code, but we don't want to panic and prevent the docs from building, so we just let the user know that we couldn't compute the layout. #} {% when Err(LayoutError::SizeOverflow(_)) %} -Note: Encountered an error during type layout; {#+ #} - the type was too big.
{# #} +{# #} + Note: Encountered an error during type layout; {#+ #} + the type was too big. {# #} +
{# #} {% when Err(LayoutError::NormalizationFailure(_, _)) %} -Note: Encountered an error during type layout; {#+ #} - the type failed to be normalized.
{# #} +{# #} + Note: Encountered an error during type layout; {#+ #} + the type failed to be normalized. {# #} +
{# #} {% endmatch %} {# #}