Skip to content

Commit c671252

Browse files
committed
Rename in librustc_codegen_utils.
1 parent 7378c25 commit c671252

File tree

1 file changed

+1
-1
lines changed
  • src/librustc_codegen_utils/symbol_names

1 file changed

+1
-1
lines changed

src/librustc_codegen_utils/symbol_names/legacy.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ impl Printer<'tcx> for SymbolPrinter<'tcx> {
253253
ct: &'tcx ty::Const<'tcx>,
254254
) -> Result<Self::Const, Self::Error> {
255255
// only print integers
256-
if let ConstValue::Scalar(Scalar::Raw { .. }) = ct.val {
256+
if let ty::ConstKind::Value(ConstValue::Scalar(Scalar::Raw { .. })) = ct.val {
257257
if ct.ty.is_integral() {
258258
return self.pretty_print_const(ct);
259259
}

0 commit comments

Comments
 (0)