<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_parse/src/errors.rs, branch 1.81.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.81.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.81.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2024-07-19T08:48:03+00:00</updated>
<entry>
<title>Rollup merge of #127350 - veera-sivarajan:bugfix-126311, r=lcnr</title>
<updated>2024-07-19T08:48:03+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2024-07-19T08:48:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c86e13f330b8689d21bc258f50e96d36196733b3'/>
<id>urn:sha1:c86e13f330b8689d21bc258f50e96d36196733b3</id>
<content type='text'>
Parser: Suggest Placing the Return Type After Function Parameters

Fixes #126311

This PR suggests placing the return type after the function parameters when it's misplaced after a `where` clause.

This also tangentially improves diagnostics for cases like [this](https://github.com/veera-sivarajan/rust/blob/86d6f1312a77997ef994240e716288d61a343a6d/tests/ui/parser/issues/misplaced-return-type-without-where-issue-126311.rs#L1C1-L1C28) and adds doc comments for `parser::AllowPlus`.
</content>
</entry>
<entry>
<title>Parser: Suggest Placing the Return Type After Function Parameters</title>
<updated>2024-07-18T21:56:34+00:00</updated>
<author>
<name>Veera</name>
<email>sveera.2001@gmail.com</email>
</author>
<published>2024-07-04T23:19:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=4cad705017f34a6545deb1505d0ce85537c18df5'/>
<id>urn:sha1:4cad705017f34a6545deb1505d0ce85537c18df5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix ICE in suggestion caused by `⩵` being recovered as `==`</title>
<updated>2024-07-18T17:47:31+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2024-07-16T22:43:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=67ec1326ee4e360b92dc6a6a3834bf8948532770'/>
<id>urn:sha1:67ec1326ee4e360b92dc6a6a3834bf8948532770</id>
<content type='text'>
The second suggestion shown here would previously incorrectly assume that the span corresponding to `⩵` was 2 bytes wide composed by 2 1 byte wide chars, so a span pointing at `==` could point only at one of the `=` to remove it. Instead, we now replace the whole thing (as we should have the whole time):

```
error: unknown start of token: \u{2a75}
  --&gt; $DIR/unicode-double-equals-recovery.rs:1:16
   |
LL | const A: usize ⩵ 2;
   |                ^
   |
help: Unicode character '⩵' (Two Consecutive Equals Signs) looks like '==' (Double Equals Sign), but it is not
   |
LL | const A: usize == 2;
   |                ~~

error: unexpected `==`
  --&gt; $DIR/unicode-double-equals-recovery.rs:1:16
   |
LL | const A: usize ⩵ 2;
   |                ^
   |
help: try using `=` instead
   |
LL | const A: usize = 2;
   |                ~
```
</content>
</entry>
<entry>
<title>Deny keyword lifetimes pre-expansion</title>
<updated>2024-07-16T16:06:25+00:00</updated>
<author>
<name>Michael Goulet</name>
<email>michael@errs.io</email>
</author>
<published>2024-06-20T20:36:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d0a1851ec2cf84bdb41bc4d788b3995a8463c543'/>
<id>urn:sha1:d0a1851ec2cf84bdb41bc4d788b3995a8463c543</id>
<content type='text'>
</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>More accurate incorrect use of `await` suggestion</title>
<updated>2024-07-12T03:02:58+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2024-07-11T22:07:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=377d14be88200d122f699aa989e4d1256f2173d2'/>
<id>urn:sha1:377d14be88200d122f699aa989e4d1256f2173d2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Use more accurate span for `:` to `::` suggestion</title>
<updated>2024-07-12T03:02:58+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2024-07-11T22:03:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b5f94c61f72cc85151dbd9bb1081fde2ab78f806'/>
<id>urn:sha1:b5f94c61f72cc85151dbd9bb1081fde2ab78f806</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Make `impl` and `!` removal suggestion `short`</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-11T21:04:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c2b3287483fb7fc1be7fdfbfd25044dd7a0320c0'/>
<id>urn:sha1:c2b3287483fb7fc1be7fdfbfd25044dd7a0320c0</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>Add suggestions for possible missing `fn`, `struct`, or `enum` keywords</title>
<updated>2024-07-08T06:04:03+00:00</updated>
<author>
<name>trevyn</name>
<email>230691+trevyn@users.noreply.github.com</email>
</author>
<published>2024-07-06T10:14:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b40adc9d3b56f230f295011ff78b0dfd378683ef'/>
<id>urn:sha1:b40adc9d3b56f230f295011ff78b0dfd378683ef</id>
<content type='text'>
</content>
</entry>
</feed>
