Skip to content

Commit e50675d

Browse files
committed
Rollup merge of #26202 - nham:revise_E0072, r=alexcrichton
Converts the size calculation in the explanation from a fenced code block to an indented one. I think it looks better when not rendered, and is the same rendered.
2 parents cf3e79d + a297651 commit e50675d

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/librustc_typeck/diagnostics.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -586,11 +586,9 @@ struct ListNode {
586586
This type cannot have a well-defined size, because it needs to be arbitrarily
587587
large (since we would be able to nest `ListNode`s to any depth). Specifically,
588588
589-
```
590-
size of ListNode = 1 byte for head
591-
+ 1 byte for the discriminant of the Option
592-
+ size of ListNode
593-
```
589+
size of `ListNode` = 1 byte for `head`
590+
+ 1 byte for the discriminant of the `Option`
591+
+ size of `ListNode`
594592
595593
One way to fix this is by wrapping `ListNode` in a `Box`, like so:
596594

0 commit comments

Comments
 (0)