<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_parse/src/parser, 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-17T10:06:26+00:00</updated>
<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>Rollup merge of #143941 - folkertdev:cfg-select-docs, r=traviscross</title>
<updated>2025-07-15T10:52:44+00:00</updated>
<author>
<name>Samuel Tardieu</name>
<email>sam@rfc1149.net</email>
</author>
<published>2025-07-15T10:52:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=010e3ef1137b313eb6aad8c4044b491b8b9f84dc'/>
<id>urn:sha1:010e3ef1137b313eb6aad8c4044b491b8b9f84dc</id>
<content type='text'>
update `cfg_select!` documentation

tracking issue: https://github.com/rust-lang/rust/issues/115585

After rust-lang/rust#143461, and with an eye on a soon(ish) stabilization, I think the docs need some work.

The existing text read more like a motivation for the feature existing to me, so I've tried to now be a bit more descriptive. Still, suggestions are very welcome.

I also added a test for an empty `select! {}` because it's just the sort of thing that might break.

r? ``@traviscross``
</content>
</entry>
<entry>
<title>Rollup merge of #143905 - xizheyin:143828, r=compiler-errors</title>
<updated>2025-07-15T10:52:40+00:00</updated>
<author>
<name>Samuel Tardieu</name>
<email>sam@rfc1149.net</email>
</author>
<published>2025-07-15T10:52:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=281990eb16494ca72fe81e6ebe225d3298baae1f'/>
<id>urn:sha1:281990eb16494ca72fe81e6ebe225d3298baae1f</id>
<content type='text'>
Recover and suggest to use `;` to construct array type

Fixes rust-lang/rust#143828

r? compiler
</content>
</entry>
<entry>
<title>Recover and suggest use `;` to construct array type</title>
<updated>2025-07-15T04:00:46+00:00</updated>
<author>
<name>xizheyin</name>
<email>xizheyin@smail.nju.edu.cn</email>
</author>
<published>2025-07-13T20:28:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ed88af21637ff3677100fd26f8db354cd6134ad4'/>
<id>urn:sha1:ed88af21637ff3677100fd26f8db354cd6134ad4</id>
<content type='text'>
Signed-off-by: xizheyin &lt;xizheyin@smail.nju.edu.cn&gt;
</content>
</entry>
<entry>
<title>update `cfg_select!` documentation</title>
<updated>2025-07-14T20:29:28+00:00</updated>
<author>
<name>Folkert de Vries</name>
<email>folkert@folkertdev.nl</email>
</author>
<published>2025-07-14T09:03:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d0153f5872c484dff2a4b0ef6cad45c1f14fa1b7'/>
<id>urn:sha1:d0153f5872c484dff2a4b0ef6cad45c1f14fa1b7</id>
<content type='text'>
and make internal terminology consistent

Co-authored-by: Travis Cross &lt;tc@traviscross.com&gt;
</content>
</entry>
<entry>
<title>Auto merge of #143461 - folkertdev:cfg-select-builtin-macro, r=petrochenkov</title>
<updated>2025-07-13T18:34:13+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2025-07-13T18:34:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e9182f195b8505c87c4bd055b9f6e114ccda0981'/>
<id>urn:sha1:e9182f195b8505c87c4bd055b9f6e114ccda0981</id>
<content type='text'>
make `cfg_select` a builtin macro

tracking issue: https://github.com/rust-lang/rust/issues/115585

This parses mostly the same as the `macro cfg_select` version, except:

1. wrapping in double brackets is no longer supported (or needed): `cfg_select {{ /* ... */ }}` is now rejected.
2. in an expression context, the rhs is no longer wrapped in a block, so that this now works:
  ```rust
  fn main() {
      println!(cfg_select! {
          unix =&gt; { "foo" }
          _ =&gt; { "bar" }
      });
  }
  ```
3. a single wildcard rule is now supported: `cfg_select { _ =&gt; 1 }` now works

I've also added an error if none of the rules evaluate to true, and warnings for any arms that follow the `_` wildcard rule.

cc `@traviscross` if I'm missing any feature that should/should not be included
r? `@petrochenkov` for the macro logic details
</content>
</entry>
<entry>
<title>make `cfg_select` a builtin macro</title>
<updated>2025-07-13T12:34:40+00:00</updated>
<author>
<name>Folkert de Vries</name>
<email>folkert@folkertdev.nl</email>
</author>
<published>2025-07-04T21:56:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=3689b80b75bb400e740897ec83e64be332098c0d'/>
<id>urn:sha1:3689b80b75bb400e740897ec83e64be332098c0d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove uncessary parens in closure body with unused lint</title>
<updated>2025-07-10T01:25:56+00:00</updated>
<author>
<name>yukang</name>
<email>moorekang@gmail.com</email>
</author>
<published>2025-06-29T03:40:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=93db9e7ee01d61cb97b4f7b3d61903477910cae2'/>
<id>urn:sha1:93db9e7ee01d61cb97b4f7b3d61903477910cae2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #143589 - RalfJung:const-pat, r=compiler-errors</title>
<updated>2025-07-08T01:09:58+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>476013+matthiaskrgr@users.noreply.github.com</email>
</author>
<published>2025-07-08T01:09:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=65dded838703fddfb8f3f9b3e4741cb4e34b9f06'/>
<id>urn:sha1:65dded838703fddfb8f3f9b3e4741cb4e34b9f06</id>
<content type='text'>
const-block-as-pattern: do not refer to no-longer-existing nightly feature

Surely everyone who used this nightly feature has fixed their code by now. So let's not confused people on stable that try to use a const block as a pattern by referring to some dead nightly feature.
</content>
</entry>
<entry>
<title>const-block-as-pattern: do not refer to no-longer-existing nightly feature</title>
<updated>2025-07-07T14:18:41+00:00</updated>
<author>
<name>Ralf Jung</name>
<email>post@ralfj.de</email>
</author>
<published>2025-07-07T14:18:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1a6eff747fa5152e6fae64c8ee1167a0c587dc98'/>
<id>urn:sha1:1a6eff747fa5152e6fae64c8ee1167a0c587dc98</id>
<content type='text'>
</content>
</entry>
</feed>
