<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/libcoretest/mem.rs, branch 1.0.0-beta</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.0.0-beta</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.0.0-beta'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2015-03-31T20:39:14+00:00</updated>
<entry>
<title>std: Remove #[old_orphan_check] from PartialEq</title>
<updated>2015-03-31T20:39:14+00:00</updated>
<author>
<name>Alex Crichton</name>
<email>alex@alexcrichton.com</email>
</author>
<published>2015-03-11T00:59:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=5cf126ae2f6af1cdac901f6995e3c2bab35e587f'/>
<id>urn:sha1:5cf126ae2f6af1cdac901f6995e3c2bab35e587f</id>
<content type='text'>
This is a deprecated attribute that is slated for removal, and it also affects
all implementors of the trait. This commit removes the attribute and fixes up
implementors accordingly. The primary implementation which was lost was the
ability to compare `&amp;[T]` and `Vec&lt;T&gt;` (in that order).

This change also modifies the `assert_eq!` macro to not consider both directions
of equality, only the one given in the left/right forms to the macro. This
modification is motivated due to the fact that `&amp;[T] == Vec&lt;T&gt;` no longer
compiles, causing hundreds of errors in unit tests in the standard library (and
likely throughout the community as well).

cc #19470
[breaking-change]
</content>
</entry>
<entry>
<title>Mass rename uint/int to usize/isize</title>
<updated>2015-03-26T19:10:22+00:00</updated>
<author>
<name>Alex Crichton</name>
<email>alex@alexcrichton.com</email>
</author>
<published>2015-03-26T00:06:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=43bfaa4a336095eb5697fb2df50909fd3c72ed14'/>
<id>urn:sha1:43bfaa4a336095eb5697fb2df50909fd3c72ed14</id>
<content type='text'>
Now that support has been removed, all lingering use cases are renamed.
</content>
</entry>
<entry>
<title>Add trivial cast lints.</title>
<updated>2015-03-24T21:03:57+00:00</updated>
<author>
<name>Nick Cameron</name>
<email>ncameron@mozilla.com</email>
</author>
<published>2015-03-20T04:15:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=95602a759d9190cad92279aa5929d30166f2255c'/>
<id>urn:sha1:95602a759d9190cad92279aa5929d30166f2255c</id>
<content type='text'>
This permits all coercions to be performed in casts, but adds lints to warn in those cases.

Part of this patch moves cast checking to a later stage of type checking. We acquire obligations to check casts as part of type checking where we previously checked them. Once we have type checked a function or module, then we check any cast obligations which have been acquired. That means we have more type information available to check casts (this was crucial to making coercions work properly in place of some casts), but it means that casts cannot feed input into type inference.

[breaking change]

* Adds two new lints for trivial casts and trivial numeric casts, these are warn by default, but can cause errors if you build with warnings as errors. Previously, trivial numeric casts and casts to trait objects were allowed.
* The unused casts lint has gone.
* Interactions between casting and type inference have changed in subtle ways. Two ways this might manifest are:
- You may need to 'direct' casts more with extra type information, for example, in some cases where `foo as _ as T` succeeded, you may now need to specify the type for `_`
- Casts do not influence inference of integer types. E.g., the following used to type check:

```
let x = 42;
let y = &amp;x as *const u32;
```

Because the cast would inform inference that `x` must have type `u32`. This no longer applies and the compiler will fallback to `i32` for `x` and thus there will be a type error in the cast. The solution is to add more type information:

```
let x: u32 = 42;
let y = &amp;x as *const u32;
```
</content>
</entry>
<entry>
<title>Remove integer suffixes where the types in compiled code are identical.</title>
<updated>2015-03-05T07:08:33+00:00</updated>
<author>
<name>Eduard Burtescu</name>
<email>edy.burt@gmail.com</email>
</author>
<published>2015-03-03T08:42:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e64670888a2839ba75237b1934c440c4c319b1bb'/>
<id>urn:sha1:e64670888a2839ba75237b1934c440c4c319b1bb</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Use arrays instead of vectors in tests</title>
<updated>2015-02-24T18:15:45+00:00</updated>
<author>
<name>Vadim Petrochenkov</name>
<email>vadim.petrochenkov@gmail.com</email>
</author>
<published>2015-02-24T18:15:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2807a1ce0255ce98415ebe6f65eb589d0f2f894b'/>
<id>urn:sha1:2807a1ce0255ce98415ebe6f65eb589d0f2f894b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fallout: tests. As tests frequently elide things, lots of changes</title>
<updated>2015-02-18T15:25:28+00:00</updated>
<author>
<name>Niko Matsakis</name>
<email>niko@alum.mit.edu</email>
</author>
<published>2015-02-12T15:29:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=872ce479550a3d805babb0ca409dfc3cf6f52309'/>
<id>urn:sha1:872ce479550a3d805babb0ca409dfc3cf6f52309</id>
<content type='text'>
here.  Some of this may have been poorly rebased, though I tried to be
careful and preserve the spirit of the test.
</content>
</entry>
<entry>
<title>Deprecating i/u suffixes in libcoretest</title>
<updated>2015-02-10T22:56:31+00:00</updated>
<author>
<name>Alfie John</name>
<email>alfiej@fastmail.fm</email>
</author>
<published>2015-02-03T13:50:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=bffbcb5729a2b4cb2ab924e5f0d9ddebe470eebc'/>
<id>urn:sha1:bffbcb5729a2b4cb2ab924e5f0d9ddebe470eebc</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove all `i` suffixes</title>
<updated>2015-01-30T03:38:54+00:00</updated>
<author>
<name>Tobias Bucher</name>
<email>tobiasbucher5991@gmail.com</email>
</author>
<published>2015-01-25T21:05:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=7f64fe4e27555c256cb228feb05d4181a2287125'/>
<id>urn:sha1:7f64fe4e27555c256cb228feb05d4181a2287125</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Generalise pointer width tests using pointer_width</title>
<updated>2015-01-14T02:59:45+00:00</updated>
<author>
<name>Richo Healey</name>
<email>richo@psych0tik.net</email>
</author>
<published>2015-01-14T02:59:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c51379386cbd50e30b7c6c6d2eb618d2c982ff55'/>
<id>urn:sha1:c51379386cbd50e30b7c6c6d2eb618d2c982ff55</id>
<content type='text'>
</content>
</entry>
<entry>
<title>powerpc: Add backend support for powerpc</title>
<updated>2015-01-12T05:14:30+00:00</updated>
<author>
<name>Richo Healey</name>
<email>richo@psych0tik.net</email>
</author>
<published>2015-01-10T04:00:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c8442afeb066656c4f4db3ca8538ee5976b504f6'/>
<id>urn:sha1:c8442afeb066656c4f4db3ca8538ee5976b504f6</id>
<content type='text'>
</content>
</entry>
</feed>
