<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_parse/src/errors.rs, branch 1.67.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.67.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.67.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2022-11-21T14:24:50+00:00</updated>
<entry>
<title>Match crate and slug names</title>
<updated>2022-11-21T14:24:50+00:00</updated>
<author>
<name>mejrs</name>
<email></email>
</author>
<published>2022-11-07T18:47:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=fe212eca76f3976756e47355e4f0cb62984ec837'/>
<id>urn:sha1:fe212eca76f3976756e47355e4f0cb62984ec837</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #103405 - chenyukang:yukang/fix-103381-and-if, r=compiler-errors</title>
<updated>2022-11-18T13:13:36+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2022-11-18T13:13:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=3efbf3022012f3dbebd6743bf8e53f50cb1d0488'/>
<id>urn:sha1:3efbf3022012f3dbebd6743bf8e53f50cb1d0488</id>
<content type='text'>
Detect incorrect chaining of if and if let conditions and recover

Fixes #103381
</content>
</entry>
<entry>
<title>Use `token::Lit` in `ast::ExprKind::Lit`.</title>
<updated>2022-11-15T22:41:28+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2022-10-10T02:40:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=358a603f110b0489d22f3929d3f232e684fd9ffb'/>
<id>urn:sha1:358a603f110b0489d22f3929d3f232e684fd9ffb</id>
<content type='text'>
Instead of `ast::Lit`.

Literal lowering now happens at two different times. Expression literals
are lowered when HIR is crated. Attribute literals are lowered during
parsing.

This commit changes the language very slightly. Some programs that used
to not compile now will compile. This is because some invalid literals
that are removed by `cfg` or attribute macros will no longer trigger
errors. See this comment for more details:
https://github.com/rust-lang/rust/pull/102944#issuecomment-1277476773
</content>
</entry>
<entry>
<title>fix #104088, Slightly improve error message for invalid identifier</title>
<updated>2022-11-15T00:58:19+00:00</updated>
<author>
<name>yukang</name>
<email>moorekang@gmail.com</email>
</author>
<published>2022-11-11T20:22:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=9db8e183dc17896ce5f307f6de19c261d746a9bc'/>
<id>urn:sha1:9db8e183dc17896ce5f307f6de19c261d746a9bc</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix #103381, Detect incorrect chaining of if and if let conditions</title>
<updated>2022-11-15T00:53:17+00:00</updated>
<author>
<name>yukang</name>
<email>moorekang@gmail.com</email>
</author>
<published>2022-11-15T00:53:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=74c9a6c6df5a9fb1a3dc8099f773301e4fc3cdb4'/>
<id>urn:sha1:74c9a6c6df5a9fb1a3dc8099f773301e4fc3cdb4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #104223 - fmease:recover-fn-ptr-with-generics, r=estebank</title>
<updated>2022-11-14T18:26:16+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2022-11-14T18:26:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a86bdb4c507f9f9651f7372075eb17009c7da4a6'/>
<id>urn:sha1:a86bdb4c507f9f9651f7372075eb17009c7da4a6</id>
<content type='text'>
Recover from function pointer types with generic parameter list

Give a more helpful error when encountering function pointer types with a generic parameter list like `fn&lt;'a&gt;(&amp;'a str) -&gt; bool` or `fn&lt;T&gt;(T) -&gt; T` and suggest moving lifetime parameters to a `for&lt;&gt;` parameter list.

I've added a bunch of extra code to properly handle (unlikely?) corner cases like `for&lt;'a&gt; fn&lt;'b&gt;()` (where there already exists a `for&lt;&gt;` parameter list) correctly suggesting `for&lt;'a, 'b&gt; fn()` (merging the lists). If you deem this useless, I can simplify the code by suggesting nothing at all in this case.

I am quite open to suggestions regarding the wording of the diagnostic messages.

Fixes #103487.
``@rustbot`` label A-diagnostics
r? diagnostics
</content>
</entry>
<entry>
<title>Rollup merge of #103468 - chenyukang:yukang/fix-103435-extra-parentheses, r=estebank</title>
<updated>2022-11-11T17:12:29+00:00</updated>
<author>
<name>Manish Goregaokar</name>
<email>manishsmail@gmail.com</email>
</author>
<published>2022-11-11T17:12:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=fd5ff82f28be617c6116a7a16bb1a32b401e9459'/>
<id>urn:sha1:fd5ff82f28be617c6116a7a16bb1a32b401e9459</id>
<content type='text'>
Fix unused lint and parser caring about spaces to won't produce invalid code

Fixes #103435
</content>
</entry>
<entry>
<title>Recover from fn ptr tys with generic param list</title>
<updated>2022-11-11T12:42:40+00:00</updated>
<author>
<name>León Orell Valerian Liehr</name>
<email>liehr.exchange@gmx.net</email>
</author>
<published>2022-11-10T01:06:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c2b906ba9a29591536042be4bbf8d0156225bb73'/>
<id>urn:sha1:c2b906ba9a29591536042be4bbf8d0156225bb73</id>
<content type='text'>
</content>
</entry>
<entry>
<title>use subdiagnostic for sugesting add let</title>
<updated>2022-11-08T08:25:37+00:00</updated>
<author>
<name>yukang</name>
<email>moorekang@gmail.com</email>
</author>
<published>2022-11-08T08:04:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=9e7d2287cd87ad54cc3ed125ee4202fe870b380c'/>
<id>urn:sha1:9e7d2287cd87ad54cc3ed125ee4202fe870b380c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix #103587, Recover from common if let syntax mistakes/typos</title>
<updated>2022-11-08T06:10:04+00:00</updated>
<author>
<name>yukang</name>
<email>moorekang@gmail.com</email>
</author>
<published>2022-10-27T06:43:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=667b15bb0ebb36683a2de31cff68ad2b5b0d3f57'/>
<id>urn:sha1:667b15bb0ebb36683a2de31cff68ad2b5b0d3f57</id>
<content type='text'>
</content>
</entry>
</feed>
