<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/tests/ui/parser/issues, branch lcnr/rustc-dev-guide</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=lcnr/rustc-dev-guide</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=lcnr/rustc-dev-guide'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2025-08-05T02:10:31+00:00</updated>
<entry>
<title>Added checks for attribute in type case</title>
<updated>2025-08-05T02:10:31+00:00</updated>
<author>
<name>Kivooeo</name>
<email>Kivooeo123@gmail.com</email>
</author>
<published>2025-07-19T21:25:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d09cf616f74e068cfb092e91472fb0ae371529ad'/>
<id>urn:sha1:d09cf616f74e068cfb092e91472fb0ae371529ad</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #138554 - xizheyin:issue-138401, r=chenyukang</title>
<updated>2025-07-18T17:14:42+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>476013+matthiaskrgr@users.noreply.github.com</email>
</author>
<published>2025-07-18T17:14:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=61285e211bf3d323d2c5d649c99207c500cc0cc2'/>
<id>urn:sha1:61285e211bf3d323d2c5d649c99207c500cc0cc2</id>
<content type='text'>
Distinguish delim kind to decide whether to emit unexpected closing delimiter

Fixes #138401
</content>
</entry>
<entry>
<title>Deduplicate `unmatched_delims` in `rustc_parse` to reduce confusion</title>
<updated>2025-07-18T12:34:58+00:00</updated>
<author>
<name>xizheyin</name>
<email>xizheyin@smail.nju.edu.cn</email>
</author>
<published>2025-07-10T08:27:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=181c1bda0ef33c36e59628de6dd5c6ddf95f599f'/>
<id>urn:sha1:181c1bda0ef33c36e59628de6dd5c6ddf95f599f</id>
<content type='text'>
Signed-off-by: xizheyin &lt;xizheyin@smail.nju.edu.cn&gt;
</content>
</entry>
<entry>
<title>Rollup merge of #143921 - oli-obk:const-index, r=fee1-dead</title>
<updated>2025-07-16T15:06:41+00:00</updated>
<author>
<name>Samuel Tardieu</name>
<email>sam@rfc1149.net</email>
</author>
<published>2025-07-16T15:06:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=9eda137008637d7c70e0beefe5ea51b2e4c7a599'/>
<id>urn:sha1:9eda137008637d7c70e0beefe5ea51b2e4c7a599</id>
<content type='text'>
Constify `Index` traits

tracking issue: rust-lang/rust#143775

the `SliceIndex` trait cannot be implemented by users as it is sealed. While it would be useful for the `get` method on slices, it seems weird to have a feature gate for that that isn't also gating index syntax at the same time, so I put them under the same feature gate.

r? ```````@fee1-dead```````
</content>
</entry>
<entry>
<title>constify `Index` trait and its slice impls</title>
<updated>2025-07-15T08:27:15+00:00</updated>
<author>
<name>Oli Scherer</name>
<email>github333195615777966@oli-obk.de</email>
</author>
<published>2025-07-11T09:24:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2b4ede7e3d37de731821b5b04a6f1fce269c1afb'/>
<id>urn:sha1:2b4ede7e3d37de731821b5b04a6f1fce269c1afb</id>
<content type='text'>
</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>Add ui test unnessary-error-issue-138401.rs</title>
<updated>2025-07-07T07:27:01+00:00</updated>
<author>
<name>xizheyin</name>
<email>xizheyin@smail.nju.edu.cn</email>
</author>
<published>2025-06-24T08:09:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=229be21d0d5297a66e7fe6b56606d0549bfccd5f'/>
<id>urn:sha1:229be21d0d5297a66e7fe6b56606d0549bfccd5f</id>
<content type='text'>
Signed-off-by: xizheyin &lt;xizheyin@smail.nju.edu.cn&gt;
</content>
</entry>
<entry>
<title>Rewrite `macro_rules!` parser to not use the MBE engine itself</title>
<updated>2025-06-26T22:20:42+00:00</updated>
<author>
<name>Josh Triplett</name>
<email>josh@joshtriplett.org</email>
</author>
<published>2025-06-26T21:19:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6c04e0a7aeeee15fc11759dd563aecfe6df194a0'/>
<id>urn:sha1:6c04e0a7aeeee15fc11759dd563aecfe6df194a0</id>
<content type='text'>
The `macro_rules!` parser was written to match the series of rules using
the macros-by-example (MBE) engine and a hand-written equivalent of the
left-hand side of a MBE macro. This was complex to read, difficult to
extend, and produced confusing error messages. Because it was using the
MBE engine, any parse failure would be reported as if some macro was
being applied to the `macro_rules!` invocation itself; for instance,
errors would talk about "macro invocation", "macro arguments", and
"macro call", when they were actually about the macro *definition*.

And in practice, the `macro_rules!` parser only used the MBE engine to
extract the left-hand side and right-hand side of each rule as a token
tree, and then parsed the rest using a separate parser.

Rewrite it to parse the series of rules using a simple loop, instead.
This makes it more extensible in the future, and improves error
messages. For instance, omitting a semicolon between rules will result
in "expected `;`" and "unexpected token", rather than the confusing "no
rules expected this token in macro call".

This work was greatly aided by pair programming with Vincenzo Palazzo
and Eric Holk.
</content>
</entry>
<entry>
<title>Rollup merge of #142485 - mu001999-contrib:dead-code/adt-pattern, r=petrochenkov</title>
<updated>2025-06-21T03:25:55+00:00</updated>
<author>
<name>Trevor Gross</name>
<email>t.gross35@gmail.com</email>
</author>
<published>2025-06-21T03:25:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c93fac7d64394c6b926d863c1903d2e91fd2e41d'/>
<id>urn:sha1:c93fac7d64394c6b926d863c1903d2e91fd2e41d</id>
<content type='text'>
Marks ADT live if it appears in pattern

Marks ADT live if it appears in pattern, it implies the construction of the ADT.
1. Then we can detect unused private ADTs impl `Default`, without special logics for `Default` and other std traits.
2. We can also remove `rustc_trivial_field_reads` on `Default`, and the logic in `should_ignore_item` (introduced by rust-lang/rust#126302).

Fixes rust-lang/rust#120770

Extracted from rust-lang/rust#128637.
r? `@petrochenkov`
</content>
</entry>
<entry>
<title>Marks ADT live if it appears in pattern</title>
<updated>2025-06-14T05:44:43+00:00</updated>
<author>
<name>Mu001999</name>
<email>mu001999@outlook.com</email>
</author>
<published>2025-06-14T04:05:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=52167e04e62a84fe5073c4074733c72f96961ace'/>
<id>urn:sha1:52167e04e62a84fe5073c4074733c72f96961ace</id>
<content type='text'>
</content>
</entry>
</feed>
