<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/tests/codegen/dst-offset.rs, branch 1.80.1</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.80.1</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.80.1'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2024-05-31T05:56:43+00:00</updated>
<entry>
<title>Run rustfmt on `tests/codegen/`.</title>
<updated>2024-05-31T05:56:43+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2024-05-29T04:11:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=72800d3b896a5733d08213ec357f3a875f1f5b0e'/>
<id>urn:sha1:72800d3b896a5733d08213ec357f3a875f1f5b0e</id>
<content type='text'>
Except for `simd-intrinsic/`, which has a lot of files containing
multiple types like `u8x64` which really are better when hand-formatted.

There is a surprising amount of two-space indenting in this directory.

Non-trivial changes:
- `rustfmt::skip` needed in `debug-column.rs` to preserve meaning of the
  test.
- `rustfmt::skip` used in a few places where hand-formatting read more
  nicely: `enum/enum-match.rs`
- Line number adjustments needed for the expected output of
  `debug-column.rs` and `coroutine-debug.rs`.
</content>
</entry>
<entry>
<title>use ptradd for vtable indexing</title>
<updated>2024-03-11T02:47:30+00:00</updated>
<author>
<name>Erik Desjardins</name>
<email>erikdesjardins@users.noreply.github.com</email>
</author>
<published>2024-03-11T02:38:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a7cd803d029d71ab4d111fca43ce33ba55fe9841'/>
<id>urn:sha1:a7cd803d029d71ab4d111fca43ce33ba55fe9841</id>
<content type='text'>
Like field offsets, these are always constant.
</content>
</entry>
<entry>
<title>add test for extern type</title>
<updated>2024-03-07T00:53:45+00:00</updated>
<author>
<name>Erik Desjardins</name>
<email>erikdesjardins@users.noreply.github.com</email>
</author>
<published>2024-03-07T00:53:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e349900339fc5ff512828aee9fddf87995e5e347'/>
<id>urn:sha1:e349900339fc5ff512828aee9fddf87995e5e347</id>
<content type='text'>
</content>
</entry>
<entry>
<title>use GEP inbounds for ZST and DST field offsets</title>
<updated>2024-03-04T14:32:33+00:00</updated>
<author>
<name>Erik Desjardins</name>
<email>erikdesjardins@users.noreply.github.com</email>
</author>
<published>2024-02-28T05:09:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=8ebd307d2a95840e193ff03aff21c87b5c643ef4'/>
<id>urn:sha1:8ebd307d2a95840e193ff03aff21c87b5c643ef4</id>
<content type='text'>
For the former, it's fine for `inbounds` offsets to be one-past-the-end,
so it's okay even if the ZST is the last field in the layout:

&gt; The base pointer has an in bounds address of an allocated object,
&gt; which means that it points into an allocated object, or to its end.

https://llvm.org/docs/LangRef.html#getelementptr-instruction

For the latter, even DST fields must always be inside the layout
(or to its end for ZSTs), so using inbounds is also fine there.
</content>
</entry>
</feed>
