<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_codegen_ssa/src/debuginfo, branch 1.55.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.55.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.55.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2021-07-15T10:21:15+00:00</updated>
<entry>
<title>Add self-profiling to debuginfo name generation</title>
<updated>2021-07-15T10:21:15+00:00</updated>
<author>
<name>Michael Woerister</name>
<email>michaelwoerister@posteo</email>
</author>
<published>2021-07-15T09:18:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=8fa22dd9b73b2bb8427a7b7a23d3b0441d6e7c5d'/>
<id>urn:sha1:8fa22dd9b73b2bb8427a7b7a23d3b0441d6e7c5d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[debuginfo] Make use of spaces and separators in debuginfo names more uniform.</title>
<updated>2021-07-15T10:21:05+00:00</updated>
<author>
<name>Michael Woerister</name>
<email>michaelwoerister@posteo</email>
</author>
<published>2021-07-15T09:08:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=bdd09c39212260cd7500a2dab1bfc0b96ef53b5b'/>
<id>urn:sha1:bdd09c39212260cd7500a2dab1bfc0b96ef53b5b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[debuginfo] Emit associated type bindings in trait object type names.</title>
<updated>2021-07-15T08:40:25+00:00</updated>
<author>
<name>Michael Woerister</name>
<email>michaelwoerister@posteo</email>
</author>
<published>2021-07-14T13:50:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e6e1e095ffc3cd6f305a2470b1e162680e678014'/>
<id>urn:sha1:e6e1e095ffc3cd6f305a2470b1e162680e678014</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Handle non-integer const generic parameters in debuginfo type names.</title>
<updated>2021-07-14T13:55:03+00:00</updated>
<author>
<name>Michael Woerister</name>
<email>michaelwoerister@posteo</email>
</author>
<published>2021-07-12T13:12:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=28343be42fc699c080968c76061fc2da781b30b9'/>
<id>urn:sha1:28343be42fc699c080968c76061fc2da781b30b9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Refactor `msvc_enum_fallbck()` a bit</title>
<updated>2021-07-03T00:38:37+00:00</updated>
<author>
<name>Wesley Wiser</name>
<email>wesleywiser@microsoft.com</email>
</author>
<published>2021-07-03T00:24:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=9c3148235e5c6b880c9fc97381a575bcc0f2b51f'/>
<id>urn:sha1:9c3148235e5c6b880c9fc97381a575bcc0f2b51f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Show the variant name for univariant enums</title>
<updated>2021-07-03T00:16:37+00:00</updated>
<author>
<name>Wesley Wiser</name>
<email>wesleywiser@microsoft.com</email>
</author>
<published>2021-06-25T17:33:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d94f087848ee05036769bd4dc78337ab3604a776'/>
<id>urn:sha1:d94f087848ee05036769bd4dc78337ab3604a776</id>
<content type='text'>
Previously, only the fields would be displayed with no indication of the
variant name. If you already knew the enum was univariant, this was ok
but if the enum was univariant because of layout, for example, a
`Result&lt;T, !&gt;` then it could be very confusing which variant was the
active one.
</content>
</entry>
<entry>
<title>Update cdb tests for expected output</title>
<updated>2021-07-01T18:26:20+00:00</updated>
<author>
<name>Wesley Wiser</name>
<email>wesleywiser@microsoft.com</email>
</author>
<published>2021-07-01T18:26:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=721b622e075f8e36c048fb7f7ee689305c0c6d93'/>
<id>urn:sha1:721b622e075f8e36c048fb7f7ee689305c0c6d93</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>Improve debug symbol names to avoid ambiguity and work better with MSVC's debugger</title>
<updated>2021-06-30T18:10:29+00:00</updated>
<author>
<name>Daniel Paoliello</name>
<email>danpao@microsoft.com</email>
</author>
<published>2021-06-24T17:36:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=aac8a885520854e4b60ea5733b8b06f9e0cc1fcc'/>
<id>urn:sha1:aac8a885520854e4b60ea5733b8b06f9e0cc1fcc</id>
<content type='text'>
There are several cases where names of types and functions in the debug info are either ambiguous, or not helpful, such as including ambiguous placeholders (e.g., `{{impl}}`, `{{closure}}` or `dyn _'`) or dropping qualifications (e.g., for dynamic types).

Instead, each debug symbol name should be unique and useful:
* Include disambiguators for anonymous `DefPathDataName` (closures and generators), and unify their formatting when used as a path-qualifier vs item being qualified.
* Qualify the principal trait for dynamic types.
* If there is no principal trait for a dynamic type, emit all other traits instead.
* Respect the `qualified` argument when emitting ref and pointer types.
* For implementations, emit the disambiguator.
* Print const generics when emitting generic parameters or arguments.

Additionally, when targeting MSVC, its debugger treats many command arguments as C++ expressions, even when the argument is defined to be a symbol name. As such names in the debug info need to be more C++-like to be parsed correctly:
* Avoid characters with special meaning (`#`, `[`, `"`, `+`).
* Never start a name with `&lt;` or `{` as this is treated as an operator.
* `&gt;&gt;` is always treated as a right-shift, even when parsing generic arguments (so add a space to avoid this).
* Emit function declarations using C/C++ style syntax (e.g., leading return type).
* Emit arrays as a synthetic `array$&lt;type, size&gt;` type.
* Include a `$` in all synthetic types as this is a legal character for C++, but not Rust (thus we avoid collisions with user types).
</content>
</entry>
<entry>
<title>Respond to review feedback</title>
<updated>2021-06-02T14:23:12+00:00</updated>
<author>
<name>Wesley Wiser</name>
<email>wesleywiser@microsoft.com</email>
</author>
<published>2021-05-26T16:02:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=3127419e2b2cb4ad2e44a06d30af6a015daf4557'/>
<id>urn:sha1:3127419e2b2cb4ad2e44a06d30af6a015daf4557</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Change the type name from `_enum&lt;..&gt;` to `enum$&lt;..&gt;`</title>
<updated>2021-06-02T14:23:12+00:00</updated>
<author>
<name>Wesley Wiser</name>
<email>wesleywiser@microsoft.com</email>
</author>
<published>2021-05-20T17:58:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ef053fd6f0faa848097ff8b924ac859c667c8d15'/>
<id>urn:sha1:ef053fd6f0faa848097ff8b924ac859c667c8d15</id>
<content type='text'>
This makes the type name inline with the proposed standard in #85269.
</content>
</entry>
</feed>
