about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-07-29 06:13:05 +0200
committerGitHub <noreply@github.com>2023-07-29 06:13:05 +0200
commit5dee519386af4added99455f653545bcc1ea1b43 (patch)
tree14f949077b86c60f8f2afad46c41988b065a21b4 /src
parentca1f813cc305ec504d7e49672c340f0d3a597e5a (diff)
parentd45eb41c500e35bd4ac155b1b49e0920c746abfc (diff)
downloadrust-5dee519386af4added99455f653545bcc1ea1b43.tar.gz
rust-5dee519386af4added99455f653545bcc1ea1b43.zip
Rollup merge of #113773 - compiler-errors:err-layout-bail, r=cjgillot
Don't attempt to compute layout of type referencing error

Leads to more ICEs and strange diagnostics than are worth it.

Fixes #113760
Diffstat (limited to 'src')
-rw-r--r--src/librustdoc/html/templates/type_layout.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/librustdoc/html/templates/type_layout.html b/src/librustdoc/html/templates/type_layout.html
index 20e09a54805..287cbab07d2 100644
--- a/src/librustdoc/html/templates/type_layout.html
+++ b/src/librustdoc/html/templates/type_layout.html
@@ -44,6 +44,11 @@
             <strong>Note:</strong> Encountered an error during type layout; {#+ #}
             the type was too big. {# #}
         </p> {# #}
+        {% when Err(LayoutError::ReferencesError(_)) %}
+        <p> {# #}
+            <strong>Note:</strong> Encountered an error during type layout; {#+ #}
+            the type references errors. {# #}
+        </p> {# #}
         {% when Err(LayoutError::NormalizationFailure(_, _)) %}
         <p> {# #}
             <strong>Note:</strong> Encountered an error during type layout; {#+ #}