Rename in librustc_codegen_utils.

This commit is contained in:
Camille GILLOT 2019-11-08 23:12:17 +01:00
parent 7378c25f25
commit c67125260b

View file

@ -253,7 +253,7 @@ impl Printer<'tcx> for SymbolPrinter<'tcx> {
ct: &'tcx ty::Const<'tcx>,
) -> Result<Self::Const, Self::Error> {
// only print integers
if let ConstValue::Scalar(Scalar::Raw { .. }) = ct.val {
if let ty::ConstKind::Value(ConstValue::Scalar(Scalar::Raw { .. })) = ct.val {
if ct.ty.is_integral() {
return self.pretty_print_const(ct);
}