<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/tools/rust-analyzer/crates/parser/test_data, branch perf-tmp</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=perf-tmp</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=perf-tmp'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2025-08-14T17:30:29+00:00</updated>
<entry>
<title>feat: hint at unterminated strings in unknown prefix errors</title>
<updated>2025-08-14T17:30:29+00:00</updated>
<author>
<name>Ralf Anton Beier</name>
<email>ralf_beier@me.com</email>
</author>
<published>2025-08-11T04:16:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=58ec13d79389f3886e71d43a0fcf501b84c1a40f'/>
<id>urn:sha1:58ec13d79389f3886e71d43a0fcf501b84c1a40f</id>
<content type='text'>
When encountering 'unknown literal prefix' errors, check for unbalanced
quotes in recent code and suggest checking for unterminated string literals.
</content>
</entry>
<entry>
<title>Merge Trait and TraitAlias handling</title>
<updated>2025-08-13T07:28:08+00:00</updated>
<author>
<name>Deadbeef</name>
<email>ent3rm4n@gmail.com</email>
</author>
<published>2025-08-04T08:11:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=8d247472e5f9612b4bf9668de937ad9c373b891c'/>
<id>urn:sha1:8d247472e5f9612b4bf9668de937ad9c373b891c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>parser: fix parsing of trait bound polarity and for-binders</title>
<updated>2025-08-10T06:21:11+00:00</updated>
<author>
<name>Nathaniel McCallum</name>
<email>nathaniel@mccallum.life</email>
</author>
<published>2025-08-10T05:38:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6b8a812aafaad6b0edd04d12569fe43ee1e69eed'/>
<id>urn:sha1:6b8a812aafaad6b0edd04d12569fe43ee1e69eed</id>
<content type='text'>
The rustc AST allows both `for&lt;&gt;` binders and `?` polarity
modifiers in trait bounds, but they are parsed in a specific
order and validated for correctness:

  1. `for&lt;&gt;` binder is parsed first.
  2. Polarity modifiers (`?`, `!`) are parsed second.
  3. The parser validates that binders and polarity modifiers
     do not conflict:

```rust
if let Some(binder_span) = binder_span {
    match modifiers.polarity {
        BoundPolarity::Maybe(polarity_span) =&gt; {
            // Error: "for&lt;...&gt; binder not allowed with ? polarity"
        }
    }
}
```

This implies:

- `for&lt;&gt; ?Sized` → Valid syntax. Invalid semantics.
- `?for&lt;&gt; Sized` → Invalid syntax.

However, rust-analyzer incorrectly had special-case logic that
allowed `?for&lt;&gt;` as valid syntax. This fix removes that incorrect
special case, making rust-analyzer reject `?for&lt;&gt; Sized` as a
syntax error, matching rustc behavior.

This has caused confusion in other crates (such as syn) which
rely on these files to implement correct syntax evaluation.
</content>
</entry>
<entry>
<title>Parse `for&lt;'a&gt; [const]`</title>
<updated>2025-07-22T13:24:42+00:00</updated>
<author>
<name>Chayim Refael Friedman</name>
<email>chayimfr@gmail.com</email>
</author>
<published>2025-07-22T13:24:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2bd169fcc7c47c324fc4a1b3dd42bc7a2ab45b0a'/>
<id>urn:sha1:2bd169fcc7c47c324fc4a1b3dd42bc7a2ab45b0a</id>
<content type='text'>
And also refactor parsing of HRTB.
</content>
</entry>
<entry>
<title>Make `global_asm!()` work</title>
<updated>2025-07-09T15:55:27+00:00</updated>
<author>
<name>Chayim Refael Friedman</name>
<email>chayimfr@gmail.com</email>
</author>
<published>2025-07-09T15:55:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=90653b0f5cbe567cee2489c0b71ce4ddd26c8f71'/>
<id>urn:sha1:90653b0f5cbe567cee2489c0b71ce4ddd26c8f71</id>
<content type='text'>
Because apparently, we were not accepting inline asm in item position, completely breaking it.
</content>
</entry>
<entry>
<title>Differentiate between `asm!()`, `global_asm!()` and `naked_asm!()`, and make only `asm!()` unsafe</title>
<updated>2025-07-09T14:37:27+00:00</updated>
<author>
<name>Chayim Refael Friedman</name>
<email>chayimfr@gmail.com</email>
</author>
<published>2025-07-09T14:37:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ebdd8598d4b08bc11436c5f3d4b1e338d5131a1c'/>
<id>urn:sha1:ebdd8598d4b08bc11436c5f3d4b1e338d5131a1c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Parse new const trait syntax</title>
<updated>2025-06-26T09:08:30+00:00</updated>
<author>
<name>Lukas Wirth</name>
<email>me@lukaswirth.dev</email>
</author>
<published>2025-06-26T09:08:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c190510d8c56e16ffaeff54674ed057859883a9b'/>
<id>urn:sha1:c190510d8c56e16ffaeff54674ed057859883a9b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Better parser recovery for macro calls in type bound position</title>
<updated>2025-06-05T14:11:30+00:00</updated>
<author>
<name>Lukas Wirth</name>
<email>me@lukaswirth.dev</email>
</author>
<published>2025-06-05T14:11:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1de497207d02c4f66a71c4a16fa94e061e404280'/>
<id>urn:sha1:1de497207d02c4f66a71c4a16fa94e061e404280</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Give path segment type anchors their own grammar rule</title>
<updated>2025-06-04T09:40:05+00:00</updated>
<author>
<name>Lukas Wirth</name>
<email>me@lukaswirth.dev</email>
</author>
<published>2025-06-04T09:30:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=25cef03fdfe7b1943ca1b992954d3c32accc7769'/>
<id>urn:sha1:25cef03fdfe7b1943ca1b992954d3c32accc7769</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Update expected test output</title>
<updated>2025-05-30T21:16:38+00:00</updated>
<author>
<name>Arthur Baars</name>
<email>aibaars@github.com</email>
</author>
<published>2025-05-30T21:16:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ca4811241caa91a5a9da62b4bddb9be937b3b8f5'/>
<id>urn:sha1:ca4811241caa91a5a9da62b4bddb9be937b3b8f5</id>
<content type='text'>
</content>
</entry>
</feed>
