about summary refs log tree commit diff
path: root/src/librustc_codegen_utils
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2019-11-09 17:44:11 +0100
committerCamille GILLOT <gillot.camille@gmail.com>2019-11-10 12:21:05 +0100
commited640c6a27aca3b2446ab8d6f00df0a2d78f1192 (patch)
tree16c570be6f3cdb3cb4d20dde9588d59d00ed502b /src/librustc_codegen_utils
parent57a5f92bef4b459005920f1aeff05a52c7e356b0 (diff)
downloadrust-ed640c6a27aca3b2446ab8d6f00df0a2d78f1192.tar.gz
rust-ed640c6a27aca3b2446ab8d6f00df0a2d78f1192.zip
Merge hir::Mutability into ast::Mutability.
Diffstat (limited to 'src/librustc_codegen_utils')
-rw-r--r--src/librustc_codegen_utils/symbol_names/v0.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/librustc_codegen_utils/symbol_names/v0.rs b/src/librustc_codegen_utils/symbol_names/v0.rs
index 0fe4c7c6748..1dfcc21f390 100644
--- a/src/librustc_codegen_utils/symbol_names/v0.rs
+++ b/src/librustc_codegen_utils/symbol_names/v0.rs
@@ -373,8 +373,8 @@ impl Printer<'tcx> for SymbolMangler<'tcx> {
 
             ty::Ref(r, ty, mutbl) => {
                 self.push(match mutbl {
-                    hir::MutImmutable => "R",
-                    hir::MutMutable => "Q",
+                    hir::Mutability::Immutable => "R",
+                    hir::Mutability::Mutable => "Q",
                 });
                 if *r != ty::ReErased {
                     self = r.print(self)?;
@@ -384,8 +384,8 @@ impl Printer<'tcx> for SymbolMangler<'tcx> {
 
             ty::RawPtr(mt) => {
                 self.push(match mt.mutbl {
-                    hir::MutImmutable => "P",
-                    hir::MutMutable => "O",
+                    hir::Mutability::Immutable => "P",
+                    hir::Mutability::Mutable => "O",
                 });
                 self = mt.ty.print(self)?;
             }