fn p<'a, 'tcx, F: std::fmt::Write, Tag>(
            cx: FmtPrinter<'a, 'tcx, F>,
            s: ScalarMaybeUninit<Tag>,
            ty: Ty<'tcx>,
        ) -> Result<FmtPrinter<'a, 'tcx, F>, std::fmt::Error> {
            match s {
                ScalarMaybeUninit::Scalar(s) => {
                    cx.pretty_print_const_scalar(s.erase_tag(), ty, true)
                }
                ScalarMaybeUninit::Uninit => cx.typed_value(
                    |mut this| {
                        this.write_str("uninit ")?;
                        Ok(this)
                    },
                    |this| this.print_type(ty),
                    " ",
                ),
            }
        }
/// Helper function for printing a scalar to a FmtPrinter
Helper function for printing a scalar to a FmtPrinter
Helper function for printing a scalar to a FmtPrinter
fn p<'a, 'tcx, F: std::fmt::Write, Tag>(
            cx: FmtPrinter<'a, 'tcx, F>,
            s: ScalarMaybeUninit<Tag>,
            ty: Ty<'tcx>,
        ) -> Result<FmtPrinter<'a, 'tcx, F>, std::fmt::Error> {
            match s {
                ScalarMaybeUninit::Scalar(s) => {
                    cx.pretty_print_const_scalar(s.erase_tag(), ty, true)
                }
                ScalarMaybeUninit::Uninit => cx.typed_value(
                    |mut this| {
                        this.write_str("uninit ")?;
                        Ok(this)
                    },
                    |this| this.print_type(ty),
                    " ",
                ),
            }
        }
fn p < ' a , ' tcx , F : std :: fmt :: Write , Tag > ( cx : FmtPrinter < ' a , ' tcx , F > , s : ScalarMaybeUninit < Tag > , ty : Ty < ' tcx > , ) -> Result < FmtPrinter < ' a , ' tcx , F > , std :: fmt :: Error > { match s { ScalarMaybeUninit :: Scalar ( s ) => { cx . pretty_print_const_scalar ( s . erase_tag ( ) , ty , true ) } ScalarMaybeUninit :: Uninit => cx . typed_value ( | mut this | { this . write_str ( " " ) ? ; Ok ( this ) } , | this | this . print_type ( ty ) , " " , ) , } }
Helper function for printing a scalar to a FmtPrinter
Helper function for printing a scalar to a FmtPrinter
cx
FmtPrinter<'a, 'tcx, F>
s
ScalarMaybeUninit<Tag>
ty
Ty<'tcx>
cx
FmtPrinter<'a, 'tcx, F>
s
ScalarMaybeUninit<Tag>
ty
Ty<'tcx>