mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-26 13:01:27 +03:00
Rollup merge of #155686 - Walnut356:array_type, r=jieyouxu
Fix array template arg lookup behavior Minor logic error. `get_template_args` expects a matching `<`/`>` pair. We were passing in an array type with the beginning `<` removed, so the template arg behavior would fail.
This commit is contained in:
@@ -233,8 +233,6 @@ def resolve_msvc_template_arg(arg_name: str, target: SBTarget) -> SBType:
|
||||
return result.GetPointerType()
|
||||
|
||||
if arg_name.startswith("array$<"):
|
||||
arg_name = arg_name[7:-1].strip()
|
||||
|
||||
template_args = get_template_args(arg_name)
|
||||
|
||||
element_name = next(template_args)
|
||||
|
||||
Reference in New Issue
Block a user