Update cdb tests for expected output
Also an fix issue with tuple type names where we can't cast to them in natvis (required by the visualizer for `HashMap`) because of peculiarities with the natvis expression evaluator.
This commit is contained in:
parent
aac8a88552
commit
721b622e07
8 changed files with 82 additions and 68 deletions
|
@ -81,11 +81,21 @@ pub fn push_debuginfo_type_name<'tcx>(
|
|||
|
||||
for component_type in component_types {
|
||||
push_debuginfo_type_name(tcx, component_type.expect_ty(), true, output, visited);
|
||||
output.push_str(", ");
|
||||
output.push(',');
|
||||
|
||||
// Natvis does not always like having spaces between parts of the type name
|
||||
// and this causes issues when we need to write a typename in natvis, for example
|
||||
// as part of a cast like the `HashMap` visualizer does.
|
||||
if !cpp_like_names {
|
||||
output.push(' ');
|
||||
}
|
||||
}
|
||||
if !component_types.is_empty() {
|
||||
output.pop();
|
||||
output.pop();
|
||||
|
||||
if !cpp_like_names {
|
||||
output.pop();
|
||||
}
|
||||
}
|
||||
|
||||
if cpp_like_names {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue