]> git.lizzy.rs Git - rust.git/blobdiff - src/etc/rust_types.py
Auto merge of #86416 - Amanieu:asm_clobber_only, r=nagisa
[rust.git] / src / etc / rust_types.py
index b49fd19ed4cbbbe40ba49458037bb4c2fff5e64b..bbc945a7ddab0186a913f6e9402b0357b890836e 100644 (file)
@@ -34,8 +34,8 @@ class RustType(object):
 
 
 STD_STRING_REGEX = re.compile(r"^(alloc::(\w+::)+)String$")
-STD_STR_REGEX = re.compile(r"^&str$")
-STD_SLICE_REGEX = re.compile(r"^&\[.+\]$")
+STD_STR_REGEX = re.compile(r"^&(mut )?str$")
+STD_SLICE_REGEX = re.compile(r"^&(mut )?\[.+\]$")
 STD_OS_STRING_REGEX = re.compile(r"^(std::ffi::(\w+::)+)OsString$")
 STD_VEC_REGEX = re.compile(r"^(alloc::(\w+::)+)Vec<.+>$")
 STD_VEC_DEQUE_REGEX = re.compile(r"^(alloc::(\w+::)+)VecDeque<.+>$")