<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/test/run-pass/enum-discrim-width-stuff.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-04-01T15:22:39+00:00</updated>
<entry>
<title>Fallout in tests</title>
<updated>2015-04-01T15:22:39+00:00</updated>
<author>
<name>Niko Matsakis</name>
<email>niko@alum.mit.edu</email>
</author>
<published>2015-03-30T13:38:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=890ed5c46847fa544278c18fd46c1bdfe2809c09'/>
<id>urn:sha1:890ed5c46847fa544278c18fd46c1bdfe2809c09</id>
<content type='text'>
</content>
</entry>
<entry>
<title>s/Show/Debug/g</title>
<updated>2015-01-29T12:49:02+00:00</updated>
<author>
<name>Jorge Aparicio</name>
<email>japaricious@gmail.com</email>
</author>
<published>2015-01-28T13:34:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=788181d4055747b5307f186a873ab5d2acd29994'/>
<id>urn:sha1:788181d4055747b5307f186a873ab5d2acd29994</id>
<content type='text'>
</content>
</entry>
<entry>
<title>cleanup: s/impl Copy/#[derive(Copy)]/g</title>
<updated>2015-01-25T16:20:38+00:00</updated>
<author>
<name>Jorge Aparicio</name>
<email>japaricious@gmail.com</email>
</author>
<published>2015-01-24T21:36:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=bff462302b3e0a8f68c14cad2806c7ff5005364e'/>
<id>urn:sha1:bff462302b3e0a8f68c14cad2806c7ff5005364e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>core: split into fmt::Show and fmt::String</title>
<updated>2015-01-06T22:49:42+00:00</updated>
<author>
<name>Sean McArthur</name>
<email>sean.monstar@gmail.com</email>
</author>
<published>2014-12-20T08:09:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=44440e5c18a1dbcc9685866ffffe00c508929079'/>
<id>urn:sha1:44440e5c18a1dbcc9685866ffffe00c508929079</id>
<content type='text'>
fmt::Show is for debugging, and can and should be implemented for
all public types. This trait is used with `{:?}` syntax. There still
exists #[derive(Show)].

fmt::String is for types that faithfully be represented as a String.
Because of this, there is no way to derive fmt::String, all
implementations must be purposeful. It is used by the default format
syntax, `{}`.

This will break most instances of `{}`, since that now requires the type
to impl fmt::String. In most cases, replacing `{}` with `{:?}` is the
correct fix. Types that were being printed specifically for users should
receive a fmt::String implementation to fix this.

Part of #20013

[breaking-change]
</content>
</entry>
<entry>
<title>Un-gate macro_rules</title>
<updated>2015-01-06T02:21:14+00:00</updated>
<author>
<name>Keegan McAllister</name>
<email>kmcallister@mozilla.com</email>
</author>
<published>2015-01-03T03:41:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c2e26972e307a2e82b9ff7a5345a5bff47a99501'/>
<id>urn:sha1:c2e26972e307a2e82b9ff7a5345a5bff47a99501</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Use `derive` rather than `deriving` in tests</title>
<updated>2015-01-02T10:05:22+00:00</updated>
<author>
<name>Nick Cameron</name>
<email>ncameron@mozilla.com</email>
</author>
<published>2014-12-31T04:32:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=30e149231c627e61524d1b5bd6357886befae9e6'/>
<id>urn:sha1:30e149231c627e61524d1b5bd6357886befae9e6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>librustc: Make `Copy` opt-in.</title>
<updated>2014-12-08T18:47:44+00:00</updated>
<author>
<name>Niko Matsakis</name>
<email>niko@alum.mit.edu</email>
</author>
<published>2014-12-06T01:01:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=096a28607fb80c91e6e2ca64d9ef44c4e550e96c'/>
<id>urn:sha1:096a28607fb80c91e6e2ca64d9ef44c4e550e96c</id>
<content type='text'>
This change makes the compiler no longer infer whether types (structures
and enumerations) implement the `Copy` trait (and thus are implicitly
copyable). Rather, you must implement `Copy` yourself via `impl Copy for
MyType {}`.

A new warning has been added, `missing_copy_implementations`, to warn
you if a non-generic public type has been added that could have
implemented `Copy` but didn't.

For convenience, you may *temporarily* opt out of this behavior by using
`#![feature(opt_out_copy)]`. Note though that this feature gate will never be
accepted and will be removed by the time that 1.0 is released, so you should
transition your code away from using it.

This breaks code like:

    #[deriving(Show)]
    struct Point2D {
        x: int,
        y: int,
    }

    fn main() {
        let mypoint = Point2D {
            x: 1,
            y: 1,
        };
        let otherpoint = mypoint;
        println!("{}{}", mypoint, otherpoint);
    }

Change this code to:

    #[deriving(Show)]
    struct Point2D {
        x: int,
        y: int,
    }

    impl Copy for Point2D {}

    fn main() {
        let mypoint = Point2D {
            x: 1,
            y: 1,
        };
        let otherpoint = mypoint;
        println!("{}{}", mypoint, otherpoint);
    }

This is the backwards-incompatible part of #13231.

Part of RFC #3.

[breaking-change]
</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 libdebug and update tests.</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-15T01:07:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=38aca17c474321e4c260e36f173275a90d753397'/>
<id>urn:sha1:38aca17c474321e4c260e36f173275a90d753397</id>
<content type='text'>
</content>
</entry>
<entry>
<title>librustc: Remove the fallback to `int` for integers and `f64` for</title>
<updated>2014-06-29T18:47:58+00:00</updated>
<author>
<name>Patrick Walton</name>
<email>pcwalton@mimiga.net</email>
</author>
<published>2014-06-27T19:30:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a5bb0a3a4574af88add700ace7aefc37172fa7a5'/>
<id>urn:sha1:a5bb0a3a4574af88add700ace7aefc37172fa7a5</id>
<content type='text'>
floating point numbers for real.

This will break code that looks like:

    let mut x = 0;
    while ... {
        x += 1;
    }
    println!("{}", x);

Change that code to:

    let mut x = 0i;
    while ... {
        x += 1;
    }
    println!("{}", x);

Closes #15201.

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