Auto merge of #147235 - matthiaskrgr:rollup-a0es1x9, r=matthiaskrgr
Rollup of 8 pull requests Successful merges: - rust-lang/rust#146593 (Allow specifying multiple bounds for same associated item, except in trait objects) - rust-lang/rust#147177 ([DebugInfo] Fix MSVC tuple child creation) - rust-lang/rust#147195 (iter repeat: add tests for new count and last behavior) - rust-lang/rust#147202 (Swap order of `resolve_coroutine_interiors` and `handle_opaque_type_uses`) - rust-lang/rust#147204 (Refactor ArrayWindows to use a slice) - rust-lang/rust#147219 (Add proper error handling for closure in impl) - rust-lang/rust#147226 (include `outer_inclusive_binder` of pattern types) - rust-lang/rust#147230 (Fix typo in 'unfulfilled_lint_expectation' to plural) r? `@ghost` `@rustbot` modify labels: rollup
This commit is contained in:
commit
4da69dfff1
31 changed files with 827 additions and 1181 deletions
|
|
@ -38,7 +38,7 @@ talk about later in this section.
|
|||
|
||||
Sometimes, it can be helpful to suppress lints, but at the same time ensure that
|
||||
the code in question still emits them. The 'expect' level does exactly this. If
|
||||
the lint in question is not emitted, the `unfulfilled_lint_expectation` lint
|
||||
the lint in question is not emitted, the `unfulfilled_lint_expectations` lint
|
||||
triggers on the `expect` attribute, notifying you that the expectation is no
|
||||
longer fulfilled.
|
||||
|
||||
|
|
|
|||
|
|
@ -761,7 +761,8 @@ class MSVCTupleSyntheticProvider:
|
|||
|
||||
def get_child_at_index(self, index: int) -> SBValue:
|
||||
child: SBValue = self.valobj.GetChildAtIndex(index)
|
||||
return child.CreateChildAtOffset(str(index), 0, child.GetType())
|
||||
offset = self.valobj.GetType().GetFieldAtIndex(index).byte_offset
|
||||
return self.valobj.CreateChildAtOffset(str(index), offset, child.GetType())
|
||||
|
||||
def update(self):
|
||||
pass
|
||||
|
|
@ -772,7 +773,7 @@ class MSVCTupleSyntheticProvider:
|
|||
def get_type_name(self) -> str:
|
||||
name = self.valobj.GetTypeName()
|
||||
# remove "tuple$<" and ">", str.removeprefix and str.removesuffix require python 3.9+
|
||||
name = name[7:-1]
|
||||
name = name[7:-1].strip()
|
||||
return "(" + name + ")"
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue