<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_parse/src/parser, branch 1.86.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.86.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.86.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2025-02-10T19:51:26+00:00</updated>
<entry>
<title>Stop using span hack for contracts feature gating</title>
<updated>2025-02-10T19:51:26+00:00</updated>
<author>
<name>Michael Goulet</name>
<email>michael@errs.io</email>
</author>
<published>2025-02-10T19:47:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=28164e3c047991294a3d4e7afd6b820c0c2f86ee'/>
<id>urn:sha1:28164e3c047991294a3d4e7afd6b820c0c2f86ee</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rustfmt</title>
<updated>2025-02-08T22:12:13+00:00</updated>
<author>
<name>bjorn3</name>
<email>17426603+bjorn3@users.noreply.github.com</email>
</author>
<published>2025-02-08T22:12:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1fcae03369abb4c2cc180cd5a49e1f4440a81300'/>
<id>urn:sha1:1fcae03369abb4c2cc180cd5a49e1f4440a81300</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Stop passing the same resource multiple times when building ParseSess</title>
<updated>2025-02-06T17:30:10+00:00</updated>
<author>
<name>bjorn3</name>
<email>17426603+bjorn3@users.noreply.github.com</email>
</author>
<published>2025-02-05T15:16:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b9b2c3affcc51e85d793f51875db067513642863'/>
<id>urn:sha1:b9b2c3affcc51e85d793f51875db067513642863</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Auto merge of #136471 - safinaskar:parallel, r=SparrowLii</title>
<updated>2025-02-06T10:50:05+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2025-02-06T10:50:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2f92f050e83bf3312ce4ba73c31fe843ad3cbc60'/>
<id>urn:sha1:2f92f050e83bf3312ce4ba73c31fe843ad3cbc60</id>
<content type='text'>
tree-wide: parallel: Fully removed all `Lrc`, replaced with `Arc`

tree-wide: parallel: Fully removed all `Lrc`, replaced with `Arc`

This is continuation of https://github.com/rust-lang/rust/pull/132282 .

I'm pretty sure I did everything right. In particular, I searched all occurrences of `Lrc` in submodules and made sure that they don't need replacement.

There are other possibilities, through.

We can define `enum Lrc&lt;T&gt; { Rc(Rc&lt;T&gt;), Arc(Arc&lt;T&gt;) }`. Or we can make `Lrc` a union and on every clone we can read from special thread-local variable. Or we can add a generic parameter to `Lrc` and, yes, this parameter will be everywhere across all codebase.

So, if you think we should take some alternative approach, then don't merge this PR. But if it is decided to stick with `Arc`, then, please, merge.

cc "Parallel Rustc Front-end" ( https://github.com/rust-lang/rust/issues/113349 )

r? SparrowLii

`@rustbot` label WG-compiler-parallel
</content>
</entry>
<entry>
<title>Rename rustc_contract to contract</title>
<updated>2025-02-03T21:55:15+00:00</updated>
<author>
<name>Celina G. Val</name>
<email>celinval@amazon.com</email>
</author>
<published>2025-01-31T01:06:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ddbf54b67d9befcf1fb90613d2a6f7f6aa03141e'/>
<id>urn:sha1:ddbf54b67d9befcf1fb90613d2a6f7f6aa03141e</id>
<content type='text'>
This has now been approved as a language feature and no longer needs
a `rustc_` prefix.

Also change the `contracts` feature to be marked as incomplete and
`contracts_internals` as internal.
</content>
</entry>
<entry>
<title>Separate contract feature gates for the internal machinery</title>
<updated>2025-02-03T21:55:15+00:00</updated>
<author>
<name>Felix S. Klock II</name>
<email>pnkfelix@pnkfx.org</email>
</author>
<published>2024-12-03T16:13:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6a6c6b891bb0350b3f16abd3e84ff12dbd1b4c5b'/>
<id>urn:sha1:6a6c6b891bb0350b3f16abd3e84ff12dbd1b4c5b</id>
<content type='text'>
The extended syntax for function signature that includes contract clauses
should never be user exposed versus the interface we want to ship
externally eventually.
</content>
</entry>
<entry>
<title>Express contracts as part of function header and lower it to the contract lang items</title>
<updated>2025-02-03T20:54:00+00:00</updated>
<author>
<name>Celina G. Val</name>
<email>celinval@amazon.com</email>
</author>
<published>2025-01-09T00:38:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=38eff16d0aa029706a0b5845961f9b5ccddfd999'/>
<id>urn:sha1:38eff16d0aa029706a0b5845961f9b5ccddfd999</id>
<content type='text'>
includes post-developed commit: do not suggest internal-only keywords as corrections to parse failures.

includes post-developed commit: removed tabs that creeped in into rustfmt tool source code.

includes post-developed commit, placating rustfmt self dogfooding.

includes post-developed commit: add backquotes to prevent markdown checking from trying to treat an attr as a markdown hyperlink/

includes post-developed commit: fix lowering to keep contracts from being erroneously inherited by nested bodies (like closures).

Rebase Conflicts:
 - compiler/rustc_parse/src/parser/diagnostics.rs
 - compiler/rustc_parse/src/parser/item.rs
 - compiler/rustc_span/src/hygiene.rs

Remove contracts keywords from diagnostic messages
</content>
</entry>
<entry>
<title>tree-wide: parallel: Fully removed all `Lrc`, replaced with `Arc`</title>
<updated>2025-02-03T10:25:57+00:00</updated>
<author>
<name>Askar Safin</name>
<email>safinaskar@mail.ru</email>
</author>
<published>2025-02-03T03:44:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=0a21f1d0a2fe9e84727a2de735fdcf55e8820db6'/>
<id>urn:sha1:0a21f1d0a2fe9e84727a2de735fdcf55e8820db6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #135882 - hkBst:master, r=estebank</title>
<updated>2025-01-30T11:45:27+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2025-01-30T11:45:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=78ded09912a6f64ab83978ab70b40ef7ff94b833'/>
<id>urn:sha1:78ded09912a6f64ab83978ab70b40ef7ff94b833</id>
<content type='text'>
simplify `similar_tokens` from `Option&lt;Vec&lt;_&gt;&gt;` to `&amp;[_]`

All uses immediately invoke contains, so maybe a further simplification is possible.
</content>
</entry>
<entry>
<title>Rollup merge of #133151 - tyrone-wu:trim-fn-ptr-whitespace, r=compiler-errors</title>
<updated>2025-01-28T13:23:20+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2025-01-28T13:23:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c0005f15609be44b4696bc9b4241f95f39887812'/>
<id>urn:sha1:c0005f15609be44b4696bc9b4241f95f39887812</id>
<content type='text'>
Trim extra whitespace in fn ptr suggestion span

Trim extra whitespace when suggesting removal of invalid qualifiers when parsing function pointer type.

Fixes: #133083

---

I made a comment about the format of the diagnostic error message in https://github.com/rust-lang/rust/issues/133083#issuecomment-2480047875. I think the `.label` may be a little redundant if the diagnostic only highlights the bad qualifier instead of the entire `TyKind::BareFn` span. If it makes sense, I can include it in this PR.
</content>
</entry>
</feed>
