<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_const_eval/src, branch beta</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=beta</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=beta'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2025-09-10T12:17:38+00:00</updated>
<entry>
<title>Rollup merge of #146178 - folkertdev:static-align, r=jdonszelmann,ralfjung,traviscross</title>
<updated>2025-09-10T12:17:38+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>476013+matthiaskrgr@users.noreply.github.com</email>
</author>
<published>2025-09-10T12:17:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=422c76adae98b55d13a07a8fb47d8bc47fa96fdf'/>
<id>urn:sha1:422c76adae98b55d13a07a8fb47d8bc47fa96fdf</id>
<content type='text'>
Implement `#[rustc_align_static(N)]` on `static`s

Tracking issue: https://github.com/rust-lang/rust/issues/146177

```rust
#![feature(static_align)]

#[rustc_align_static(64)]
static SO_ALIGNED: u64 = 0;
```

We need a different attribute than `rustc_align` because unstable attributes are tied to their feature (we can't have two unstable features use the same unstable attribute). Otherwise this uses all of the same infrastructure as `#[rustc_align]`.

r? `@traviscross`
</content>
</entry>
<entry>
<title>allow `#[rustc_align_static(N)]` on `static`s</title>
<updated>2025-09-09T19:54:54+00:00</updated>
<author>
<name>Folkert de Vries</name>
<email>folkert@folkertdev.nl</email>
</author>
<published>2025-06-07T20:56:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=cbacd00f106778830803ad2e2364518f06ff9078'/>
<id>urn:sha1:cbacd00f106778830803ad2e2364518f06ff9078</id>
<content type='text'>
We need a different attribute than `rustc_align` because unstable attributes are
tied to their feature (we can't have two unstable features use the same
unstable attribute). Otherwise this uses all of the same infrastructure
as `#[rustc_align]`.
</content>
</entry>
<entry>
<title>Auto merge of #145717 - BoxyUwU:erase_regions_rename, r=lcnr</title>
<updated>2025-09-09T15:04:44+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2025-09-09T15:04:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=364da5d88d772fa40fb20353443595385443ac25'/>
<id>urn:sha1:364da5d88d772fa40fb20353443595385443ac25</id>
<content type='text'>
rename erase_regions to erase_and_anonymize_regions

I find it consistently confusing that `erase_regions` does more than replacing regions with `'erased`. it also makes some code look real goofy to be writing manual folders to erase regions with a comment saying "we cant use erase regions" :&gt; or code that re-calls erase_regions on types with regions already erased just to anonymize all the bound regions.

r? lcnr

idk how i feel about the name being almost twice as long now
</content>
</entry>
<entry>
<title>erase_regions to erase_and_anonymize_regions</title>
<updated>2025-09-09T12:49:16+00:00</updated>
<author>
<name>Boxy</name>
<email>rust@boxyuwu.dev</email>
</author>
<published>2025-08-21T15:50:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e379c7758667f900aaf5551c4553c7d4c121e3e1'/>
<id>urn:sha1:e379c7758667f900aaf5551c4553c7d4c121e3e1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #146324 - RalfJung:no-ptr-fragment, r=oli-obk</title>
<updated>2025-09-09T04:35:05+00:00</updated>
<author>
<name>Stuart Cook</name>
<email>Zalathar@users.noreply.github.com</email>
</author>
<published>2025-09-09T04:35:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=915f9ff1602e6c8cf3b5ae29da58b932a91449c6'/>
<id>urn:sha1:915f9ff1602e6c8cf3b5ae29da58b932a91449c6</id>
<content type='text'>
const-eval: disable pointer fragment support

This fixes https://github.com/rust-lang/rust/issues/146291 by disabling pointer fragment support for const-eval. I want to properly fix this eventually, but won't get to it in the next few weeks, so this is an emergency patch to prevent the buggy implementation from landing on stable. The beta cutoff is on Sep 12th so if this PR lands after that, we'll need a backport.
</content>
</entry>
<entry>
<title>fixup limit handling code</title>
<updated>2025-09-08T22:07:12+00:00</updated>
<author>
<name>Jana Dönszelmann</name>
<email>jana@donsz.nl</email>
</author>
<published>2025-08-24T11:25:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6087d89004eda5e1f6406182b9866497ecb22e99'/>
<id>urn:sha1:6087d89004eda5e1f6406182b9866497ecb22e99</id>
<content type='text'>
</content>
</entry>
<entry>
<title>const-eval: disable pointer fragment support</title>
<updated>2025-09-08T11:22:52+00:00</updated>
<author>
<name>Ralf Jung</name>
<email>post@ralfj.de</email>
</author>
<published>2025-09-08T08:40:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=aed0ed4c93d661fc7b66dc4a39690948476e8a4a'/>
<id>urn:sha1:aed0ed4c93d661fc7b66dc4a39690948476e8a4a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Allow static regions in `type_name`.</title>
<updated>2025-09-08T09:35:47+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2025-09-07T19:27:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=9a52a8354e50bd824bdefebc659d8c3c38eccc0a'/>
<id>urn:sha1:9a52a8354e50bd824bdefebc659d8c3c38eccc0a</id>
<content type='text'>
Fixes #146249.
</content>
</entry>
<entry>
<title>Rollup merge of #144885 - zachs18:ptr_guaranteed_cmp_more, r=RalfJung</title>
<updated>2025-08-26T04:19:16+00:00</updated>
<author>
<name>Stuart Cook</name>
<email>Zalathar@users.noreply.github.com</email>
</author>
<published>2025-08-26T04:19:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e011dd47ee04cd1e62786b5a0b3bfe2d5e58ae35'/>
<id>urn:sha1:e011dd47ee04cd1e62786b5a0b3bfe2d5e58ae35</id>
<content type='text'>
Implement some more checks in `ptr_guaranteed_cmp`.

* Pointers with different residues modulo their allocations' least common alignment are never equal.
* Pointers to the same static allocation are equal if and only if they have the same offset.
* Pointers to different non-zero-sized static allocations are unequal if both point within their allocation, and not on opposite ends.

Tracking issue for `const_raw_ptr_comparison`: &lt;https://github.com/rust-lang/rust/issues/53020&gt;

This should not affect `is_null`, the only usage of this intrinsic on stable.

Closes https://github.com/rust-lang/rust/issues/144584
</content>
</entry>
<entry>
<title>Implement some more checks for `ptr_guaranteed_cmp` in consteval:</title>
<updated>2025-08-23T17:09:07+00:00</updated>
<author>
<name>Zachary S</name>
<email>zasample18+github@gmail.com</email>
</author>
<published>2025-07-28T21:13:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=10fde9eafe95650eca9452e960a891ec3ee35565'/>
<id>urn:sha1:10fde9eafe95650eca9452e960a891ec3ee35565</id>
<content type='text'>
Pointers with different residues modulo their least common allocation alignment are never equal.
Pointers to the same static allocation are equal if and only if they have the same offset.
Strictly in-bounds (in-bounds and not one-past-the-end) pointers to different static allocations are always unequal.
A pointer cannot be equal to an integer if `ptr-int` cannot be null.

Also adds more tests for `ptr_guaranteed_cmp`.

Co-authored-by: Ralf Jung &lt;post@ralfj.de&gt;
</content>
</entry>
</feed>
