<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_parse/src/parser/attr_wrapper.rs, branch 1.79.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.79.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.79.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2024-04-18T05:36:25+00:00</updated>
<entry>
<title>Simplify `static_assert_size`s.</title>
<updated>2024-04-18T05:36:25+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2024-04-16T07:02:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=0d97669a171d3d5c9c9c2d3437421d2d35d9bbb5'/>
<id>urn:sha1:0d97669a171d3d5c9c9c2d3437421d2d35d9bbb5</id>
<content type='text'>
We want to run them on all 64-bit platforms.
</content>
</entry>
<entry>
<title>Check `x86_64` size assertions on `aarch64`, too</title>
<updated>2024-04-03T05:53:03+00:00</updated>
<author>
<name>Zalathar</name>
<email>Zalathar@users.noreply.github.com</email>
</author>
<published>2024-04-03T01:55:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2d47cd77ac7b41a08f5c2ebc22035ed2f39dc076'/>
<id>urn:sha1:2d47cd77ac7b41a08f5c2ebc22035ed2f39dc076</id>
<content type='text'>
This makes it easier for contributors on aarch64 workstations (e.g. Macs) to
notice when these assertions have been violated.
</content>
</entry>
<entry>
<title>Rename all `ParseSess` variables/fields/lifetimes as `psess`.</title>
<updated>2024-03-04T21:11:45+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2024-03-04T05:31:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=80d2bdb6191609c8a3940a1a7959ac1ac16e8ed6'/>
<id>urn:sha1:80d2bdb6191609c8a3940a1a7959ac1ac16e8ed6</id>
<content type='text'>
Existing names for values of this type are `sess`, `parse_sess`,
`parse_session`, and `ps`. `sess` is particularly annoying because
that's also used for `Session` values, which are often co-located, and
it can be difficult to know which type a value named `sess` refers to.
(That annoyance is the main motivation for this change.) `psess` is nice
and short, which is good for a name used this much.

The commit also renames some `parse_sess_created` values as
`psess_created`.
</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>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>
</feed>
