<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_codegen_ssa/src/traits/debuginfo.rs, branch try</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=try</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=try'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2025-06-03T10:00:11+00:00</updated>
<entry>
<title>Remove get_dbg_loc from DebugInfoBuilderMethods</title>
<updated>2025-06-03T10:00:11+00:00</updated>
<author>
<name>bjorn3</name>
<email>17426603+bjorn3@users.noreply.github.com</email>
</author>
<published>2025-06-03T10:00:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=00a88b903d3728517dff8f0044160d18a0322ab4'/>
<id>urn:sha1:00a88b903d3728517dff8f0044160d18a0322ab4</id>
<content type='text'>
It is only used within cg_llvm.
</content>
</entry>
<entry>
<title>Use ExistentialTraitRef throughout codegen</title>
<updated>2025-01-30T15:34:00+00:00</updated>
<author>
<name>Michael Goulet</name>
<email>michael@errs.io</email>
</author>
<published>2025-01-10T20:26:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=9dc41a048d7dc765b28102d557eec40ff050e6ab'/>
<id>urn:sha1:9dc41a048d7dc765b28102d557eec40ff050e6ab</id>
<content type='text'>
</content>
</entry>
<entry>
<title>CFI: Append debug location to CFI blocks</title>
<updated>2024-11-11T09:17:43+00:00</updated>
<author>
<name>Bastian Kersting</name>
<email>bkersting@google.com</email>
</author>
<published>2024-11-08T08:51:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c2102259a04dd9ede1e7faf01daa0dfcb948c214'/>
<id>urn:sha1:c2102259a04dd9ede1e7faf01daa0dfcb948c214</id>
<content type='text'>
</content>
</entry>
<entry>
<title>compiler: Directly use rustc_abi in codegen</title>
<updated>2024-11-03T20:30:32+00:00</updated>
<author>
<name>Jubilee Young</name>
<email>workingjubilee@gmail.com</email>
</author>
<published>2024-11-03T02:32:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b895bf4fdce434f394dbe0f4c57d4d0952cd13d7'/>
<id>urn:sha1:b895bf4fdce434f394dbe0f4c57d4d0952cd13d7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Reformat using the new identifier sorting from rustfmt</title>
<updated>2024-09-22T23:11:29+00:00</updated>
<author>
<name>Michael Goulet</name>
<email>michael@errs.io</email>
</author>
<published>2024-09-22T23:05:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c682aa162b0d41e21cc6748f4fecfe01efb69d1f'/>
<id>urn:sha1:c682aa162b0d41e21cc6748f4fecfe01efb69d1f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rename supertraits of `CodegenMethods`.</title>
<updated>2024-09-17T00:24:43+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2024-09-17T00:15:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a8d22eb39eafcc19d4c3db4f24582d869c8fdef2'/>
<id>urn:sha1:a8d22eb39eafcc19d4c3db4f24582d869c8fdef2</id>
<content type='text'>
Supertraits of `BuilderMethods` are all called `XyzBuilderMethods`.
Supertraits of `CodegenMethods` are all called `XyzMethods`. This commit
changes the latter to `XyzCodegenMethods`, for consistency.
</content>
</entry>
<entry>
<title>Don't leave debug locations for constants sitting on the builder indefinitely.</title>
<updated>2024-09-06T23:12:18+00:00</updated>
<author>
<name>Kyle Huey</name>
<email>khuey@kylehuey.com</email>
</author>
<published>2024-09-06T19:39:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=7ed9f945a22a6e9cfb75405698e0eaa163c12beb'/>
<id>urn:sha1:7ed9f945a22a6e9cfb75405698e0eaa163c12beb</id>
<content type='text'>
Because constants are currently emitted *before* the prologue, leaving the
debug location on the IRBuilder spills onto other instructions in the prologue
and messes up both line numbers as well as the point LLVM chooses to be the
prologue end.

Example LLVM IR (irrelevant IR elided):
Before:

define internal { i64, i64 } @_ZN3tmp3Foo18var_return_opt_try17he02116165b0fc08cE(ptr align 8 %self) !dbg !347 {
start:
  %self.dbg.spill = alloca [8 x i8], align 8
  %_0 = alloca [16 x i8], align 8
  %residual.dbg.spill = alloca [0 x i8], align 1
    #dbg_declare(ptr %residual.dbg.spill, !353, !DIExpression(), !357)
  store ptr %self, ptr %self.dbg.spill, align 8, !dbg !357
    #dbg_declare(ptr %self.dbg.spill, !350, !DIExpression(), !358)

After:

define internal { i64, i64 } @_ZN3tmp3Foo18var_return_opt_try17h00b17d08874ddd90E(ptr align 8 %self) !dbg !347 {
start:
  %self.dbg.spill = alloca [8 x i8], align 8
  %_0 = alloca [16 x i8], align 8
  %residual.dbg.spill = alloca [0 x i8], align 1
    #dbg_declare(ptr %residual.dbg.spill, !353, !DIExpression(), !357)
  store ptr %self, ptr %self.dbg.spill, align 8
    #dbg_declare(ptr %self.dbg.spill, !350, !DIExpression(), !358)

Note in particular how !357 from %residual.dbg.spill's dbg_declare no longer
falls through onto the store to %self.dbg.spill. This fixes argument values
at entry when the constant is a ZST (e.g. &lt;Option as Try&gt;::Residual). This
fixes #130003 (but note that it does *not* fix issues with argument values and
non-ZST constants, which emit their own stores that have debug info on them,
like #128945).
</content>
</entry>
<entry>
<title>Reformat `use` declarations.</title>
<updated>2024-07-28T22:26:52+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2024-07-28T22:13:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=84ac80f1921afc243d71fd0caaa4f2838c294102'/>
<id>urn:sha1:84ac80f1921afc243d71fd0caaa4f2838c294102</id>
<content type='text'>
The previous commit updated `rustfmt.toml` appropriately. This commit is
the outcome of running `x fmt --all` with the new formatting options.
</content>
</entry>
<entry>
<title>Deduplicate inlined function debug info, but create a new lexical scope to child subsequent scopes and variables from colliding</title>
<updated>2023-09-01T21:27:21+00:00</updated>
<author>
<name>Daniel Paoliello</name>
<email>danpao@microsoft.com</email>
</author>
<published>2023-09-01T21:27:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=06890774ab4f4f494be55fd6fe1097636fbea7c1'/>
<id>urn:sha1:06890774ab4f4f494be55fd6fe1097636fbea7c1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Revert "Use the same DISubprogram for each instance of the same inlined function within the caller"</title>
<updated>2023-08-25T23:49:10+00:00</updated>
<author>
<name>Wesley Wiser</name>
<email>wesleywiser@microsoft.com</email>
</author>
<published>2023-08-25T23:49:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d0b2c4f72760915b2503ca14ce3cad305ce7dc52'/>
<id>urn:sha1:d0b2c4f72760915b2503ca14ce3cad305ce7dc52</id>
<content type='text'>
This reverts commit 687bffa49375aa00bacc51f5d9adfb84a9453e17.

Reverting to resolve ICEs reported on nightly.
</content>
</entry>
</feed>
