<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/libsyntax/print/pp.rs, branch 1.34.2</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.34.2</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.34.2'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2019-02-10T23:42:32+00:00</updated>
<entry>
<title>rustc: doc comments</title>
<updated>2019-02-10T23:42:32+00:00</updated>
<author>
<name>Alexander Regueiro</name>
<email>alexreg@me.com</email>
</author>
<published>2019-02-08T13:53:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c3e182cf43aea2c010a1915eb37293a458df2228'/>
<id>urn:sha1:c3e182cf43aea2c010a1915eb37293a458df2228</id>
<content type='text'>
</content>
</entry>
<entry>
<title>libsyntax =&gt; 2018</title>
<updated>2019-02-06T17:33:01+00:00</updated>
<author>
<name>Taiki Endo</name>
<email>te316e89@gmail.com</email>
</author>
<published>2019-02-06T17:33:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=7bb082d27fe472f52b103de0ae9fc6fa7e6546cc'/>
<id>urn:sha1:7bb082d27fe472f52b103de0ae9fc6fa7e6546cc</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove licenses</title>
<updated>2018-12-26T04:08:33+00:00</updated>
<author>
<name>Mark Rousskov</name>
<email>mark.simulacrum@gmail.com</email>
</author>
<published>2018-12-25T15:56:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2a663555ddf36f6b041445894a8c175cd1bc718c'/>
<id>urn:sha1:2a663555ddf36f6b041445894a8c175cd1bc718c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Various minor/cosmetic improvements to code</title>
<updated>2018-12-07T23:53:34+00:00</updated>
<author>
<name>Alexander Regueiro</name>
<email>alexreg@me.com</email>
</author>
<published>2018-11-27T02:59:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ee89c088b057affb5bdb96195e107a218b64b1c5'/>
<id>urn:sha1:ee89c088b057affb5bdb96195e107a218b64b1c5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Split up `pretty_print` and `print`.</title>
<updated>2018-11-29T06:14:57+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>nnethercote@mozilla.com</email>
</author>
<published>2018-11-29T02:58:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=64cd645d14407d312c7ed3a10efd9b3a99271884'/>
<id>urn:sha1:64cd645d14407d312c7ed3a10efd9b3a99271884</id>
<content type='text'>
`pretty_print` takes a `Token` and `match`es on it. But the particular
`Token` kind is known at each call site, so this commit splits it into
five functions: `pretty_print_eof`, `pretty_print_begin`, etc.

This commit also does likewise with `print`, though there is one
callsite for `print` where the `Token` kind isn't known, so a generic
`print` has to stay (but it now just calls out to the various `print_*`
functions).
</content>
</entry>
<entry>
<title>Use `Cow` in `Token::String`.</title>
<updated>2018-11-29T06:12:18+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>nnethercote@mozilla.com</email>
</author>
<published>2018-11-29T00:36:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=787959c20d062d396b97a5566e0a766d963af022'/>
<id>urn:sha1:787959c20d062d396b97a5566e0a766d963af022</id>
<content type='text'>
`Printer::word` takes a `&amp;str` and converts it into a `String`, which
causes an allocation. But that allocation is rarely necessary, because
`&amp;str` is almost always a `&amp;'static str` or a `String` that won't be
used again.

This commit changes `Token::String` so it holds a `Cow&lt;'static, str&gt;`
instead of a `String`, which avoids a lot of allocations.
</content>
</entry>
<entry>
<title>Remove `huge_word` and `zero_word`.</title>
<updated>2018-11-29T06:12:15+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>nnethercote@mozilla.com</email>
</author>
<published>2018-11-28T05:46:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=deb9195e5749c4f15e9a5ae0e7ee8e1802c716e4'/>
<id>urn:sha1:deb9195e5749c4f15e9a5ae0e7ee8e1802c716e4</id>
<content type='text'>
They are unused. The commit also adds some blank lines between some
methods.
</content>
</entry>
<entry>
<title>Fix whitespace in `pp.rs`.</title>
<updated>2018-11-29T06:11:59+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>nnethercote@mozilla.com</email>
</author>
<published>2018-11-28T05:45:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6c80f7c4fcb83be65c0b3595eb30690c626a30e3'/>
<id>urn:sha1:6c80f7c4fcb83be65c0b3595eb30690c626a30e3</id>
<content type='text'>
This commit converts some 2-space indents to 4-space indents.
</content>
</entry>
<entry>
<title>Deny bare trait objects in in src/libsyntax</title>
<updated>2018-07-10T19:06:26+00:00</updated>
<author>
<name>ljedrz</name>
<email>ljedrz@gmail.com</email>
</author>
<published>2018-07-10T19:06:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e28e4877a828d1f5bda49dbb5bae1b902596f8f6'/>
<id>urn:sha1:e28e4877a828d1f5bda49dbb5bae1b902596f8f6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Extend Printer::buf on demand.</title>
<updated>2018-04-30T09:24:24+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>nnethercote@mozilla.com</email>
</author>
<published>2018-04-27T21:33:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=989815d5670826078d9984a3515eeb68235a4687'/>
<id>urn:sha1:989815d5670826078d9984a3515eeb68235a4687</id>
<content type='text'>
So that 55 entries (at 48 bytes each) don't need to be eagerly
initialized on creation.

This speeds up numerous rust-perf benchmark runs, by up to 3%.
</content>
</entry>
</feed>
