<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/libcore/clone.rs, branch 1.25.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.25.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.25.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2017-08-31T13:58:58+00:00</updated>
<entry>
<title>Update bootstrap compiler</title>
<updated>2017-08-31T13:58:58+00:00</updated>
<author>
<name>Alex Crichton</name>
<email>alex@alexcrichton.com</email>
</author>
<published>2017-08-25T15:39:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2972687d10408851e1c570cb9713622dfc051ecd'/>
<id>urn:sha1:2972687d10408851e1c570cb9713622dfc051ecd</id>
<content type='text'>
This commit updates the bootstrap compiler and clears out a number
of #[cfg(stage0)] annotations and related business
</content>
</entry>
<entry>
<title>Make `Clone` a lang item and generate builtin impls.</title>
<updated>2017-08-14T13:07:21+00:00</updated>
<author>
<name>scalexm</name>
<email>martin.alex32@hotmail.fr</email>
</author>
<published>2017-08-04T12:44:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=0c3ac648f85cca1e8dd89dfff727a422bc1897a6'/>
<id>urn:sha1:0c3ac648f85cca1e8dd89dfff727a422bc1897a6</id>
<content type='text'>
Fixes #28229.
Fixes #24000.
</content>
</entry>
<entry>
<title>Auto merge of #43406 - canndrew:never-impl-clone, r=alexcrichton</title>
<updated>2017-07-23T04:25:39+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2017-07-23T04:25:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=764b57ef56d61e8e40e1e08731d24ae1596a83b4'/>
<id>urn:sha1:764b57ef56d61e8e40e1e08731d24ae1596a83b4</id>
<content type='text'>
Add missing `!: Clone` impl

Fixes #43296

(untested because I'm having computer troubles, but a one-liner can't break anything right?)
</content>
</entry>
<entry>
<title>Add !: Clone impl</title>
<updated>2017-07-22T09:21:05+00:00</updated>
<author>
<name>Andrew Cann</name>
<email>shum@canndrew.org</email>
</author>
<published>2017-07-22T09:20:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c0fa16afc9f306a9d2af44f2e0adb7b2b714700a'/>
<id>urn:sha1:c0fa16afc9f306a9d2af44f2e0adb7b2b714700a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>std: Cut down #[inline] annotations where not necessary</title>
<updated>2017-07-20T19:01:32+00:00</updated>
<author>
<name>Alex Crichton</name>
<email>alex@alexcrichton.com</email>
</author>
<published>2017-07-20T18:14:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=53d8b1d0515f53d138f0b9c3067540d8c5708415'/>
<id>urn:sha1:53d8b1d0515f53d138f0b9c3067540d8c5708415</id>
<content type='text'>
This PR cuts down on a large number of `#[inline(always)]` and `#[inline]`
annotations in libcore for various core functions. The `#[inline(always)]`
annotation is almost never needed and is detrimental to debug build times as it
forces LLVM to perform inlining when it otherwise wouldn't need to in debug
builds. Additionally `#[inline]` is an unnecessary annoation on almost all
generic functions because the function will already be monomorphized into other
codegen units and otherwise rarely needs the extra "help" from us to tell LLVM
to inline something.

Overall this PR cut the compile time of a [microbenchmark][1] by 30% from 1s to
0.7s.

[1]: https://gist.github.com/alexcrichton/a7d70319a45aa60cf36a6a7bf540dd3a
</content>
</entry>
<entry>
<title>Remove function invokation parens from documentation links.</title>
<updated>2017-03-14T01:43:18+00:00</updated>
<author>
<name>Corey Farwell</name>
<email>coreyf@rwell.org</email>
</author>
<published>2017-03-12T18:04:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e7b0f2badf7c3393f1b36339b121054d05353442'/>
<id>urn:sha1:e7b0f2badf7c3393f1b36339b121054d05353442</id>
<content type='text'>
This was never established as a convention we should follow in the 'More
API Documentation Conventions' RFC:

