<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_serialize/tests, 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-09-11T03:37:51+00:00</updated>
<entry>
<title>Reimplement FileEncoder with a small-write optimization</title>
<updated>2023-09-11T03:37:51+00:00</updated>
<author>
<name>Ben Kimock</name>
<email>kimockb@gmail.com</email>
</author>
<published>2023-09-04T16:40:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=01e97981488ddb0b8194b6f4e27c3592bcd2c8d1'/>
<id>urn:sha1:01e97981488ddb0b8194b6f4e27c3592bcd2c8d1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove `MemEncoder`.</title>
<updated>2023-05-02T02:02:32+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2023-05-01T08:51:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ebee3f8515c6f5189b69ae56919ab5bba934aabe'/>
<id>urn:sha1:ebee3f8515c6f5189b69ae56919ab5bba934aabe</id>
<content type='text'>
It's only used in tests. Which is bad, because it means that
`FileEncoder` is used in the compiler but isn't used in tests!

`tests/opaque.rs` now tests encoding/decoding round-trips via file.
Because this is slower than memory, this commit also adjusts the
`u16`/`i16` tests so they are more like the `u32`/`i32` tests, i.e. they
don't test every possible value.
</content>
</entry>
<entry>
<title>Move some `Encodable`/`Decodable` tests.</title>
<updated>2023-05-02T02:02:32+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2023-05-02T01:01:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=8d359e4385052f012d8d0c2e57a0bcfe54462d44'/>
<id>urn:sha1:8d359e4385052f012d8d0c2e57a0bcfe54462d44</id>
<content type='text'>
Round-trip encoding/decoding of many types is tested in
`compiler/rustc_serialize/tests/opaque.rs`. There is also a small amount
of encoding/decoding testing in three files in `tests/ui-fulldeps`.

There is no obvious reason why these three files are necessary. They
were originally added in 2014. Maybe it wasn't possible for a proc
macro to run in a unit test back then?

This commit just moves the testing from those three files into the unit
test.
</content>
</entry>
<entry>
<title>Rewrite MemDecoder around pointers not a slice</title>
<updated>2023-04-23T21:25:11+00:00</updated>
<author>
<name>Ben Kimock</name>
<email>kimockb@gmail.com</email>
</author>
<published>2023-04-21T03:11:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1f67ba61a985c621cb10ae091aaa5c2b009aa721'/>
<id>urn:sha1:1f67ba61a985c621cb10ae091aaa5c2b009aa721</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove f32 &amp; f64 from MemDecoder/MemEncoder</title>
<updated>2023-04-06T07:54:07+00:00</updated>
<author>
<name>Scott McMurray</name>
<email>scottmcm@users.noreply.github.com</email>
</author>
<published>2023-04-05T21:46:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=5cb23e4a439df21e90d5a4789b5d61b2586ee2d2'/>
<id>urn:sha1:5cb23e4a439df21e90d5a4789b5d61b2586ee2d2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Move `finish` out of the `Encoder` trait.</title>
<updated>2022-06-16T06:20:32+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2022-06-16T06:00:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=bb02cc47c49ee3cc1e913c243d69ee7cb23df598'/>
<id>urn:sha1:bb02cc47c49ee3cc1e913c243d69ee7cb23df598</id>
<content type='text'>
This simplifies things, but requires making `CacheEncoder` non-generic.

(This was previously merged as commit 4 in #94732 and then was reverted
in #97905 because it caused a perf regression.)
</content>
</entry>
<entry>
<title>Rename rustc_serialize::opaque::Encoder as MemEncoder.</title>
<updated>2022-06-14T04:52:01+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2022-06-14T04:52:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=abe45a9ffa6a0af65a58427b475203b301b07be8'/>
<id>urn:sha1:abe45a9ffa6a0af65a58427b475203b301b07be8</id>
<content type='text'>
This avoids the name clash with `rustc_serialize::Encoder` (a trait),
and allows lots qualifiers to be removed and imports to be simplified
(e.g. fewer `as` imports).

(This was previously merged as commit 5 in #94732 and then was reverted
in #97905 because of a perf regression caused by commit 4 in #94732.)
</content>
</entry>
<entry>
<title>Revert dc08bc51f2c58a0f5f815a07f9bb3d671153b5a1.</title>
<updated>2022-06-10T01:58:29+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2022-06-10T01:58:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=3186e311e526e3dad197dacc91c2d84cde2be846'/>
<id>urn:sha1:3186e311e526e3dad197dacc91c2d84cde2be846</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Revert b983e42936feab29f6333e9835913afc6b4a394e.</title>
<updated>2022-06-09T22:35:03+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2022-06-09T22:35:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=7f51a1b97638780a3d22979d886384ad7903cc4e'/>
<id>urn:sha1:7f51a1b97638780a3d22979d886384ad7903cc4e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rename `rustc_serialize::opaque::Encoder` as `MemEncoder`.</title>
<updated>2022-06-07T23:50:44+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2022-06-07T23:17:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b983e42936feab29f6333e9835913afc6b4a394e'/>
<id>urn:sha1:b983e42936feab29f6333e9835913afc6b4a394e</id>
<content type='text'>
This avoids the name clash with `rustc_serialize::Encoder` (a trait),
and allows lots qualifiers to be removed and imports to be simplified
(e.g. fewer `as` imports).
</content>
</entry>
</feed>
