<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_codegen_ssa/src/traits/consts.rs, branch 1.63.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.63.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.63.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2022-04-03T00:21:08+00:00</updated>
<entry>
<title>make memcmp return a value of c_int_width instead of i32</title>
<updated>2022-04-03T00:21:08+00:00</updated>
<author>
<name>David Morrison</name>
<email>drmorr@evokewonder.com</email>
</author>
<published>2021-11-11T04:14:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=aa670166243e264985f95a21490f92c91addf48c'/>
<id>urn:sha1:aa670166243e264985f95a21490f92c91addf48c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Introduce `ConstAllocation`.</title>
<updated>2022-03-06T21:25:50+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2022-03-01T20:15:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=4852291417127d86c3f8404ef03cb1706d89a3e6'/>
<id>urn:sha1:4852291417127d86c3f8404ef03cb1706d89a3e6</id>
<content type='text'>
Currently some `Allocation`s are interned, some are not, and it's very
hard to tell at a use point which is which.

This commit introduces `ConstAllocation` for the known-interned ones,
which makes the division much clearer. `ConstAllocation::inner()` is
used to get the underlying `Allocation`.

In some places it's natural to use an `Allocation`, in some it's natural
to use a `ConstAllocation`, and in some places there's no clear choice.
I've tried to make things look as nice as possible, while generally
favouring `ConstAllocation`, which is the type that embodies more
information. This does require quite a few calls to `inner()`.

The commit also tweaks how `PartialOrd` works for `Interned`. The
previous code was too clever by half, building on `T: Ord` to make the
code shorter. That caused problems with deriving `PartialOrd` and `Ord`
for `ConstAllocation`, so I changed it to build on `T: PartialOrd`,
which is slightly more verbose but much more standard and avoided the
problems.
</content>
</entry>
<entry>
<title>Make `abi::Abi` `Copy` and remove a *lot* of refs</title>
<updated>2021-09-09T08:41:19+00:00</updated>
<author>
<name>Andreas Liljeqvist</name>
<email>bonega@gmail.com</email>
</author>
<published>2021-08-29T09:06:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=5b2f757dae374e22a7733f90af482f405bd426e9'/>
<id>urn:sha1:5b2f757dae374e22a7733f90af482f405bd426e9</id>
<content type='text'>
fix

fix

Remove more refs and clones

fix

more

fix
</content>
</entry>
<entry>
<title>Update other codegens to use tcx managed vtable allocations.</title>
<updated>2021-06-28T11:39:48+00:00</updated>
<author>
<name>Charles Lew</name>
<email>crlf0710@gmail.com</email>
</author>
<published>2021-06-20T09:43:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d3ff497bec60687e3e1bdde383bd0b9dc74b5870'/>
<id>urn:sha1:d3ff497bec60687e3e1bdde383bd0b9dc74b5870</id>
<content type='text'>
</content>
</entry>
<entry>
<title>mv compiler to compiler/</title>
<updated>2020-08-30T15:45:07+00:00</updated>
<author>
<name>mark</name>
<email>markm@cs.wisc.edu</email>
</author>
<published>2020-08-28T03:58:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=9e5f7d5631b8f4009ac1c693e585d4b7108d4275'/>
<id>urn:sha1:9e5f7d5631b8f4009ac1c693e585d4b7108d4275</id>
<content type='text'>
</content>
</entry>
</feed>
