rust/src/test
bors ee21b009bb auto merge of #15991 : pcwalton/rust/resolve-regions-in-trait-matching, r=alexcrichton
matching.

This breaks code like:

    struct Foo<'a,'b> {
        x: &'a int,
        y: &'b int,
    }

    trait Tr {
        fn foo(x: Self) {}
    }

    impl<'a,'b> Tr for Foo<'a,'b> {
        fn foo(x: Foo<'b,'a>) {} // <-- bad
    }

Change this code to not contain a lifetime mismatch error. For example:

    struct Foo<'a,'b> {
        x: &'a int,
        y: &'b int,
    }

    trait Tr {
        fn foo(x: Self) {}
    }

    impl<'a,'b> Tr for Foo<'a,'b> {
        fn foo(x: Foo<'a,'b>) {} // OK
    }

Closes #15517.

[breaking-change]

r? @alexcrichton
2014-07-26 12:16:21 +00:00
..
auxiliary librustc: Implement lifetime elision. 2014-07-19 13:10:58 -07:00
bench librustc: Stop desugaring for expressions and translate them directly. 2014-07-24 18:58:12 -07:00
codegen
compile-fail auto merge of #15991 : pcwalton/rust/resolve-regions-in-trait-matching, r=alexcrichton 2014-07-26 12:16:21 +00:00
compile-fail-fulldeps test: Try to fix a failing snapshot test 2014-07-15 14:00:37 -07:00
debuginfo librustc: Stop desugaring for expressions and translate them directly. 2014-07-24 18:58:12 -07:00
pretty Fix pretty test 2014-07-21 22:53:36 -07:00
run-fail Deprecate str::from_byte 2014-07-15 19:55:19 +02:00
run-make rustc: Append platform exe suffix to output files 2014-07-21 11:27:19 -07:00
run-pass librustc: Stop desugaring for expressions and translate them directly. 2014-07-24 18:58:12 -07:00
run-pass-fulldeps