https://github.com/rust-lang/rfcs/blob/master/text/1574-more-api-documentation-conventions.md
</content>
</entry>
<entry>
<title>Bump version, upgrade bootstrap</title>
<updated>2017-02-03T21:25:46+00:00</updated>
<author>
<name>Alex Crichton</name>
<email>alex@alexcrichton.com</email>
</author>
<published>2017-02-01T23:57:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=626e754473da96a670c917b9cbefd1c1ea888a9c'/>
<id>urn:sha1:626e754473da96a670c917b9cbefd1c1ea888a9c</id>
<content type='text'>
This commit updates the version number to 1.17.0 as we're not on that version of
the nightly compiler, and at the same time this updates src/stage0.txt to
bootstrap from freshly minted beta compiler and beta Cargo.
</content>
</entry>
<entry>
<title>Such large. Very 128. Much bits.</title>
<updated>2016-12-30T14:15:44+00:00</updated>
<author>
<name>Simonas Kazlauskas</name>
<email>git@kazlauskas.me</email>
</author>
<published>2016-08-23T00:56:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b0e55a83a82bae26851f442859acace2b94f5028'/>
<id>urn:sha1:b0e55a83a82bae26851f442859acace2b94f5028</id>
<content type='text'>
This commit introduces 128-bit integers. Stage 2 builds and produces a working compiler which
understands and supports 128-bit integers throughout.

The general strategy used is to have rustc_i128 module which provides aliases for iu128, equal to
iu64 in stage9 and iu128 later. Since nowhere in rustc we rely on large numbers being supported,
this strategy is good enough to get past the first bootstrap stages to end up with a fully working
128-bit capable compiler.

In order for this strategy to work, number of locations had to be changed to use associated
max_value/min_value instead of MAX/MIN constants as well as the min_value (or was it max_value?)
had to be changed to use xor instead of shift so both 64-bit and 128-bit based consteval works
(former not necessarily producing the right results in stage1).

This commit includes manual merge conflict resolution changes from a rebase by @est31.
</content>
</entry>
<entry>
<title>Remove stage0 hacks</title>
<updated>2016-09-28T23:17:56+00:00</updated>
<author>
<name>Brian Anderson</name>
<email>banderson@mozilla.com</email>
</author>
<published>2016-09-28T20:55:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=3b49c60ab71547e6dbaef086eb4cd2bb7fe9ff94'/>
<id>urn:sha1:3b49c60ab71547e6dbaef086eb4cd2bb7fe9ff94</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #36384 - petrochenkov:derclone, r=alexcrichton</title>
<updated>2016-09-15T12:46:19+00:00</updated>
<author>
<name>Manish Goregaokar</name>
<email>manishsmail@gmail.com</email>
</author>
<published>2016-09-15T12:46:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=726850170d3ec4606246ad90fcb08d1eee913c76'/>
<id>urn:sha1:726850170d3ec4606246ad90fcb08d1eee913c76</id>
<content type='text'>
Improve shallow `Clone` deriving

`Copy` unions now support `#[derive(Clone)]`.
Less code is generated for `#[derive(Clone, Copy)]`.
+
Unions now support `#[derive(Eq)]`.
Less code is generated for `#[derive(Eq)]`.

---
Example of code reduction:
```
enum E {
	A { a: u8, b: u16 },
	B { c: [u8; 100] },
}
```
Before:
```
fn clone(&amp;self) -&gt; E {
    match (&amp;*self,) {
        (&amp;E::A { a: ref __self_0, b: ref __self_1 },) =&gt; {
            ::std::clone::assert_receiver_is_clone(&amp;(*__self_0));
            ::std::clone::assert_receiver_is_clone(&amp;(*__self_1));
            *self
        }
        (&amp;E::B { c: ref __self_0 },) =&gt; {
            ::std::clone::assert_receiver_is_clone(&amp;(*__self_0));
            *self
        }
    }
}
```
After:
```
fn clone(&amp;self) -&gt; E {
    {
        let _: ::std::clone::AssertParamIsClone&lt;u8&gt;;
        let _: ::std::clone::AssertParamIsClone&lt;u16&gt;;
        let _: ::std::clone::AssertParamIsClone&lt;[u8; 100]&gt;;
        *self
    }
}
```

All the matches are removed, bound assertions are more lightweight.
`let _: Checker&lt;CheckMe&gt;;`, unlike `checker(&amp;check_me);`, doesn't have to be translated by rustc_trans and then inlined by LLVM, it doesn't even exist in MIR, this means faster compilation.

---
Union impls are generated like this:
```
union U {
	a: u8,
	b: u16,
	c: [u8; 100],
}
```
```
fn clone(&amp;self) -&gt; U {
    {
        let _: ::std::clone::AssertParamIsCopy&lt;Self&gt;;
        *self
    }
}
```

Fixes https://github.com/rust-lang/rust/issues/36043
cc @durka
r? @alexcrichton
</content>
</entry>
</feed>
