about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-07-25 09:31:10 +0000
committerbors <bors@rust-lang.org>2014-07-25 09:31:10 +0000
commit470dbef29a3df65b6b7a7c7c46a28696eda1d031 (patch)
tree47ba4e4f65e25493914abdd249c9695a16fdc122 /src/rustllvm/RustWrapper.cpp
parente5984640e63d2e9f613d857ad2d48ff57b310655 (diff)
parentf1520ea0cfa2a96731475cea221cd9ab70cf5588 (diff)
downloadrust-470dbef29a3df65b6b7a7c7c46a28696eda1d031.tar.gz
rust-470dbef29a3df65b6b7a7c7c46a28696eda1d031.zip
auto merge of #15957 : pcwalton/rust/builtin-bound-impl-checking, r=huonw,pnkfelix
method calls are involved.

This breaks code like:

    impl<T:Copy> Foo for T { ... }

    fn take_param<T:Foo>(foo: &T) { ... }

    fn main() {
        let x = box 3i; // note no `Copy` bound
        take_param(&x);
    }

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

    impl<T:Copy> Foo for T { ... }

    fn take_param<T:Foo>(foo: &T) { ... }

    fn main() {
        let x = 3i; // satisfies `Copy` bound
        take_param(&x);
    }

Closes #15860.

[breaking-change]

r? @alexcrichton
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions