about summary refs log tree commit diff
path: root/src/etc
diff options
context:
space:
mode:
authorNikhil Shagrithaya <nikhilshagri@gmail.com>2016-06-29 20:04:06 +0530
committerNikhil Shagrithaya <nikhilshagri@gmail.com>2016-07-04 00:04:19 +0530
commit036b08917d73c08bf2959fc0de5041b75f85c73e (patch)
treedc08f51bd1253af584e457841f2c461e083702dc /src/etc
parent7e07e31600d2b15697c2fffceb9d08c65af6a062 (diff)
downloadrust-036b08917d73c08bf2959fc0de5041b75f85c73e.tar.gz
rust-036b08917d73c08bf2959fc0de5041b75f85c73e.zip
Added a pretty printer for &mut slices
Diffstat (limited to 'src/etc')
-rw-r--r--src/etc/debugger_pretty_printers_common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/etc/debugger_pretty_printers_common.py b/src/etc/debugger_pretty_printers_common.py
index 06a83c75936..b2bb7859661 100644
--- a/src/etc/debugger_pretty_printers_common.py
+++ b/src/etc/debugger_pretty_printers_common.py
@@ -139,7 +139,7 @@ class Type(object):
             return TYPE_KIND_STR_SLICE
 
         # REGULAR SLICE
-        if (unqualified_type_name.startswith("&[") and
+        if (unqualified_type_name.startswith(("&[", "&mut [")) and
             unqualified_type_name.endswith("]") and
             self.__conforms_to_field_layout(SLICE_FIELD_NAMES)):
             return TYPE_KIND_SLICE