<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_mir_build/src, 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-10-02T01:54:48+00:00</updated>
<entry>
<title>Auto merge of #147055 - beepster4096:subtype_is_not_a_projection, r=lcnr</title>
<updated>2025-10-02T01:54:48+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2025-10-02T01:54:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=42b384ec0dfcd528d99a4db0a337d9188a9eecaa'/>
<id>urn:sha1:42b384ec0dfcd528d99a4db0a337d9188a9eecaa</id>
<content type='text'>
Turn ProjectionElem::Subtype into CastKind::Subtype

I noticed that drop elaboration can't, in general, handle `ProjectionElem::SubType`. It creates a disjoint move path that overlaps with other move paths. (`Subslice` does too, and I'm working on a different PR to make that special case less fragile.) If its skipped and treated as the same move path as its parent then `MovePath.place` has multiple possible projections. (It would probably make sense to remove all `Subtype` projections for the canonical place but it doesn't make sense to have this special case for a problem that doesn't actually occur in real MIR.)

The only reason this doesn't break is that `Subtype` is always the sole projection of the local its applied to. For the same reason, it works fine as a `CastKind` so I figured that makes more sense than documenting and validating this hidden invariant.

cc rust-lang/rust#112651, rust-lang/rust#133258

r? Icnr (bc you've been the main person dealing with `Subtype` it looks like)
</content>
</entry>
<entry>
<title>Rollup merge of #141469 - Kivooeo:remove-usnsafegate, r=compiler-errors</title>
<updated>2025-09-28T16:13:11+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>476013+matthiaskrgr@users.noreply.github.com</email>
</author>
<published>2025-09-28T16:13:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6059195875986ac9d928d1059d733d518cb1709b'/>
<id>urn:sha1:6059195875986ac9d928d1059d733d518cb1709b</id>
<content type='text'>
Allow `&amp;raw [mut | const]` for union field in safe code

fixes rust-lang/rust#141264

r? ``@Veykril``

Unresolved questions:

- [x] Any edge cases?
- [x] How this works with rust-analyzer (because all I've did is prevent compiler from emitting error in `&amp;raw` context) (rust-lang/rust-analyzer#19867)
- [x] Should we allow `addr_of!` and `addr_of_mut!` as well? In current version they both (`&amp;raw` and `addr_of!`) are allowed (They are the same)
- [x] Is chain of union fields is a safe? (Yes)
</content>
</entry>
<entry>
<title>Rollup merge of #146745 - helldawg:master, r=workingjubilee</title>
<updated>2025-09-28T07:15:23+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>476013+matthiaskrgr@users.noreply.github.com</email>
</author>
<published>2025-09-28T07:15:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=4eddf645bf4d19fe52d1cf607ae3dc0e13787809'/>
<id>urn:sha1:4eddf645bf4d19fe52d1cf607ae3dc0e13787809</id>
<content type='text'>
Clarified error note for usize range matching

Fixes rust-lang/rust#146476

This is kinda rough, but it gets the point across a little better and stays short.
</content>
</entry>
<entry>
<title>fix doc comments to be more standard</title>
<updated>2025-09-26T09:25:56+00:00</updated>
<author>
<name>Marijn Schouten</name>
<email>mhkbst@gmail.com</email>
</author>
<published>2025-09-25T09:30:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=fc703ec5c88e678a4931f7bb8ed86efc141775f7'/>
<id>urn:sha1:fc703ec5c88e678a4931f7bb8ed86efc141775f7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>ProjectionElem::Subtype -&gt; CastKind::Subtype</title>
<updated>2025-09-26T08:25:26+00:00</updated>
<author>
<name>beepster4096</name>
<email>19316085+beepster4096@users.noreply.github.com</email>
</author>
<published>2025-09-26T03:54:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=aa5a21450a070fdea66a07d3cab3b69e6735c328'/>
<id>urn:sha1:aa5a21450a070fdea66a07d3cab3b69e6735c328</id>
<content type='text'>
</content>
</entry>
<entry>
<title>usize/isize range matching error clarification</title>
<updated>2025-09-25T15:15:04+00:00</updated>
<author>
<name>helldawg</name>
<email>116204326+helldawg@users.noreply.github.com</email>
</author>
<published>2025-09-19T01:59:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=7e58c9110521d960cb97e730dfe700b3ec64c9ab'/>
<id>urn:sha1:7e58c9110521d960cb97e730dfe700b3ec64c9ab</id>
<content type='text'>
</content>
</entry>
<entry>
<title>mark THIR use as candidate for constness check</title>
<updated>2025-09-24T17:54:25+00:00</updated>
<author>
<name>Ding Xiang Fei</name>
<email>dingxiangfei2009@protonmail.ch</email>
</author>
<published>2025-09-24T17:53:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b77de834c031890c048f8164d4b5979d2511c00e'/>
<id>urn:sha1:b77de834c031890c048f8164d4b5979d2511c00e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>do not materialise X in [X; 0] when X is unsizing a const</title>
<updated>2025-09-24T17:54:23+00:00</updated>
<author>
<name>Ding Xiang Fei</name>
<email>dingxiangfei2009@protonmail.ch</email>
</author>
<published>2025-08-11T22:39:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a86f14072714fb817a6f60fa20be5a4e875d049f'/>
<id>urn:sha1:a86f14072714fb817a6f60fa20be5a4e875d049f</id>
<content type='text'>
</content>
</entry>
<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>Driveby fixes</title>
<updated>2025-09-09T12:49:16+00:00</updated>
<author>
<name>Boxy</name>
<email>rust@boxyuwu.dev</email>
</author>
<published>2025-08-22T11:31:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=332d8d62356a1be77bfe6412ab5ed3fa33ae9af6'/>
<id>urn:sha1:332d8d62356a1be77bfe6412ab5ed3fa33ae9af6</id>
<content type='text'>
</content>
</entry>
</feed>
