<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_parse/src/parser/attr_wrapper.rs, branch 1.74.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.74.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.74.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2023-09-06T07:12:07+00:00</updated>
<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>
<entry>
<title>Simplify some conditions</title>
<updated>2023-06-27T07:40:47+00:00</updated>
<author>
<name>Maybe Waffle</name>
<email>waffle.lapkin@gmail.com</email>
</author>
<published>2023-06-27T07:40:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ef05533c39a8c2009540366731b7459a770f8a8b'/>
<id>urn:sha1:ef05533c39a8c2009540366731b7459a770f8a8b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Use `Option::is_some_and` and `Result::is_ok_and` in the compiler</title>
<updated>2023-05-24T14:20:41+00:00</updated>
<author>
<name>Maybe Waffle</name>
<email>waffle.lapkin@gmail.com</email>
</author>
<published>2023-05-24T14:19:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=fb0f74a8c9e8b8f488ec5894d5d314caebf4c662'/>
<id>urn:sha1:fb0f74a8c9e8b8f488ec5894d5d314caebf4c662</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Match unmatched backticks in comments in compiler/</title>
<updated>2023-03-03T07:39:00+00:00</updated>
<author>
<name>est31</name>
<email>MTest31@outlook.com</email>
</author>
<published>2023-03-03T03:15:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6df5ae4fb03734dd98db01a9f488998b1d4498ab'/>
<id>urn:sha1:6df5ae4fb03734dd98db01a9f488998b1d4498ab</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove `TokenCursorFrame`.</title>
<updated>2023-02-02T23:06:52+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2023-02-01T01:43:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b5ecbbb998aae80541d70bf5c93be92e6c59a7a8'/>
<id>urn:sha1:b5ecbbb998aae80541d70bf5c93be92e6c59a7a8</id>
<content type='text'>
The motivation here is to eliminate the `Option&lt;(Delimiter,
DelimSpan)&gt;`, which is `None` for the outermost token stream and `Some`
for all other token streams.

We are already treating the innermost frame specially -- this is the
`frame` vs `stack` distinction in `TokenCursor`. We can push that
further so that `frame` only contains the cursor, and `stack` elements
contain the delimiters for their children. When we are in the outermost
token stream `stack` is empty, so there are no stored delimiters, which
is what we want because the outermost token stream *has* no delimiters.

This change also shrinks `TokenCursor`, which shrinks `Parser` and
`LazyAttrTokenStreamImpl`, which is nice.
</content>
</entry>
<entry>
<title>compiler: remove unnecessary imports and qualified paths</title>
<updated>2022-12-10T17:45:34+00:00</updated>
<author>
<name>KaDiWa</name>
<email>kalle.wachsmuth@gmail.com</email>
</author>
<published>2022-08-09T00:14:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=9bc69925cb4a1391a9a41411c56ae059877bf8fb'/>
<id>urn:sha1:9bc69925cb4a1391a9a41411c56ae059877bf8fb</id>
<content type='text'>
</content>
</entry>
</feed>
