Skip to content

Commit 6d6c72b

Browse files
committed
Account for mutable references
1 parent 79a12a0 commit 6d6c72b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/etc/lldb_commands

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ type summary add -F lldb_lookup.summary_lookup -e -x -h "^(core::([a-z_]+::)+)R
1717
type summary add -F lldb_lookup.summary_lookup -e -x -h "^(core::([a-z_]+::)+)RefCell<.+>$" --category Rust
1818
type summary add -F lldb_lookup.summary_lookup -e -x -h "^core::num::([a-z_]+::)*NonZero.+$" --category Rust
1919
type summary add -F lldb_lookup.summary_lookup -e -x -h "^std::path::PathBuf$" --category Rust
20-
type summary add -F lldb_lookup.summary_lookup -e -x -h "^&std::path::Path$" --category Rust
20+
type summary add -F lldb_lookup.summary_lookup -e -x -h "^&(mut )?std::path::Path$" --category Rust
2121
type category enable Rust

src/etc/rust_types.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class RustType(object):
5454
STD_REF_CELL_REGEX = re.compile(r"^(core::(\w+::)+)RefCell<.+>$")
5555
STD_NONZERO_NUMBER_REGEX = re.compile(r"^core::num::([a-z_]+::)*NonZero.+$")
5656
STD_PATHBUF_REGEX = re.compile(r"^std::path::PathBuf$")
57-
STD_PATH_REGEX = re.compile(r"^&std::path::Path$")
57+
STD_PATH_REGEX = re.compile(r"^&(mut )?std::path::Path$")
5858

5959
TUPLE_ITEM_REGEX = re.compile(r"__\d+$")
6060

0 commit comments

Comments
 (0)