]> git.lizzy.rs Git - rust.git/blobdiff - src/librustdoc/html/render/print_item.rs
Auto merge of #91255 - b-naber:normalization-ice, r=jackh276
[rust.git] / src / librustdoc / html / render / print_item.rs
index d3738cfa3e7815af2c3935b4e9b2407f021ba7f1..62fdec15af42091bf4db8381f2d815bf84b09140 100644 (file)
@@ -1769,6 +1769,13 @@ fn write_size_of_layout(w: &mut Buffer, layout: &Layout, tag_size: u64) {
                  the type was too big.</p>"
             );
         }
+        Err(LayoutError::NormalizationFailure(_, _)) => {
+            writeln!(
+                w,
+                "<p><strong>Note:</strong> Encountered an error during type layout; \
+                the type failed to be normalized.</p>"
+            )
+        }
     }
 
     writeln!(w, "</div>");