<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/librustc/middle/trans/datum.rs, branch beta</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=beta</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=beta'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2014-11-18T12:32:43+00:00</updated>
<entry>
<title>Move trans, back, driver, and back into a new crate, rustc_trans. Reduces memory usage significantly and opens opportunities for more parallel compilation.</title>
<updated>2014-11-18T12:32:43+00:00</updated>
<author>
<name>Niko Matsakis</name>
<email>niko@alum.mit.edu</email>
</author>
<published>2014-11-16T01:30:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=dc6e414e6f85293aceca3357e2466bcc4bcf425c'/>
<id>urn:sha1:dc6e414e6f85293aceca3357e2466bcc4bcf425c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Switch to purely namespaced enums</title>
<updated>2014-11-17T15:35:51+00:00</updated>
<author>
<name>Steven Fackler</name>
<email>sfackler@gmail.com</email>
</author>
<published>2014-11-06T08:05:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=3dcd2157403163789aaf21a9ab3c4d30a7c6494d'/>
<id>urn:sha1:3dcd2157403163789aaf21a9ab3c4d30a7c6494d</id>
<content type='text'>
This breaks code that referred to variant names in the same namespace as
their enum. Reexport the variants in the old location or alter code to
refer to the new locations:

```
pub enum Foo {
    A,
    B
}

fn main() {
    let a = A;
}
```
=&gt;
```
pub use self::Foo::{A, B};

pub enum Foo {
    A,
    B
}

fn main() {
    let a = A;
}
```
or
```
pub enum Foo {
    A,
    B
}

fn main() {
    let a = Foo::A;
}
```

[breaking-change]
</content>
</entry>
<entry>
<title>Remove ty_bot from the type system</title>
<updated>2014-10-28T16:54:16+00:00</updated>
<author>
<name>Jakub Bukaj</name>
<email>jakub@jakub.cc</email>
</author>
<published>2014-10-24T19:14:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=cca84e9e21b3f021fb6a0d9dedaad270753531cc'/>
<id>urn:sha1:cca84e9e21b3f021fb6a0d9dedaad270753531cc</id>
<content type='text'>
We now instead use a fresh variable for expressions that diverge.
</content>
</entry>
<entry>
<title>librustc: Remove all uses of {:?}.</title>
<updated>2014-10-16T15:15:34+00:00</updated>
<author>
<name>Luqman Aden</name>
<email>laden@csclub.uwaterloo.ca</email>
</author>
<published>2014-10-15T06:25:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=814586be57b87a32414b4e3fecc150686513b80f'/>
<id>urn:sha1:814586be57b87a32414b4e3fecc150686513b80f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>rustc: remove support for Gc.</title>
<updated>2014-10-02T13:59:31+00:00</updated>
<author>
<name>Eduard Burtescu</name>
<email>edy.burt@gmail.com</email>
</author>
<published>2014-09-30T22:26:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=8a91d33ee7267c71a0ae286739dbd72433470004'/>
<id>urn:sha1:8a91d33ee7267c71a0ae286739dbd72433470004</id>
<content type='text'>
</content>
</entry>
<entry>
<title>rustc: fix fallout from the addition of a 'tcx lifetime on trans::Block.</title>
<updated>2014-09-08T12:28:24+00:00</updated>
<author>
<name>Eduard Burtescu</name>
<email>edy.burt@gmail.com</email>
</author>
<published>2014-09-06T16:13:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f7a997be05e364248521ee4d11ab57fcb2e99a40'/>
<id>urn:sha1:f7a997be05e364248521ee4d11ab57fcb2e99a40</id>
<content type='text'>
</content>
</entry>
<entry>
<title>make CrateContext fields private</title>
<updated>2014-09-05T16:18:53+00:00</updated>
<author>
<name>Stuart Pernsteiner</name>
<email>spernsteiner@mozilla.com</email>
</author>
<published>2014-09-05T16:18:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=cf35cb365a4efee53f6372095aaff4798544bf94'/>
<id>urn:sha1:cf35cb365a4efee53f6372095aaff4798544bf94</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Schedule cleanup for &amp;* on fat owned pointers</title>
<updated>2014-09-02T20:29:33+00:00</updated>
<author>
<name>Nick Cameron</name>
<email>ncameron@mozilla.com</email>
</author>
<published>2014-09-01T04:14:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e9bd650cad7c519e3f39b8bbed5afeac94daff05'/>
<id>urn:sha1:e9bd650cad7c519e3f39b8bbed5afeac94daff05</id>
<content type='text'>
For example `let _x: &amp;Trait = &amp;*(box Foo as Box&lt;Trait&gt;);`. There was a bug where no cleanup would be scheduled by the deref.

No test because cleanup-auto-borrow-obj.rs is a test for this once we remove trait cross-borrowing (done on another branch).
</content>
</entry>
<entry>
<title>Rebasing changes</title>
<updated>2014-08-26T04:07:32+00:00</updated>
<author>
<name>Nick Cameron</name>
<email>ncameron@mozilla.com</email>
</author>
<published>2014-08-06T09:59:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=52ef46251ede1ff51e5d5621d5fe2614e950f963'/>
<id>urn:sha1:52ef46251ede1ff51e5d5621d5fe2614e950f963</id>
<content type='text'>
</content>
</entry>
<entry>
<title>DST coercions and DST structs</title>
<updated>2014-08-26T00:38:51+00:00</updated>
<author>
<name>Nick Cameron</name>
<email>ncameron@mozilla.com</email>
</author>
<published>2014-08-04T12:20:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=3e626375d8d2226a203bf6ea6e98dab14774c59f'/>
<id>urn:sha1:3e626375d8d2226a203bf6ea6e98dab14774c59f</id>
<content type='text'>
[breaking-change]

1. The internal layout for traits has changed from (vtable, data) to (data, vtable). If you were relying on this in unsafe transmutes, you might get some very weird and apparently unrelated errors. You should not be doing this! Prefer not to do this at all, but if you must, you should use raw::TraitObject rather than hardcoding rustc's internal representation into your code.

2. The minimal type of reference-to-vec-literals (e.g., `&amp;[1, 2, 3]`) is now a fixed size vec (e.g., `&amp;[int, ..3]`) where it used to be an unsized vec (e.g., `&amp;[int]`). If you want the unszied type, you must explicitly give the type (e.g., `let x: &amp;[_] = &amp;[1, 2, 3]`). Note in particular where multiple blocks must have the same type (e.g., if and else clauses, vec elements), the compiler will not coerce to the unsized type without a hint. E.g., `[&amp;[1], &amp;[1, 2]]` used to be a valid expression of type '[&amp;[int]]'. It no longer type checks since the first element now has type `&amp;[int, ..1]` and the second has type &amp;[int, ..2]` which are incompatible.

3. The type of blocks (including functions) must be coercible to the expected type (used to be a subtype). Mostly this makes things more flexible and not less (in particular, in the case of coercing function bodies to the return type). However, in some rare cases, this is less flexible. TBH, I'm not exactly sure of the exact effects. I think the change causes us to resolve inferred type variables slightly earlier which might make us slightly more restrictive. Possibly it only affects blocks with unreachable code. E.g., `if ... { fail!(); "Hello" }` used to type check, it no longer does. The fix is to add a semicolon after the string.
</content>
</entry>
</feed>
