<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_mir_build/src, 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-14T04:29:53+00:00</updated>
<entry>
<title>Auto merge of #143779 - JonathanBrouwer:automatically_derived_parser, r=oli-obk</title>
<updated>2025-07-14T04:29:53+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2025-07-14T04:29:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ad635e5d0696076b4412dd7db7b7e8c0867d6e0c'/>
<id>urn:sha1:ad635e5d0696076b4412dd7db7b7e8c0867d6e0c</id>
<content type='text'>
Port `#[automatically_derived]` to the new attribute parsing infrastructure

Ports `#[automatically_derived]` to the new attribute parsing infrastructure for https://github.com/rust-lang/rust/issues/131229#issuecomment-2971351163

r? `@oli-obk`
cc `@jdonszelmann`
</content>
</entry>
<entry>
<title>Generalize TyCtxt::item_name.</title>
<updated>2025-07-13T13:50:00+00:00</updated>
<author>
<name>Camille GILLOT</name>
<email>gillot.camille@gmail.com</email>
</author>
<published>2025-07-03T09:09:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=36bc0948e0a67f5aeb2a1d997acf4cd94d948fa9'/>
<id>urn:sha1:36bc0948e0a67f5aeb2a1d997acf4cd94d948fa9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Port `#[automatically_derived]` to the new attribute parsing infrastructure</title>
<updated>2025-07-12T15:48:50+00:00</updated>
<author>
<name>Jonathan Brouwer</name>
<email>jonathantbrouwer@gmail.com</email>
</author>
<published>2025-07-11T10:01:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ef82007ed7b7833e3efdec0d80712849048c5c1f'/>
<id>urn:sha1:ef82007ed7b7833e3efdec0d80712849048c5c1f</id>
<content type='text'>
Signed-off-by: Jonathan Brouwer &lt;jonathantbrouwer@gmail.com&gt;
</content>
</entry>
<entry>
<title>Auto merge of #143472 - dianne:deref-pat-column-check, r=Nadrieril</title>
<updated>2025-07-09T09:45:36+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2025-07-09T09:45:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6b3ae3f6e45a33c2d95fa0362c9b2593e567fd34'/>
<id>urn:sha1:6b3ae3f6e45a33c2d95fa0362c9b2593e567fd34</id>
<content type='text'>
`rustc_pattern_analysis`: always check that deref patterns don't match on the same place as normal constructors

In rust-lang/rust#140106, deref pattern validation was tied to the `deref_patterns` feature to temporarily avoid affecting perf. However:
- As of rust-lang/rust#143414, box patterns are represented as deref patterns in `rustc_pattern_analysis`. Since they can be used by enabling `box_patterns` instead of `deref_patterns`, it was possible for them to skip validation, resulting in an ICE. This fixes that and adds a regression test.
- External tooling (e.g. rust-analyzer) will also need to validate matches containing deref patterns, which was not possible. This fixes that by making `compute_match_usefulness` validate deref patterns by default.

In order to avoid doing an extra pass for anything with patterns, the second commit makes `RustcPatCtxt` keep track of whether it encounters a deref pattern, so that it only does the check if so. This is purely for performance. If the perf impact of the first commit is negligible and the complexity cost introduced by the second commit is significant, it may be worth dropping the latter.

r? `@Nadrieril`
</content>
</entry>
<entry>
<title>Auto merge of #143601 - matthiaskrgr:rollup-9iw2sqk, r=matthiaskrgr</title>
<updated>2025-07-07T20:30:53+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2025-07-07T20:30:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a2d45f73c70d9dec57140c9412f83586eda895f8'/>
<id>urn:sha1:a2d45f73c70d9dec57140c9412f83586eda895f8</id>
<content type='text'>
Rollup of 9 pull requests

