]> git.lizzy.rs Git - rust.git/commit
Move comparing of impl methods against trait from collect to check.
authorNiko Matsakis <niko@alum.mit.edu>
Tue, 29 Oct 2013 10:11:22 +0000 (06:11 -0400)
committerNiko Matsakis <niko@alum.mit.edu>
Sat, 9 Nov 2013 00:45:49 +0000 (19:45 -0500)
commit168ac5290e9d4a787e020735f96fa789060a8f76
treefe927d209d5b0cd6c967151a4679accc3679d965
parent9d3f57ef0869805e0dde99cdce9548a587df7893
Move comparing of impl methods against trait from collect to check.
This code fits better in check because it is checking that the impl
matches the interface. This allows us to avoid the awkward constructions
that lazilly collect traits and so forth. It also permits us to make
use of the results of variance inference.
src/librustc/middle/typeck/check/mod.rs
src/librustc/middle/typeck/coherence.rs
src/librustc/middle/typeck/collect.rs
src/test/compile-fail/class-method-missing.rs
src/test/compile-fail/issue-3344.rs
src/test/compile-fail/missing-derivable-attr.rs