<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_parse/src/parser, branch 1.76.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.76.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.76.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2023-12-20T20:18:59+00:00</updated>
<entry>
<title>Rollup merge of #119145 - aDotInTheVoid:variantdata-struct-struct, r=compiler-errors</title>
<updated>2023-12-20T20:18:59+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2023-12-20T20:18:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d0d814ff4847afccd2a87155eb770307c859fed4'/>
<id>urn:sha1:d0d814ff4847afccd2a87155eb770307c859fed4</id>
<content type='text'>
Give `VariantData::Struct`  named fields, to clairfy `recovered`.

Implements https://github.com/rust-lang/rust/pull/119121#discussion_r1431467066. Supersedes #119121

This way, it's clear what the bool fields means, instead of having to find where it's generated. Changes both ast and hir.

r? `@compiler-errors`
</content>
</entry>
<entry>
<title>Rollup merge of #118691 - chfogelman:improve-cstr-error, r=fmease</title>
<updated>2023-12-20T08:46:10+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2023-12-20T08:46:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f3f9b3043ec936548075391ba86cd64e46454bee'/>
<id>urn:sha1:f3f9b3043ec936548075391ba86cd64e46454bee</id>
<content type='text'>
Add check for possible CStr literals in pre-2021

Fixes [#118654](https://github.com/rust-lang/rust/issues/118654)

Adds information to errors caused by possible CStr literals in pre-2021.

The lexer separates `c"str"` into two tokens if the edition is less than 2021, which later causes an error when parsing. This error now has a more helpful message that directs them to information about editions. However, the user might also have written `c "str"` in a later edition, so to not confuse people who _are_ using a recent edition, I also added a note about whitespace.

We could probably figure out exactly which scenario has been encountered by examining spans and editions, but I figured it would be better not to overcomplicate the creation of the error too much.

This is my first code PR and I tried to follow existing conventions as much as possible, but I probably missed something, so let me know!
</content>
</entry>
<entry>
<title>Give `VariantData::Struct`  named fields, to clairfy `recovered`.</title>
<updated>2023-12-20T00:07:34+00:00</updated>
<author>
<name>Alona Enraght-Moony</name>
<email>code@alona.page</email>
</author>
<published>2023-12-19T22:47:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=11337805fba24f88a00c137f6a5af1af296bd71e'/>
<id>urn:sha1:11337805fba24f88a00c137f6a5af1af296bd71e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Improve compiler error for c-strings in pre-2021</title>
<updated>2023-12-19T21:28:48+00:00</updated>
<author>
<name>Carter Hunt Fogelman</name>
<email>chfogelman@gmail.com</email>
</author>
<published>2023-12-07T00:56:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2c9602587472a94afc595f0f5adc7a0b85e15201'/>
<id>urn:sha1:2c9602587472a94afc595f0f5adc7a0b85e15201</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rename `Parser::span_diagnostic` as `Parser::dcx`.</title>
<updated>2023-12-18T05:06:21+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2023-12-17T20:37:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=73bac456d413378b25210731c64eccc52c2201f7'/>
<id>urn:sha1:73bac456d413378b25210731c64eccc52c2201f7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rename `ParseSess::span_diagnostic` as `ParseSess::dcx`.</title>
<updated>2023-12-18T05:06:21+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2023-12-17T11:25:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=9df1576e1d477cfbfb4f39e779ce48552f9c28da'/>
<id>urn:sha1:9df1576e1d477cfbfb4f39e779ce48552f9c28da</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rename `Handler` as `DiagCtxt`.</title>
<updated>2023-12-18T05:06:19+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2023-12-17T10:48:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=cde19c016e4608288a02f5bdec0b5330d474c26f'/>
<id>urn:sha1:cde19c016e4608288a02f5bdec0b5330d474c26f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>NFC don't convert types to identical types</title>
<updated>2023-12-15T22:56:24+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2023-12-15T22:56:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=8479945c087906a26d045625ac2da4f6383c6c82'/>
<id>urn:sha1:8479945c087906a26d045625ac2da4f6383c6c82</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #118933 - nnethercote:cleanup-errors-even-more, r=compiler-errors</title>
<updated>2023-12-15T00:07:48+00:00</updated>
<author>
<name>Jubilee</name>
<email>46493976+workingjubilee@users.noreply.github.com</email>
</author>
<published>2023-12-15T00:07:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=9e872b7cd8cd28314b9426e13ac586dad6fc9c2e'/>
<id>urn:sha1:9e872b7cd8cd28314b9426e13ac586dad6fc9c2e</id>
<content type='text'>
Cleanup errors handlers even more

A sequel to #118587.

r? `@compiler-errors`
</content>
</entry>
<entry>
<title>Change `msg: impl Into&lt;String&gt;` for bug diagnostics.</title>
<updated>2023-12-14T22:42:14+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2023-12-14T01:26:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=19d28a4f28ad8125775e73e97e8bab2b2229f4e1'/>
<id>urn:sha1:19d28a4f28ad8125775e73e97e8bab2b2229f4e1</id>
<content type='text'>
To `msg: impl Into&lt;DiagnosticMessage&gt;`, like all the other diagnostics.
For consistency.
</content>
</entry>
</feed>
