From a7aec3f207fb40f0c4c857fb91a03372ac8bcd69 Mon Sep 17 00:00:00 2001 From: Mazdak Farrokhzad Date: Mon, 16 Dec 2019 17:28:40 +0100 Subject: 1. ast::Mutability::{Mutable -> Mut, Immutable -> Not}. 2. mir::Mutability -> ast::Mutability. --- src/librustc_codegen_ssa/debuginfo/type_names.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/librustc_codegen_ssa/debuginfo') diff --git a/src/librustc_codegen_ssa/debuginfo/type_names.rs b/src/librustc_codegen_ssa/debuginfo/type_names.rs index 8ff08e832dc..c5340892daf 100644 --- a/src/librustc_codegen_ssa/debuginfo/type_names.rs +++ b/src/librustc_codegen_ssa/debuginfo/type_names.rs @@ -62,8 +62,8 @@ pub fn push_debuginfo_type_name<'tcx>( output.push('*'); } match mutbl { - hir::Mutability::Immutable => output.push_str("const "), - hir::Mutability::Mutable => output.push_str("mut "), + hir::Mutability::Not => output.push_str("const "), + hir::Mutability::Mut => output.push_str("mut "), } push_debuginfo_type_name(tcx, inner_type, true, output, visited); -- cgit 1.4.1-3-g733a5