@@ -16,7 +16,9 @@ <h2 id="layout" class="small-section-header"> {# #}
16
16
</ div > {# #}
17
17
< p > < strong > Size:</ strong > {{ type_layout_size|safe }}</ p > {# #}
18
18
{% if !variants.is_empty() %}
19
- < p > < strong > Size for each variant:</ strong > </ p > {# #}
19
+ < p > {# #}
20
+ < strong > Size for each variant:</ strong > {# #}
21
+ </ p > {# #}
20
22
< ul > {# #}
21
23
{% for (name, layout_size) in variants %}
22
24
< li > {# #}
@@ -29,17 +31,23 @@ <h2 id="layout" class="small-section-header"> {# #}
29
31
{# This kind of layout error can occur with valid code, e.g. if you try to
30
32
get the layout of a generic type such as `Vec< T > `. #}
31
33
{% when Err(LayoutError::Unknown(_)) %}
32
- < p > < strong > Note:</ strong > Unable to compute type layout, {#+ #}
33
- possibly due to this type having generic parameters. {#+ #}
34
- Layout can only be computed for concrete, fully-instantiated types.</ p > {# #}
34
+ < p > {# #}
35
+ < strong > Note:</ strong > Unable to compute type layout, {#+ #}
36
+ possibly due to this type having generic parameters. {#+ #}
37
+ Layout can only be computed for concrete, fully-instantiated types. {# #}
38
+ </ p > {# #}
35
39
{# This kind of error probably can't happen with valid code, but we don't
36
40
want to panic and prevent the docs from building, so we just let the
37
41
user know that we couldn't compute the layout. #}
38
42
{% when Err(LayoutError::SizeOverflow(_)) %}
39
- < p > < strong > Note:</ strong > Encountered an error during type layout; {#+ #}
40
- the type was too big.</ p > {# #}
43
+ < p > {# #}
44
+ < strong > Note:</ strong > Encountered an error during type layout; {#+ #}
45
+ the type was too big. {# #}
46
+ </ p > {# #}
41
47
{% when Err(LayoutError::NormalizationFailure(_, _)) %}
42
- < p > < strong > Note:</ strong > Encountered an error during type layout; {#+ #}
43
- the type failed to be normalized.</ p > {# #}
48
+ < p > {# #}
49
+ < strong > Note:</ strong > Encountered an error during type layout; {#+ #}
50
+ the type failed to be normalized. {# #}
51
+ </ p > {# #}
44
52
{% endmatch %}
45
53
</ div > {# #}
0 commit comments