]> git.lizzy.rs Git - rust.git/commit
Put overlapping impls behind feature gate, add tests
authorSean Griffin <sean@seantheprogrammer.com>
Fri, 17 Mar 2017 18:16:29 +0000 (14:16 -0400)
committerCorey Farwell <coreyf@rwell.org>
Sat, 15 Apr 2017 02:05:11 +0000 (22:05 -0400)
commitadcdd605be9cbdb338d4ecc2410cde87272f2191
treeb078c4e2b4196dff490db3318824b1693a0a2ef0
parentc81c958e984b92222909e2ba5c74a2260a44bdae
Put overlapping impls behind feature gate, add tests

I've added some explicit tests that negative impls are allowed to
overlap, and also to make sure that the feature doesn't interfere with
specialization. I've not added an explicit test for positive overlapping
with negative, as that's already tested elsewhere.
src/librustc/ty/mod.rs
src/libsyntax/feature_gate.rs
src/test/compile-fail/coherence-conflicting-negative-trait-impl.rs
src/test/compile-fail/coherence-impls-send.rs
src/test/compile-fail/overlapping-impls-requires-feature-gate.rs [new file with mode: 0644]
src/test/run-pass/overlap-doesnt-conflict-with-specialization.rs [new file with mode: 0644]
src/test/run-pass/overlap-permitted-for-marker-traits.rs