<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/test/compile-fail/enum-to-float-cast.rs, branch 1.26.2</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.26.2</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.26.2'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2015-07-28T22:57:24+00:00</updated>
<entry>
<title>Improve typeck diagnostic messages</title>
<updated>2015-07-28T22:57:24+00:00</updated>
<author>
<name>Simonas Kazlauskas</name>
<email>git@kazlauskas.me</email>
</author>
<published>2015-07-27T00:31:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ffcdf0881b37340c9c90bdfd8b96149090a62378'/>
<id>urn:sha1:ffcdf0881b37340c9c90bdfd8b96149090a62378</id>
<content type='text'>
Mostly by splitting error messages into proper pairs of errors and helps
</content>
</entry>
<entry>
<title>Fallout from this change.</title>
<updated>2015-04-14T12:23:02+00:00</updated>
<author>
<name>Felix S. Klock II</name>
<email>pnkfelix@pnkfx.org</email>
</author>
<published>2015-04-14T12:23:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d82f9123b25ac9cf1b4b634f5b60358517d8998d'/>
<id>urn:sha1:d82f9123b25ac9cf1b4b634f5b60358517d8998d</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>librustc: Forbid enum-to-float casts.</title>
<updated>2014-06-13T18:23:47+00:00</updated>
<author>
<name>Patrick Walton</name>
<email>pcwalton@mimiga.net</email>
</author>
<published>2014-06-13T18:14:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=30772d94b1e86a09723af1f137149b45e8c12ed7'/>
<id>urn:sha1:30772d94b1e86a09723af1f137149b45e8c12ed7</id>
<content type='text'>
Closes #14794.

If you're casting from an enum to a float, cast through an integer
first.

[breaking-change]
</content>
</entry>
</feed>
