about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-11-14 16:04:29 +0000
committerbors <bors@rust-lang.org>2023-11-14 16:04:29 +0000
commit8d57ad1adeb66bc183ee8171b57839656896b7d5 (patch)
tree143f90f857c62a1bb0dc9c0504cf4106ff934619 /src
parentd97bb195bf7b84815622b235cb51171c1b8f7e51 (diff)
parent121d9f5b16cae379c6b57e27ff14f25e431c44fa (diff)
Auto merge of #117849 - compiler-errors:cycle, r=cjgillot
make `LayoutError::Cycle` carry `ErrorGuaranteed`

Addresses a FIXME, and also I think it's wise for error variants to carry their `ErrorGuaranteed` -- makes it easier to use that `ErrorGuaranteed` for creating, e.g. `TyKind::Error` and other error kinds. Splitting out from #117703.
Diffstat (limited to 'src')
-rw-r--r--src/librustdoc/html/templates/type_layout.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/html/templates/type_layout.html b/src/librustdoc/html/templates/type_layout.html
index b8b7785a2a1..c75fc34a9df 100644
--- a/src/librustdoc/html/templates/type_layout.html
+++ b/src/librustdoc/html/templates/type_layout.html
@@ -54,7 +54,7 @@
             <strong>Note:</strong> Encountered an error during type layout; {#+ #}
             the type failed to be normalized. {# #}
         </p> {# #}
-        {% when Err(LayoutError::Cycle) %}
+        {% when Err(LayoutError::Cycle(_)) %}
         <p> {# #}
             <strong>Note:</strong> Encountered an error during type layout; {#+ #}
             the type's layout depended on the type's layout itself. {# #}