Rollup merge of #94011 - est31:let_else, r=lcnr
Even more let_else adoptions Continuation of #89933, #91018, #91481, #93046, #93590.
This commit is contained in:
commit
637d8b89e8
26 changed files with 50 additions and 104 deletions
|
@ -1752,9 +1752,7 @@ fn document_type_layout(w: &mut Buffer, cx: &Context<'_>, ty_def_id: DefId) {
|
|||
<ul>",
|
||||
);
|
||||
|
||||
let adt = if let Adt(adt, _) = ty_layout.ty.kind() {
|
||||
adt
|
||||
} else {
|
||||
let Adt(adt, _) = ty_layout.ty.kind() else {
|
||||
span_bug!(tcx.def_span(ty_def_id), "not an adt")
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue