]> git.lizzy.rs Git - rust.git/commit
Auto merge of #37860 - giannicic:defaultimpl, r=nagisa
authorbors <bors@rust-lang.org>
Thu, 27 Apr 2017 02:48:17 +0000 (02:48 +0000)
committerbors <bors@rust-lang.org>
Thu, 27 Apr 2017 02:48:17 +0000 (02:48 +0000)
commit54ef80043a3864495555c96791118ab3a725fe6b
tree4e19eb056c15ad2bebc60e937f2b1381078c56c9
parent6e0c5af9de7727074af21735bdc9197cb9f1ff49
parentb48eb5e0be2a6e06d9629f770288c46f7bcb326c
Auto merge of #37860 - giannicic:defaultimpl, r=nagisa

#37653 support `default impl` for specialization

this commit implements the first step of the `default impl` feature:

> all items in a `default impl` are (implicitly) `default` and hence
> specializable.

In order to test this feature I've copied all the tests provided for the
`default` method implementation (in run-pass/specialization and
compile-fail/specialization directories) and moved the `default` keyword
from the item to the impl.
See [referenced](https://github.com/rust-lang/rust/issues/37653) issue for further info

r? @aturon
13 files changed:
src/librustc/middle/reachable.rs
src/librustc/traits/project.rs
src/librustc/traits/util.rs
src/librustc_metadata/cstore_impl.rs
src/librustc_metadata/decoder.rs
src/librustc_metadata/encoder.rs
src/librustc_save_analysis/dump_visitor.rs
src/librustc_trans/collector.rs
src/librustc_typeck/check/mod.rs
src/librustc_typeck/check/wfcheck.rs
src/librustc_typeck/coherence/unsafety.rs
src/librustc_typeck/collect.rs
src/libsyntax/parse/parser.rs