<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/test/ui/consts/std/alloc.rs, branch try</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=try</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=try'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2023-01-11T09:32:08+00:00</updated>
<entry>
<title>Move /src/test to /tests</title>
<updated>2023-01-11T09:32:08+00:00</updated>
<author>
<name>Albert Larsan</name>
<email>74931857+albertlarsan68@users.noreply.github.com</email>
</author>
<published>2023-01-05T08:13:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=cf2dff2b1e3fa55fa5415d524200070d0d7aacfe'/>
<id>urn:sha1:cf2dff2b1e3fa55fa5415d524200070d0d7aacfe</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix ui constant tests for big-endian platforms</title>
<updated>2022-12-27T14:23:15+00:00</updated>
<author>
<name>Ulrich Weigand</name>
<email>ulrich.weigand@de.ibm.com</email>
</author>
<published>2022-12-22T15:40:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=73e7207bfc0dc47f7b54c81c0d2351387ef708fb'/>
<id>urn:sha1:73e7207bfc0dc47f7b54c81c0d2351387ef708fb</id>
<content type='text'>
A number of tests under ui/const-ptr and ui/consts are currently
failing on big-endian platforms as the binary encoding of some
constants is hard-coded in the stderr test files.  Fix this by
providing a normalize-stderr-test rule that strips out the
raw bytes hex dump, so the comparison can be done in an
endianness-independent manner.  Note that in most cases, this
means the tests are now also independent of word size, so the
32bit and 64bit cases can be re-unified.

To keep tests that verify the details of those raw bytes dumps,
a new test case raw-bytes.rs performs the tests where the hex
dumps were stripped out a second time, but only on little-
endian platforms.

In addition, src/test/ui/const-ptr/forbidden_slices.rs exposes
an endian-specific difference in this diagnostic output:
   constructing invalid value at .&lt;deref&gt;[0]: encountered 0x11,
   but expected a boolean
depending on which byte of D0 is not a boolean value (0 or 1).
Fixed this by choosing a value of D0 that differs from 0 or 1
in all bytes.

Fixes part of https://github.com/rust-lang/rust/issues/105383.
</content>
</entry>
<entry>
<title>Make non-power-of-two alignments a validity error in `Layout`</title>
<updated>2022-04-09T03:17:38+00:00</updated>
<author>
<name>Scott McMurray</name>
<email>scottmcm@users.noreply.github.com</email>
</author>
<published>2022-03-27T07:06:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=fe0c08a4f24ff7e6fb03b61656436bfa5ff29ac7'/>
<id>urn:sha1:fe0c08a4f24ff7e6fb03b61656436bfa5ff29ac7</id>
<content type='text'>
Inspired by the zulip conversation about how `Layout` should better enforce `size &lt; isize::MAX as usize`, this uses an N-variant enum on N-bit platforms to require at the validity level that the existing invariant of "must be a power of two" is upheld.

This was MIRI can catch it, and means there's a more-specific type for `Layout` to store than just `NonZeroUsize`.
</content>
</entry>
<entry>
<title>Rename stderr-&gt;64bit.stderr where needed.</title>
<updated>2021-03-31T08:23:11+00:00</updated>
<author>
<name>Hameer Abbasi</name>
<email>einstein.edison@gmail.com</email>
</author>
<published>2021-03-31T08:09:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=091433d6990c4f2e1286ba1757e584719d4038ad'/>
<id>urn:sha1:091433d6990c4f2e1286ba1757e584719d4038ad</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add ui test for const Layout::from_size_align_unchecked</title>
<updated>2019-05-14T07:41:50+00:00</updated>
<author>
<name>Richard Wiedenhöft</name>
<email>richard@wiedenhoeft.xyz</email>
</author>
<published>2019-04-30T10:56:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c0b6d3c975915e740548f0ec7bcf5963e7a3b218'/>
<id>urn:sha1:c0b6d3c975915e740548f0ec7bcf5963e7a3b218</id>
<content type='text'>
</content>
</entry>
</feed>
