<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_parse/src/parser/attr_wrapper.rs, 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-18T05:06:21+00:00</updated>
<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>Add spacing information to delimiters.</title>
<updated>2023-12-10T22:36:40+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2023-10-12T04:36:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=4cfdbd328b7171b2328d11b950b1af0978d6b1ef'/>
<id>urn:sha1:4cfdbd328b7171b2328d11b950b1af0978d6b1ef</id>
<content type='text'>
This is an extension of the previous commit. It means the output of
something like this:
```
stringify!(let a: Vec&lt;u32&gt; = vec![];)
```
goes from this:
```
let a: Vec&lt;u32&gt; = vec![] ;
```
With this PR, it now produces this string:
```
let a: Vec&lt;u32&gt; = vec![];
```
</content>
</entry>
<entry>
<title>Use `Session::diagnostic` in more places.</title>
<updated>2023-12-01T22:01:35+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2023-12-01T02:45:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=31ac4efb3198d5622dcb92f48a7eb102dac12c92'/>
<id>urn:sha1:31ac4efb3198d5622dcb92f48a7eb102dac12c92</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rename `HandlerInner::delay_span_bug` as `HandlerInner::span_delayed_bug`.</title>
<updated>2023-12-01T22:01:19+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2023-11-30T04:01:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=5d1d3844430923395d38159c8979e587a1ca2879'/>
<id>urn:sha1:5d1d3844430923395d38159c8979e587a1ca2879</id>
<content type='text'>
Because the corresponding `Level` is `DelayedBug` and `span_delayed_bug`
follows the pattern used everywhere else: `span_err`, `span_warning`,
etc.
</content>
</entry>
<entry>
<title>Adjust `to_attr_token_stream`.</title>
<updated>2023-09-06T07:12:07+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2023-09-06T06:45:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=42dbc72d7bb0645292d72816d768d1f5365a58ca'/>
<id>urn:sha1:42dbc72d7bb0645292d72816d768d1f5365a58ca</id>
<content type='text'>
It uses `once` chained with `(0..self.num_calls).map(...)` followed by
`.take(self.num_calls`. I found this hard to read. It's simpler to just
use `repeat_with`.
</content>
</entry>
<entry>
<title>Move `TokenCursor::break_last_token` into `Parser`.</title>
<updated>2023-08-02T00:11:41+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2023-07-31T06:36:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6fc2c481e5a7daf1873ccc34926f1c0387979569'/>
<id>urn:sha1:6fc2c481e5a7daf1873ccc34926f1c0387979569</id>
<content type='text'>
Similar to the last commit, it's more of a `Parser`-level concern than a
`TokenCursor`-level concern. And the struct size reductions are nice.

After this change, `TokenCursor` is as minimal as possible (two fields
and two methods) which is nice.
</content>
</entry>
<entry>
<title>Move `TokenCursor::num_next_calls` into `Parser` and rename it.</title>
<updated>2023-08-02T00:07:18+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2023-07-31T06:15:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=54eb6bc34c841c8d81afd1bbe15446bf3e20990c'/>
<id>urn:sha1:54eb6bc34c841c8d81afd1bbe15446bf3e20990c</id>
<content type='text'>
It's more of a `Parser`-level concern than a `TokenCursor`-level
concern. Also, `num_bump_calls` is a more accurate name, because it's
incremented in `Parser::bump`.
</content>
</entry>
<entry>
<title>inline format!() args up to and including rustc_middle</title>
<updated>2023-07-30T11:18:33+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2023-07-25T20:00:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=23815467a2ba4a5219149cb96bada4c7bea741bf'/>
<id>urn:sha1:23815467a2ba4a5219149cb96bada4c7bea741bf</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove `desugar_doc_comments` arguments from `TokenCursor::{inlined_,}next`.</title>
<updated>2023-07-26T02:46:43+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2023-07-25T23:17:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=8bfc69285146bdfa97ea38bb9bcd5c8a92c1de47'/>
<id>urn:sha1:8bfc69285146bdfa97ea38bb9bcd5c8a92c1de47</id>
<content type='text'>
Because it's now always `self.desugar_doc_comments`.
</content>
</entry>
</feed>
