Skip to content

Commit 1ca7b2e

Browse files
committed
Add pretty printer for &mut []
Fix #30232
1 parent 574bc89 commit 1ca7b2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/etc/debugger_pretty_printers_common.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def __classify_struct(self):
139139
return TYPE_KIND_STR_SLICE
140140

141141
# REGULAR SLICE
142-
if (unqualified_type_name.startswith("&[") and
142+
if (unqualified_type_name.startswith(("&[", "&mut [")) and
143143
unqualified_type_name.endswith("]") and
144144
self.__conforms_to_field_layout(SLICE_FIELD_NAMES)):
145145
return TYPE_KIND_SLICE

0 commit comments

Comments
 (0)