<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/tests/ui/parser/issues/issue-118530-ice.stderr, 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-04-21T19:53:12+00:00</updated>
<entry>
<title>improve diagnostic for raw pointer field access using `-&gt;`</title>
<updated>2025-04-21T19:53:12+00:00</updated>
<author>
<name>Kivooeo</name>
<email>Kivooeo123@gmail.com</email>
</author>
<published>2025-04-16T13:16:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b5e8f1f0cec8065eb9cb453ad4c5aa5bec8baf32'/>
<id>urn:sha1:b5e8f1f0cec8065eb9cb453ad4c5aa5bec8baf32</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Show diff suggestion format on verbose replacement</title>
<updated>2025-02-10T20:21:39+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2024-07-09T22:30:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f0845adb0c1b7a7fa1bef73e749b2d7e1d7f374d'/>
<id>urn:sha1:f0845adb0c1b7a7fa1bef73e749b2d7e1d7f374d</id>
<content type='text'>
```
error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields
  --&gt; $DIR/attempted-access-non-fatal.rs:7:15
   |
LL |     let _ = 2.l;
   |               ^
   |
help: if intended to be a floating point literal, consider adding a `0` after the period and a `f64` suffix
   |
LL -     let _ = 2.l;
LL +     let _ = 2.0f64;
   |
```
</content>
</entry>
<entry>
<title>Make `;` suggestions inline</title>
<updated>2024-07-12T03:22:32+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2024-07-12T03:22:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=71f16bdb32feb33762e5245efa37edac2bde724b'/>
<id>urn:sha1:71f16bdb32feb33762e5245efa37edac2bde724b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Make parse error suggestions verbose and fix spans</title>
<updated>2024-07-12T03:02:57+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2024-07-06T03:07:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=692bc344d55cf9d86c60b06c92a70684d013c89f'/>
<id>urn:sha1:692bc344d55cf9d86c60b06c92a70684d013c89f</id>
<content type='text'>
Go over all structured parser suggestions and make them verbose style.

When suggesting to add or remove delimiters, turn them into multiple suggestion parts.
</content>
</entry>
<entry>
<title>Improve handling of expr-&gt;field errors</title>
<updated>2024-04-22T15:47:35+00:00</updated>
<author>
<name>Sasha Pourcelot</name>
<email>sasha.pourcelot@protonmail.com</email>
</author>
<published>2024-04-20T13:52:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=98332c108b8074954203fa4b0c82fbab876d3059'/>
<id>urn:sha1:98332c108b8074954203fa4b0c82fbab876d3059</id>
<content type='text'>
The current message for "`-&gt;` used for field access" is the following:

```rust
error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `-&gt;`
 --&gt; src/main.rs:2:6
  |
2 |     a-&gt;b;
  |      ^^ expected one of 8 possible tokens
```

(playground link[1])

This PR tries to address this by adding a dedicated error message and recovery. The proposed error message is:

```
error: `-&gt;` used for field access or method call
 --&gt; ./tiny_test.rs:2:6
  |
2 |     a-&gt;b;
  |      ^^ help: try using `.` instead
  |
  = help: the `.` operator will dereference the value if needed
```

(feel free to bikeshed it as much as necessary)

[1]: https://play.rust-lang.org/?version=stable&amp;mode=debug&amp;edition=2021&amp;gist=7f8b6f4433aa7866124123575456f54e

Signed-off-by: Sasha Pourcelot &lt;sasha.pourcelot@protonmail.com&gt;
</content>
</entry>
<entry>
<title>Fix parser ICE from attrs</title>
<updated>2023-12-02T15:47:39+00:00</updated>
<author>
<name>yukang</name>
<email>moorekang@gmail.com</email>
</author>
<published>2023-12-02T15:46:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=5ff428c1ff81a635628a2b67c96999b6098f3fa8'/>
<id>urn:sha1:5ff428c1ff81a635628a2b67c96999b6098f3fa8</id>
<content type='text'>
</content>
</entry>
</feed>
