<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_middle/src/mir/syntax.rs, branch cargo_update</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=cargo_update</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=cargo_update'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2025-09-16T22:23:19+00:00</updated>
<entry>
<title>Remove Rvalue::Len.</title>
<updated>2025-09-16T22:23:19+00:00</updated>
<author>
<name>Camille Gillot</name>
<email>gillot.camille@gmail.com</email>
</author>
<published>2025-09-14T22:29:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=53b91ea87fe4b430c33bd22dfdaaa6289bf9466a'/>
<id>urn:sha1:53b91ea87fe4b430c33bd22dfdaaa6289bf9466a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>clarify current MIR semantics re: overlapping assignment</title>
<updated>2025-09-10T13:59:11+00:00</updated>
<author>
<name>Ralf Jung</name>
<email>post@ralfj.de</email>
</author>
<published>2025-09-10T12:27:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=72225060edefb6ae4014c671e9953f9822ddff7a'/>
<id>urn:sha1:72225060edefb6ae4014c671e9953f9822ddff7a</id>
<content type='text'>
and double-check that we match it in codegen
</content>
</entry>
<entry>
<title>Remove bug comments from Repeat variant</title>
<updated>2025-08-25T06:49:10+00:00</updated>
<author>
<name>Ryan Lee</name>
<email>138088339+minux-lee@users.noreply.github.com</email>
</author>
<published>2025-08-25T06:49:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=baff99c556a22c962c15cfb9f79a0dcb1d467b20'/>
<id>urn:sha1:baff99c556a22c962c15cfb9f79a0dcb1d467b20</id>
<content type='text'>
Removed comments related to a bug in Repeat variant.</content>
</entry>
<entry>
<title>setup CI and tidy to use typos for spellchecking and fix few typos</title>
<updated>2025-07-03T07:51:06+00:00</updated>
<author>
<name>klensy</name>
<email>klensy@users.noreply.github.com</email>
</author>
<published>2024-12-07T10:51:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c76d032f0144b650a438ee1efba89c475e0b115b'/>
<id>urn:sha1:c76d032f0144b650a438ee1efba89c475e0b115b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #143088 - firefighterduck:improve-doc-discr-tag, r=RalfJung</title>
<updated>2025-06-29T04:59:30+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>476013+matthiaskrgr@users.noreply.github.com</email>
</author>
<published>2025-06-29T04:59:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6404d29442a238f4876a10e97de73dc2e22d81a7'/>
<id>urn:sha1:6404d29442a238f4876a10e97de73dc2e22d81a7</id>
<content type='text'>
Improve documentation of `TagEncoding`

This PR is follow-up from the [discussion here](https://rust-lang.zulipchat.com/#narrow/channel/182449-t-compiler.2Fhelp/topic/.E2.9C.94.20VariantId.3DDiscriminant.20when.20tag.20is.20niche.20encoded.3F/with/524384295).

It aims at making the `TagEncoding` documentation less ambiguous and more detailed with references to relevant implementation sides. It especially clears up the ambiguous use of discriminant/variant index, which sparked the discussion referenced above.

PS: While working with layout data, I somehow ended up looking at the docs for `FakeBorrowKind` and noticed that the one example was not in a doc comment. I hope that this is minor enough of a fix for it to be okay in this otherwise unrelated PR.
</content>
</entry>
<entry>
<title>fix docs of FakeBorrowKind</title>
<updated>2025-06-28T11:54:51+00:00</updated>
<author>
<name>Florian Sextl</name>
<email>florian.sextl@tuwien.ac.at</email>
</author>
<published>2025-06-27T11:04:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=3d968973c9563fb19ef041145b8e0ef7bb183b85'/>
<id>urn:sha1:3d968973c9563fb19ef041145b8e0ef7bb183b85</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>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>
<entry>
<title>Unimplement unsized_locals</title>
<updated>2025-06-12T23:16:36+00:00</updated>
<author>
<name>mejrs</name>
<email>59372212+mejrs@users.noreply.github.com</email>
</author>
<published>2025-06-12T23:16:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c0e02e26b39913ec1ee31621c65784542b137310'/>
<id>urn:sha1:c0e02e26b39913ec1ee31621c65784542b137310</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Allow transmute casts in pre-runtime-MIR</title>
<updated>2025-06-06T16:19:38+00:00</updated>
<author>
<name>Oli Scherer</name>
<email>github333195615777966@oli-obk.de</email>
</author>
<published>2025-06-06T16:15:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c677dc26b4d9d5e742ff860ace924a270a2266b6'/>
<id>urn:sha1:c677dc26b4d9d5e742ff860ace924a270a2266b6</id>
<content type='text'>
</content>
</entry>
</feed>