Successful merges:

 - rust-lang/rust#132469 (Do not suggest borrow that is already there in fully-qualified call)
 - rust-lang/rust#143340 (awhile -&gt; a while where appropriate)
 - rust-lang/rust#143438 (Fix the link in `rustdoc.md`)
 - rust-lang/rust#143539 (Regression tests for repr ICEs)
 - rust-lang/rust#143566 (Fix `x86_64-unknown-netbsd` platform support page)
 - rust-lang/rust#143572 (Remove unused allow attrs)
 - rust-lang/rust#143583 (`loop_match`: fix 'no terminator on block')
 - rust-lang/rust#143584 (make `Machine::load_mir` infallible)
 - rust-lang/rust#143591 (Fix missing words in future tracking issue)

r? `@ghost`
`@rustbot` modify labels: rollup
</content>
</entry>
<entry>
<title>Auto merge of #143182 - xdoardo:more-addrspace, r=workingjubilee</title>
<updated>2025-07-07T17:28:14+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2025-07-07T17:28:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2f8eeb2bba86b8f457ec602c578473c711f85628'/>
<id>urn:sha1:2f8eeb2bba86b8f457ec602c578473c711f85628</id>
<content type='text'>
Allow custom default address spaces and parse `p-` specifications in the datalayout string

Some targets, such as CHERI, use as default an address space different from the "normal" default address space `0` (in the case of CHERI, [200 is used](https://www.cl.cam.ac.uk/techreports/UCAM-CL-TR-877.pdf)). Currently, `rustc` does not allow to specify custom address spaces and does not take into consideration [`p-` specifications in the datalayout string](https://llvm.org/docs/LangRef.html#langref-datalayout).

This patch tries to mitigate these problems by allowing targets to define a custom default address space (while keeping the default value to address space `0`) and adding the code to parse the `p-` specifications in `rustc_abi`. The main changes are that `TargetDataLayout` now uses functions to refer to pointer-related informations, instead of having specific fields for the size and alignment of pointers in the default address space; furthermore, the two `pointer_size` and `pointer_align` fields in `TargetDataLayout` are replaced with an `FxHashMap` that holds info for all the possible address spaces, as parsed by the `p-` specifications.

The potential performance drawbacks of not having ad-hoc fields for the default address space will be tested in this PR's CI run.

r? workingjubilee
</content>
</entry>
<entry>
<title>`loop_match`: fix 'no terminator on block'</title>
<updated>2025-07-07T11:55:40+00:00</updated>
<author>
<name>Folkert de Vries</name>
<email>folkert@folkertdev.nl</email>
</author>
<published>2025-07-07T11:55:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6d58a88c3ca2eefc24654700db522bfed668e1cb'/>
<id>urn:sha1:6d58a88c3ca2eefc24654700db522bfed668e1cb</id>
<content type='text'>
</content>
</entry>
<entry>
<title>compiler: Parse `p-` specs in datalayout string, allow definition of custom default data address space</title>
<updated>2025-07-07T07:04:53+00:00</updated>
<author>
<name>Edoardo Marangoni</name>
<email>edoardo.marangoni@scisemi.com</email>
</author>
<published>2025-06-29T10:11:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=93f1201c0616672d71e640a0ad600d029448c40a'/>
<id>urn:sha1:93f1201c0616672d71e640a0ad600d029448c40a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove yields_in_scope from the scope tree.</title>
<updated>2025-07-05T15:24:15+00:00</updated>
<author>
<name>Camille GILLOT</name>
<email>gillot.camille@gmail.com</email>
</author>
<published>2025-07-05T15:11:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=39ee1b2d774d4be6959e3b045052abef54a29e0b'/>
<id>urn:sha1:39ee1b2d774d4be6959e3b045052abef54a29e0b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>only check for mixed deref/normal constructors when needed</title>
<updated>2025-07-05T06:47:31+00:00</updated>
<author>
<name>dianne</name>
<email>diannes.gm@gmail.com</email>
</author>
<published>2025-07-05T04:53:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=bb643159786c789c0b64f819d36a0979c63f9791'/>
<id>urn:sha1:bb643159786c789c0b64f819d36a0979c63f9791</id>
<content type='text'>
</content>
</entry>
</feed>
