Rename in librustc_codegen_utils.
This commit is contained in:
parent
7378c25f25
commit
c67125260b
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user