diff options
| author | bors <bors@rust-lang.org> | 2023-09-28 05:42:54 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-09-28 05:42:54 +0000 |
| commit | 024279a2e931c0bc68b235fd683ebcefc3fc718b (patch) | |
| tree | a32699a88769d84881ac8a01de578a66f10f52d3 /src/librustdoc/html | |
| parent | 1a3dd7ea7d929db798b7095d3c25f50b49a52fb4 (diff) | |
| parent | f2623ac49b3dbcee5a0828c035157ca92bd0db2c (diff) | |
| download | rust-024279a2e931c0bc68b235fd683ebcefc3fc718b.tar.gz rust-024279a2e931c0bc68b235fd683ebcefc3fc718b.zip | |
Auto merge of #3089 - rust-lang:rustup-2023-09-28, r=RalfJung
Automatic sync from rustc
Diffstat (limited to 'src/librustdoc/html')
| -rw-r--r-- | src/librustdoc/html/markdown.rs | 2 | ||||
| -rw-r--r-- | src/librustdoc/html/templates/type_layout.html | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/librustdoc/html/markdown.rs b/src/librustdoc/html/markdown.rs index 6dbf2185e3d..d24e6e5faf5 100644 --- a/src/librustdoc/html/markdown.rs +++ b/src/librustdoc/html/markdown.rs @@ -1083,7 +1083,7 @@ impl<'a, 'tcx> TagIterator<'a, 'tcx> { } fn parse_in_attribute_block(&mut self) -> Option<LangStringToken<'a>> { - while let Some((pos, c)) = self.inner.next() { + if let Some((pos, c)) = self.inner.next() { if c == '}' { self.is_in_attribute_block = false; return self.next(); diff --git a/src/librustdoc/html/templates/type_layout.html b/src/librustdoc/html/templates/type_layout.html index 287cbab07d2..b8b7785a2a1 100644 --- a/src/librustdoc/html/templates/type_layout.html +++ b/src/librustdoc/html/templates/type_layout.html @@ -9,12 +9,12 @@ <strong>Note:</strong> Most layout information is <strong>completely {#+ #} unstable</strong> and may even differ between compilations. {#+ #} The only exception is types with certain <code>repr(...)</code> {#+ #} - attributes. Please see the Rust Reference’s {#+ #} + attributes. Please see the Rust Reference's {#+ #} <a href="https://doc.rust-lang.org/reference/type-layout.html">“Type Layout”</a> {#+ #} chapter for details on type layout guarantees. {# #} </p> {# #} </div> {# #} - <p><strong>Size:</strong> {{ type_layout_size|safe }}</p> {# #} + <p><strong>Size:</strong> {{+ type_layout_size|safe }}</p> {# #} {% if !variants.is_empty() %} <p> {# #} <strong>Size for each variant:</strong> {# #} |
