fmt
This commit is contained in:
parent
f39c0d6b0a
commit
bf48b622a5
2 changed files with 7 additions and 9 deletions
|
@ -205,10 +205,8 @@ impl<'tcx> Cx<'tcx> {
|
||||||
let ty::Adt(adt_def, substs) = ty.kind() else {
|
let ty::Adt(adt_def, substs) = ty.kind() else {
|
||||||
return ExprKind::Cast { source: self.mirror_expr(source)};
|
return ExprKind::Cast { source: self.mirror_expr(source)};
|
||||||
};
|
};
|
||||||
let Res::Def(
|
|
||||||
DefKind::Ctor(CtorOf::Variant, CtorKind::Const),
|
let Res::Def(DefKind::Ctor(CtorOf::Variant, CtorKind::Const), variant_ctor_id) = res else {
|
||||||
variant_ctor_id,
|
|
||||||
) = res else {
|
|
||||||
return ExprKind::Cast { source: self.mirror_expr(source)};
|
return ExprKind::Cast { source: self.mirror_expr(source)};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue