<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_parse/src/errors.rs, branch 1.79.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.79.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.79.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2024-06-07T01:12:48+00:00</updated>
<entry>
<title>Revert "Rollup merge of #124099 - voidc:disallow-ambiguous-expr-attrs, r=davidtwco"</title>
<updated>2024-06-07T01:12:48+00:00</updated>
<author>
<name>Rémy Rakic</name>
<email>remy.rakic+github@gmail.com</email>
</author>
<published>2024-06-06T21:17:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=7a24e8b204b0a29af3b122f3c43d02b9ab341f74'/>
<id>urn:sha1:7a24e8b204b0a29af3b122f3c43d02b9ab341f74</id>
<content type='text'>
This reverts commit 57dad1d75e562ff73051c1c43b07eaf65c7dbd74, reversing
changes made to 36316df9fe6c3e246153fe6e78967643cf08c148.
</content>
</entry>
<entry>
<title>Rollup merge of #124218 - Xiretza:subsubdiagnostics, r=davidtwco</title>
<updated>2024-04-23T15:25:17+00:00</updated>
<author>
<name>León Orell Valerian Liehr</name>
<email>me@fmease.dev</email>
</author>
<published>2024-04-23T15:25:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6e423e1651e807ee3a07aa2f188fefadcb464071'/>
<id>urn:sha1:6e423e1651e807ee3a07aa2f188fefadcb464071</id>
<content type='text'>
Allow nesting subdiagnostics in #[derive(Subdiagnostic)]
</content>
</entry>
<entry>
<title>Rollup merge of #124099 - voidc:disallow-ambiguous-expr-attrs, r=davidtwco</title>
<updated>2024-04-23T10:10:26+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2024-04-23T10:10:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=57dad1d75e562ff73051c1c43b07eaf65c7dbd74'/>
<id>urn:sha1:57dad1d75e562ff73051c1c43b07eaf65c7dbd74</id>
<content type='text'>
Disallow ambiguous attributes on expressions

This implements the suggestion in [#15701](https://github.com/rust-lang/rust/issues/15701#issuecomment-2033124217) to disallow ambiguous outer attributes on expressions. This should resolve one of the concerns blocking the stabilization of `stmt_expr_attributes`.
</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>Pass translation closure to add_to_diag_with() as reference</title>
<updated>2024-04-21T07:45:03+00:00</updated>
<author>
<name>Xiretza</name>
<email>xiretza@xiretza.xyz</email>
</author>
<published>2024-04-18T19:18:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=5646b65cf58123679fdf4ef489f690d1b21e1436'/>
<id>urn:sha1:5646b65cf58123679fdf4ef489f690d1b21e1436</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Disallow ambiguous attributes on expressions</title>
<updated>2024-04-18T18:42:19+00:00</updated>
<author>
<name>Dominik Stolz</name>
<email>d.stolz@tum.de</email>
</author>
<published>2024-04-17T21:40:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=5af861cf7b4a87857ca6aa9dab2ad277ea8c059b'/>
<id>urn:sha1:5af861cf7b4a87857ca6aa9dab2ad277ea8c059b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Implement `mut ref`/`mut ref mut`</title>
<updated>2024-03-27T13:53:23+00:00</updated>
<author>
<name>Jules Bertholet</name>
<email>julesbertholet@quoi.xyz</email>
</author>
<published>2024-03-24T01:04:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e0da13f25fd223ee1ec20284ea3f4e88a818b804'/>
<id>urn:sha1:e0da13f25fd223ee1ec20284ea3f4e88a818b804</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #122120 - fmease:sugg-assoc-ty-bound-on-eq-bound, r=compiler-errors</title>
<updated>2024-03-26T20:23:47+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2024-03-26T20:23:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ff8cdc9e14a4e0840fa60b5fdd2e7029a0c664bb'/>
<id>urn:sha1:ff8cdc9e14a4e0840fa60b5fdd2e7029a0c664bb</id>
<content type='text'>
Suggest associated type bounds on problematic associated equality bounds

Fixes #105056. TL;DR: Suggest `Trait&lt;Ty: Bound&gt;` on `Trait&lt;Ty = Bound&gt;` in Rust &gt;=2021.

~~Blocked on #122055 (stabilization of `associated_type_bounds`), I'd say.~~ (merged)
</content>
</entry>
<entry>
<title>Rollup merge of #122217 - estebank:issue-119685, r=fmease</title>
<updated>2024-03-24T00:05:51+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2024-03-24T00:05:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1164c2725e23ade289f948153f915936ee3f6610'/>
<id>urn:sha1:1164c2725e23ade289f948153f915936ee3f6610</id>
<content type='text'>
Handle str literals written with `'` lexed as lifetime

Given `'hello world'` and `'1 str', provide a structured suggestion for a valid string literal:

```
error[E0762]: unterminated character literal
  --&gt; $DIR/lex-bad-str-literal-as-char-3.rs:2:26
   |
LL |     println!('hello world');
   |                          ^^^^
   |
help: if you meant to write a `str` literal, use double quotes
   |
LL |     println!("hello world");
   |              ~           ~
```
```
error[E0762]: unterminated character literal
  --&gt; $DIR/lex-bad-str-literal-as-char-1.rs:2:20
   |
LL |     println!('1 + 1');
   |                    ^^^^
   |
help: if you meant to write a `str` literal, use double quotes
   |
LL |     println!("1 + 1");
   |              ~     ~
```

Fix #119685.
</content>
</entry>
<entry>
<title>Suggest assoc ty bound on lifetime in eq constraint</title>
<updated>2024-03-22T23:17:30+00:00</updated>
<author>
<name>León Orell Valerian Liehr</name>
<email>me@fmease.dev</email>
</author>
<published>2024-03-06T22:49:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=3879acbec090b36454c0384cd8602047b806f47a'/>
<id>urn:sha1:3879acbec090b36454c0384cd8602047b806f47a</id>
<content type='text'>
</content>
</entry>
</feed>
