<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_const_eval/src/const_eval/machine.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-07-20T20:14:27+00:00</updated>
<entry>
<title>fix handling of base address for TypeId allocations</title>
<updated>2025-07-20T20:14:27+00:00</updated>
<author>
<name>Ralf Jung</name>
<email>post@ralfj.de</email>
</author>
<published>2025-07-19T18:04:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=3f9be406a6fd879a99a0eba33cc196fa2cb3957b'/>
<id>urn:sha1:3f9be406a6fd879a99a0eba33cc196fa2cb3957b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>parse `const trait Trait`</title>
<updated>2025-07-17T10:06:26+00:00</updated>
<author>
<name>Deadbeef</name>
<email>ent3rm4n@gmail.com</email>
</author>
<published>2025-07-13T08:49:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=69326878eeabb713e2d4a85215b87f18e498313c'/>
<id>urn:sha1:69326878eeabb713e2d4a85215b87f18e498313c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>simplfy memory kind handling during interning</title>
<updated>2025-07-16T13:29:52+00:00</updated>
<author>
<name>Ralf Jung</name>
<email>post@ralfj.de</email>
</author>
<published>2025-07-16T13:19:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=0bf0860a0ef285fe3e4eb3b176006c14d8ca9d8d'/>
<id>urn:sha1:0bf0860a0ef285fe3e4eb3b176006c14d8ca9d8d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Comment more code and make tests clearer</title>
<updated>2025-07-15T16:50:20+00:00</updated>
<author>
<name>Deadbeef</name>
<email>ent3rm4n@gmail.com</email>
</author>
<published>2025-07-13T07:11:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=fd48b7b8dd911229b635f7969e6213b5af337b7d'/>
<id>urn:sha1:fd48b7b8dd911229b635f7969e6213b5af337b7d</id>
<content type='text'>
Co-Authored-By: Ralf Jung &lt;post@ralfj.de&gt;
</content>
</entry>
<entry>
<title>add `const_make_global`; err for `const_allocate` ptrs if didn't call</title>
<updated>2025-07-15T16:32:12+00:00</updated>
<author>
<name>Deadbeef</name>
<email>ent3rm4n@gmail.com</email>
</author>
<published>2025-07-07T16:20:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=3f2dc2bd1a2e0120b868911497ddbd8e43f3a9fa'/>
<id>urn:sha1:3f2dc2bd1a2e0120b868911497ddbd8e43f3a9fa</id>
<content type='text'>
Co-Authored-By: Ralf Jung &lt;post@ralfj.de&gt;
Co-Authored-By: Oli Scherer &lt;github333195615777966@oli-obk.de&gt;
</content>
</entry>
<entry>
<title>make `Machine::load_mir` infallible</title>
<updated>2025-07-07T11:57:04+00:00</updated>
<author>
<name>Deadbeef</name>
<email>ent3rm4n@gmail.com</email>
</author>
<published>2025-07-07T11:56:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=be6cd11d1be706bddbf32c0344e3248c0fb84eaa'/>
<id>urn:sha1:be6cd11d1be706bddbf32c0344e3248c0fb84eaa</id>
<content type='text'>
it doesn't need to return an `InterpResult`.
</content>
</entry>
<entry>
<title>miri: improve errors for type validity assertion failures</title>
<updated>2025-07-02T15:47:46+00:00</updated>
<author>
<name>Ralf Jung</name>
<email>post@ralfj.de</email>
</author>
<published>2025-07-02T13:04:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=8362508989c8941ccbba26aaa8c787cc492c6fef'/>
<id>urn:sha1:8362508989c8941ccbba26aaa8c787cc492c6fef</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Auto merge of #141759 - 1c3t3a:discriminants-query, r=saethlin</title>
<updated>2025-06-28T10:25:00+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2025-06-28T10:25:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b63223c152212832ce37a109e26cc5f84c577532'/>
<id>urn:sha1:b63223c152212832ce37a109e26cc5f84c577532</id>
<content type='text'>
Insert checks for enum discriminants when debug assertions are enabled

Similar to the existing null-pointer and alignment checks, this checks for valid enum discriminants on creation of enums through unsafe transmutes. Essentially this sanitizes patterns like the following:
```rust
let val: MyEnum = unsafe { std::mem::transmute&lt;u32, MyEnum&gt;(42) };
```

An extension of this check will be done in a follow-up that explicitly sanitizes for extern enum values that come into Rust from e.g. C/C++.

This check is similar to Miri's capabilities of checking for valid construction of enum values.

This PR is inspired by saethlin@'s PR
https://github.com/rust-lang/rust/pull/104862. Thank you so much for keeping this code up and the detailed comments!

I also pair-programmed large parts of this together with vabr-g@.

r? `@saethlin`
</content>
</entry>
<entry>
<title>const-eval: error when initializing a static writes to that static</title>
<updated>2025-06-27T12:39:35+00:00</updated>
<author>
<name>Ralf Jung</name>
<email>post@ralfj.de</email>
</author>
<published>2025-06-27T10:47:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ed4f01ed2e033098f6c5e10a4a0cc740dc04f958'/>
<id>urn:sha1:ed4f01ed2e033098f6c5e10a4a0cc740dc04f958</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Insert checks for enum discriminants when debug assertions are enabled</title>
<updated>2025-06-27T09:37:36+00:00</updated>
<author>
<name>Bastian Kersting</name>
<email>bkersting@google.com</email>
</author>
<published>2025-05-15T19:09:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1087042e22ae3d14ff856f621a84eaa3e15cc537'/>
<id>urn:sha1:1087042e22ae3d14ff856f621a84eaa3e15cc537</id>
<content type='text'>
Similar to the existing nullpointer and alignment checks, this checks
for valid enum discriminants on creation of enums through unsafe
transmutes. Essentially this sanitizes patterns like the following:
```rust
let val: MyEnum = unsafe { std::mem::transmute&lt;u32, MyEnum&gt;(42) };
```
An extension of this check will be done in a follow-up that explicitly
sanitizes for extern enum values that come into Rust from e.g. C/C++.

This check is similar to Miri's capabilities of checking for valid
construction of enum values.

This PR is inspired by saethlin@'s PR
https://github.com/rust-lang/rust/pull/104862. Thank you so much for
keeping this code up and the detailed comments!

I also pair-programmed large parts of this together with vabr-g@.
</content>
</entry>
</feed>
