From 6d6c72b9f30d95fe33e776b3975f1cc1e5d4556b Mon Sep 17 00:00:00 2001 From: Nathan Henrie Date: Thu, 1 Feb 2024 09:33:35 -0700 Subject: [PATCH] Account for mutable references --- src/etc/lldb_commands | 2 +- src/etc/rust_types.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/etc/lldb_commands b/src/etc/lldb_commands index 1a6840540b233..b999857f4c073 100644 --- a/src/etc/lldb_commands +++ b/src/etc/lldb_commands @@ -17,5 +17,5 @@ type summary add -F lldb_lookup.summary_lookup -e -x -h "^(core::([a-z_]+::)+)R type summary add -F lldb_lookup.summary_lookup -e -x -h "^(core::([a-z_]+::)+)RefCell<.+>$" --category Rust type summary add -F lldb_lookup.summary_lookup -e -x -h "^core::num::([a-z_]+::)*NonZero.+$" --category Rust type summary add -F lldb_lookup.summary_lookup -e -x -h "^std::path::PathBuf$" --category Rust -type summary add -F lldb_lookup.summary_lookup -e -x -h "^&std::path::Path$" --category Rust +type summary add -F lldb_lookup.summary_lookup -e -x -h "^&(mut )?std::path::Path$" --category Rust type category enable Rust diff --git a/src/etc/rust_types.py b/src/etc/rust_types.py index e956ba31423f5..b93981d8ec1b4 100644 --- a/src/etc/rust_types.py +++ b/src/etc/rust_types.py @@ -54,7 +54,7 @@ class RustType(object): STD_REF_CELL_REGEX = re.compile(r"^(core::(\w+::)+)RefCell<.+>$") STD_NONZERO_NUMBER_REGEX = re.compile(r"^core::num::([a-z_]+::)*NonZero.+$") STD_PATHBUF_REGEX = re.compile(r"^std::path::PathBuf$") -STD_PATH_REGEX = re.compile(r"^&std::path::Path$") +STD_PATH_REGEX = re.compile(r"^&(mut )?std::path::Path$") TUPLE_ITEM_REGEX = re.compile(r"__\d+$")