<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_parse/src/parser/expr.rs, branch 1.57.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.57.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.57.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2021-10-07T20:31:33+00:00</updated>
<entry>
<title>some clippy::perf fixes</title>
<updated>2021-10-07T20:31:33+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2021-10-07T20:31:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ff6601e0fc4dd05e337ebc4e0d3c741a0ef26078'/>
<id>urn:sha1:ff6601e0fc4dd05e337ebc4e0d3c741a0ef26078</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Use `TokenKind::similar_tokens()`</title>
<updated>2021-10-04T20:13:00+00:00</updated>
<author>
<name>Fabian Wolff</name>
<email>fabian.wolff@alumni.ethz.ch</email>
</author>
<published>2021-10-04T20:13:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=079c075f24d2aae84cd6715f350cf56420816f63'/>
<id>urn:sha1:079c075f24d2aae84cd6715f350cf56420816f63</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Try to recover from a `=&gt;` -&gt; `=` or `-&gt;` typo in a match arm</title>
<updated>2021-10-03T12:14:35+00:00</updated>
<author>
<name>Fabian Wolff</name>
<email>fabian.wolff@alumni.ethz.ch</email>
</author>
<published>2021-10-03T12:14:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=cf19131cb356591d27dded5bdb1d00df1bd077c9'/>
<id>urn:sha1:cf19131cb356591d27dded5bdb1d00df1bd077c9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #89023 - Wardenfar:issue-85066, r=nagisa</title>
<updated>2021-09-24T00:31:42+00:00</updated>
<author>
<name>Jubilee</name>
<email>46493976+workingjubilee@users.noreply.github.com</email>
</author>
<published>2021-09-24T00:31:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=5da2f460b36988d5e0226412080769bafd94eb3c'/>
<id>urn:sha1:5da2f460b36988d5e0226412080769bafd94eb3c</id>
<content type='text'>
Resolve issue : Somewhat confusing error with extended_key_value_attributes

Fixes #85066
</content>
</entry>
<entry>
<title>Rollup merge of #89046 - oli-obk:fix_oflo, r=estebank</title>
<updated>2021-09-22T17:03:22+00:00</updated>
<author>
<name>the8472</name>
<email>the8472@users.noreply.github.com</email>
</author>
<published>2021-09-22T17:03:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=5948a7b40799d0c0ab4dd171375a335402686ff6'/>
<id>urn:sha1:5948a7b40799d0c0ab4dd171375a335402686ff6</id>
<content type='text'>
"Fix" an overflow in byte position math

r? `@estebank`

help! I fixed the ICE only to brick the diagnostic.

I mean, it was wrong previously (using an already expanded macro span), but it is really bad now XD
</content>
</entry>
<entry>
<title>Add some more tracing</title>
<updated>2021-09-20T15:24:47+00:00</updated>
<author>
<name>Oli Scherer</name>
<email>git-spam-no-reply9815368754983@oli-obk.de</email>
</author>
<published>2021-09-20T15:24:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=428138071748e81eb67bb090cb9cd3f78299442b'/>
<id>urn:sha1:428138071748e81eb67bb090cb9cd3f78299442b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Suggest replacing braces for brackets on array-esque invalid block expr</title>
<updated>2021-09-19T11:01:23+00:00</updated>
<author>
<name>Hirochika Matsumoto</name>
<email>git@hkmatsumoto.com</email>
</author>
<published>2021-08-06T19:34:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=21eff8f050b80e28309f72f659339ecfba2e0344'/>
<id>urn:sha1:21eff8f050b80e28309f72f659339ecfba2e0344</id>
<content type='text'>
Newcomers may write `{1, 2, 3}` for making arrays, and the current error
message is not informative enough to quickly convince them what is
needed to fix the error.
This PR implements a diagnostic for this case, and its output looks like
this:
```text
error: this code is interpreted as a block expression, not an array
 --&gt; src/lib.rs:1:22
  |
1 |   const FOO: [u8; 3] = {
  |  ______________________^
2 | |     1, 2, 3
3 | | };
  | |_^
  |
  = note: to define an array, one would use square brackets instead of curly braces
help: try using [] instead of {}
  |
1 | const FOO: [u8; 3] = [
2 |     1, 2, 3
3 | ];
  |
```

Fix #87672
</content>
</entry>
<entry>
<title>Resolve issue 85066</title>
<updated>2021-09-19T08:53:49+00:00</updated>
<author>
<name>Theo</name>
<email>theo.emeriau@gmail.com</email>
</author>
<published>2021-09-16T19:00:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=250a3e482f125e96b37d66d6d87be7b09436be5c'/>
<id>urn:sha1:250a3e482f125e96b37d66d6d87be7b09436be5c</id>
<content type='text'>
Fix : use struct_dummy

Fix different os messages
</content>
</entry>
<entry>
<title>Use `multipart_suggestion`</title>
<updated>2021-09-17T04:39:26+00:00</updated>
<author>
<name>Yuki Okushi</name>
<email>yuki.okushi@huawei.com</email>
</author>
<published>2021-09-17T04:39:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e9bf73cb2b025e188787683f1423177a9102d260'/>
<id>urn:sha1:e9bf73cb2b025e188787683f1423177a9102d260</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #88729 - estebank:struct-literal-using-parens, r=oli-obk</title>
<updated>2021-09-16T17:57:18+00:00</updated>
<author>
<name>Manish Goregaokar</name>
<email>manishsmail@gmail.com</email>
</author>
<published>2021-09-16T17:57:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2c7d48b9003d7f6f3babd9fa0b3fc1ba94df5ec1'/>
<id>urn:sha1:2c7d48b9003d7f6f3babd9fa0b3fc1ba94df5ec1</id>
<content type='text'>
Recover from `Foo(a: 1, b: 2)`

Detect likely `struct` literal using parentheses as delimiters and emit
targeted suggestion instead of type ascription parse error.

Fix #61326.
</content>
</entry>
</feed>
