<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/tests/ui/layout/thumb-enum.stderr, branch master</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=master</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=master'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2025-06-08T23:41:46+00:00</updated>
<entry>
<title>Remove rustc's notion of "preferred" alignment AKA `__alignof`</title>
<updated>2025-06-08T23:41:46+00:00</updated>
<author>
<name>Jubilee Young</name>
<email>workingjubilee@gmail.com</email>
</author>
<published>2025-02-12T06:09:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2e1965831526407bada7abec631d7b7e9f6cbc7d'/>
<id>urn:sha1:2e1965831526407bada7abec631d7b7e9f6cbc7d</id>
<content type='text'>
In PR 90877 T-lang decided not to remove `intrinsics::pref_align_of`.
However, the intrinsic and its supporting code
1.  is a nightly feature, so can be removed at compiler/libs discretion
2.  requires considerable effort in the compiler to support, as it
    necessarily complicates every single site reasoning about alignment
3.  has been justified based on relevance to codegen, but it is only a
    requirement for C++ (not C, not Rust) stack frame layout for AIX,
    in ways Rust would not consider even with increased C++ interop
4.  is only used by rustc to overalign some globals, not correctness
5.  can be adequately replaced by other rules for globals, as it mostly
    affects alignments for a few types under 16 bytes of alignment
6.  has only one clear benefactor: automating C -&gt; Rust translation
    for GNU extensions like `__alignof`
7.  such code was likely intended to be `alignof` or `_Alignof`,
    because the GNU extension is a "false friend" of the C keyword,
    which makes the choice to support such a mapping very questionable
8.  makes it easy to do incorrect codegen in the compiler by its mere
    presence as usual Rust rules of alignment (e.g. `size == align * N`)
    do not hold with preferred alignment

The implementation is clearly damaging the code quality of the compiler.
Thus it is within the compiler team's purview to simply rip it out.
If T-lang wishes to have this intrinsic restored for c2rust's benefit,
it would have to use a radically different implementation that somehow
does not cause internal incorrectness.

Until then, remove the intrinsic and its supporting code, as one tool
and an ill-considered GCC extension cannot justify risking correctness.

Because we touch a fair amount of the compiler to change this at all,
and unfortunately the duplication of AbiAndPrefAlign is deep-rooted,
we keep an "AbiAlign" type which we can wean code off later.
</content>
</entry>
<entry>
<title>Rollup merge of #137805 - RalfJung:layout-debug-print, r=Noratrieb</title>
<updated>2025-03-06T17:22:19+00:00</updated>
<author>
<name>Michael Goulet</name>
<email>michael@errs.io</email>
</author>
<published>2025-03-06T17:22:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=73d033f5a12e9852d9664286a71e6508b90a6035'/>
<id>urn:sha1:73d033f5a12e9852d9664286a71e6508b90a6035</id>
<content type='text'>
adjust Layout debug printing to match the internal field name

The field got renamed a while ago, but the debug printing was not updated to match.
</content>
</entry>
<entry>
<title>adjust Layout debug printing to match the internal field names</title>
<updated>2025-02-28T15:32:15+00:00</updated>
<author>
<name>Ralf Jung</name>
<email>post@ralfj.de</email>
</author>
<published>2025-02-28T15:30:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=476b0980f22f4a4de2102f2994da39600fc4546d'/>
<id>urn:sha1:476b0980f22f4a4de2102f2994da39600fc4546d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tests: use minicore more</title>
<updated>2025-02-24T09:26:54+00:00</updated>
<author>
<name>David Wood</name>
<email>david.wood2@arm.com</email>
</author>
<published>2025-02-24T09:26:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=92eb4450fa1ae37a948178c9d14bfb145a69562d'/>
<id>urn:sha1:92eb4450fa1ae37a948178c9d14bfb145a69562d</id>
<content type='text'>
minicore makes it much easier to add new language items to all of the
existing `no_core` tests.
</content>
</entry>
<entry>
<title>Update ui tests with `LayoutData { uninhabited: ... }` etc</title>
<updated>2025-02-20T19:40:41+00:00</updated>
<author>
<name>Zachary S</name>
<email>zasample18+github@gmail.com</email>
</author>
<published>2025-01-26T03:28:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c33fb5ae854e8ac26d75e72b7cb31519730f51d6'/>
<id>urn:sha1:c33fb5ae854e8ac26d75e72b7cb31519730f51d6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>adjust UI tests</title>
<updated>2025-01-10T01:22:57+00:00</updated>
<author>
<name>The 8472</name>
<email>git@infinite-source.de</email>
</author>
<published>2024-12-23T22:17:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d7fb729d393e40919adfa0738a205c24c821808d'/>
<id>urn:sha1:d7fb729d393e40919adfa0738a205c24c821808d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tests: Bless `rustc_abi::Abi::Aggregate` =&gt; `::Memory`</title>
<updated>2024-10-30T08:41:31+00:00</updated>
<author>
<name>Jubilee Young</name>
<email>workingjubilee@gmail.com</email>
</author>
<published>2024-10-30T06:21:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=083a362dd113da1217f7eed0e48baa2c584ac641'/>
<id>urn:sha1:083a362dd113da1217f7eed0e48baa2c584ac641</id>
<content type='text'>
</content>
</entry>
<entry>
<title>i686-windows: make requested alignment &gt; 4 special case apply transitively</title>
<updated>2023-07-14T21:48:13+00:00</updated>
<author>
<name>Erik Desjardins</name>
<email>erikdesjardins@users.noreply.github.com</email>
</author>
<published>2023-07-14T21:48:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2daacf5af965090b885287f1d40e13ff5db724cf'/>
<id>urn:sha1:2daacf5af965090b885287f1d40e13ff5db724cf</id>
<content type='text'>
</content>
</entry>
<entry>
<title>aarch64-linux: properly handle 128bit aligned aggregates</title>
<updated>2023-07-10T23:19:40+00:00</updated>
<author>
<name>Erik Desjardins</name>
<email>erikdesjardins@users.noreply.github.com</email>
</author>
<published>2023-06-15T02:39:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d1e764cb3bc961a4395164a36c4e0cfd57e681a1'/>
<id>urn:sha1:d1e764cb3bc961a4395164a36c4e0cfd57e681a1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>repr(align) &lt;= 4 should still be byval</title>
<updated>2023-07-10T23:19:40+00:00</updated>
<author>
<name>Erik Desjardins</name>
<email>erikdesjardins@users.noreply.github.com</email>
</author>
<published>2023-06-11T21:05:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=7e933b4e26947b04da70589110dacbdb2461e27d'/>
<id>urn:sha1:7e933b4e26947b04da70589110dacbdb2461e27d</id>
<content type='text'>
</content>
</entry>
</feed>
