<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/libcore/str, branch 1.22.1</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.22.1</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.22.1'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2017-09-29T22:35:23+00:00</updated>
<entry>
<title>Auto merge of #44174 - jimmycuadra:try-from-infallible, r=sfackler</title>
<updated>2017-09-29T22:35:23+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2017-09-29T22:35:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b7041bfab3a83702a8026fb7a18d8ea7d54cc648'/>
<id>urn:sha1:b7041bfab3a83702a8026fb7a18d8ea7d54cc648</id>
<content type='text'>
Add blanket TryFrom impl when From is implemented.

Adds `impl&lt;T, U&gt; TryFrom&lt;T&gt; for U where U: From&lt;T&gt;`.

Removes `impl&lt;'a, T&gt; TryFrom&lt;&amp;'a str&gt; for T where T: FromStr` (originally added in #40281) due to overlapping impls caused by the new blanket impl. This removal is to be discussed further on the tracking issue for TryFrom.

Refs #33417.

/cc @sfackler, @scottmcm (thank you for the help!), and @aturon
</content>
</entry>
<entry>
<title>TrustedRandomAccess specialisation for Cloned.</title>
<updated>2017-09-23T19:30:53+00:00</updated>
<author>
<name>Clar Charr</name>
<email>clar@charr.xyz</email>
</author>
<published>2017-09-23T16:03:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1c589b7a51c005b3c55244a7b7589ed351028d46'/>
<id>urn:sha1:1c589b7a51c005b3c55244a7b7589ed351028d46</id>
<content type='text'>
This verifies that TrustedRandomAccess has no side effects when the
iterator item implements Copy. This also implements TrustedLen and
TrustedRandomAccess for str::Bytes.
</content>
</entry>
<entry>
<title>Rollup merge of #44658 - leodasvacas:remove-str-eq-lang-item, r=arielb1</title>
<updated>2017-09-23T04:29:11+00:00</updated>
<author>
<name>Corey Farwell</name>
<email>coreyf@rwell.org</email>
</author>
<published>2017-09-23T04:29:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=bdbe6e2b35e106979b066b5c8fb9131e91392e4d'/>
<id>urn:sha1:bdbe6e2b35e106979b066b5c8fb9131e91392e4d</id>
<content type='text'>
Remove str_eq lang item

It's not really a lang item. Also remove outdated note. The reference uses this as an example so it has to be updated.
</content>
</entry>
<entry>
<title>Rollup merge of #44657 - Ixrec:patch-1, r=eddyb</title>
<updated>2017-09-18T16:04:25+00:00</updated>
<author>
<name>Alex Crichton</name>
<email>alex@alexcrichton.com</email>
</author>
<published>2017-09-18T16:04:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=64c9fd6832b305983ad638c3c3b10aef4c276443'/>
<id>urn:sha1:64c9fd6832b305983ad638c3c3b10aef4c276443</id>
<content type='text'>
Replace str's transmute() calls with pointer casts

After the following conversation in #rust-lang:
```
[14:43:50] &lt;Ixrec&gt; TIL the implementation of from_utf_unchecked is literally just "mem::transmute(x)"
[14:43:59] &lt;Ixrec&gt; no wonder people keep saying transmute is overpowered
[15:15:30] &lt;eddyb&gt; Ixrec: it should be a pointer cast lol
[15:15:46] &lt;eddyb&gt; unless it doesn't let you
[16:50:34] &lt;Ixrec&gt; https://play.rust-lang.org/?gist=d1e6b629ad9ec1baf64ce261c63845e6&amp;version=stable seems like it does let me
[16:52:35] &lt;eddyb&gt; Ixrec: yeah that's the preferred impl
[16:52:46] &lt;eddyb&gt; Ixrec: it just wasn't in 1.0
[16:52:50] &lt;eddyb&gt; IIRC
[16:53:00] &lt;eddyb&gt; (something something fat pointers)
```
Since I already wrote half of the preferred impls in the playground, might as well make an actual PR.
</content>
</entry>
<entry>
<title>Add `&lt;*const T&gt;::align_offset` and use it in `memchr`</title>
<updated>2017-09-17T19:30:58+00:00</updated>
<author>
<name>Oliver Schneider</name>
<email>git-spam-no-reply9815368754983@oli-obk.de</email>
</author>
<published>2017-09-13T10:20:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2787a285bd211ecbf75fd95d990226242005d848'/>
<id>urn:sha1:2787a285bd211ecbf75fd95d990226242005d848</id>
<content type='text'>
</content>
</entry>
<entry>
<title>missed a 'mut'</title>
<updated>2017-09-17T16:11:42+00:00</updated>
<author>
<name>Ixrec</name>
<email>ericrhitchcock@gmail.com</email>
</author>
<published>2017-09-17T16:11:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=38fa340ba263612a6f7351d4800d6d4f57ac1cdf'/>
<id>urn:sha1:38fa340ba263612a6f7351d4800d6d4f57ac1cdf</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove unused str_eq lang item</title>
<updated>2017-09-17T16:04:49+00:00</updated>
<author>
<name>leonardo.yvens</name>
<email>leoyvens@gmail.com</email>
</author>
<published>2017-09-17T16:04:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=07416452304b2c0b41597fdfe63f4b3b00aeecd9'/>
<id>urn:sha1:07416452304b2c0b41597fdfe63f4b3b00aeecd9</id>
<content type='text'>
It's not a lang item anymore. Also remove outdated note.
</content>
</entry>
<entry>
<title>Replace str's transmute() calls with pointer casts</title>
<updated>2017-09-17T16:03:56+00:00</updated>
<author>
<name>Ixrec</name>
<email>ericrhitchcock@gmail.com</email>
</author>
<published>2017-09-17T16:03:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2633b85ab2c89822d2c227fc9e81c6ec1c0ed9b6'/>
<id>urn:sha1:2633b85ab2c89822d2c227fc9e81c6ec1c0ed9b6</id>
<content type='text'>
After the following conversation in #rust-lang:
```
[14:43:50] &lt;Ixrec&gt; TIL the implementation of from_utf_unchecked is literally just "mem::transmute(x)"
[14:43:59] &lt;Ixrec&gt; no wonder people keep saying transmute is overpowered
[15:15:30] &lt;eddyb&gt; Ixrec: it should be a pointer cast lol
[15:15:46] &lt;eddyb&gt; unless it doesn't let you
[16:50:34] &lt;Ixrec&gt; https://play.rust-lang.org/?gist=d1e6b629ad9ec1baf64ce261c63845e6&amp;version=stable seems like it does let me
[16:52:35] &lt;eddyb&gt; Ixrec: yeah that's the preferred impl
[16:52:46] &lt;eddyb&gt; Ixrec: it just wasn't in 1.0
[16:52:50] &lt;eddyb&gt; IIRC
[16:53:00] &lt;eddyb&gt; (something something fat pointers)
```
Since I already wrote half of the preferred impls in the playground, might as well make an actual PR.</content>
</entry>
<entry>
<title>Rollup merge of #44477 - napen123:master, r=frewsxcv</title>
<updated>2017-09-15T02:32:42+00:00</updated>
<author>
<name>Corey Farwell</name>
<email>coreyf@rwell.org</email>
</author>
<published>2017-09-15T02:32:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=592cafeb3df6e7aeb7d65a36be981f78b0f5e9e4'/>
<id>urn:sha1:592cafeb3df6e7aeb7d65a36be981f78b0f5e9e4</id>
<content type='text'>
Add doc examples to str::from_utf8_unchecked_mut

Fixes #44461
</content>
</entry>
<entry>
<title>Remove Invalid UTF-8 from str::from_utf8_unchecked_mut</title>
<updated>2017-09-12T23:30:44+00:00</updated>
<author>
<name>Ethan Dagner</name>
<email>napen123@gmail.com</email>
</author>
<published>2017-09-12T23:30:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=8adf50d90ecd7f7524e745c5d64edd203ebc737f'/>
<id>urn:sha1:8adf50d90ecd7f7524e745c5d64edd203ebc737f</id>
<content type='text'>
</content>
</entry>
</feed>
