]> git.lizzy.rs Git - rust.git/commit
Feature-gate explicit unboxed closure method calls & manual impls,
authorHuon Wilson <dbau.pp+github@gmail.com>
Fri, 5 Dec 2014 23:53:30 +0000 (15:53 -0800)
committerHuon Wilson <dbau.pp+github@gmail.com>
Sat, 6 Dec 2014 01:54:45 +0000 (17:54 -0800)
commite8524198e3931373f5e097dece21e36d21c4a537
treebb850376f44e69f614b4426a89e7ca2ce7069f04
parent4573da6f4ffb276c31773679fd19581fc15ded8f
Feature-gate explicit unboxed closure method calls & manual impls,
detect UFCS drop and allow UFCS methods to have explicit type parameters.

Work towards #18875.

Since code could previously call the methods & implement the traits
manually, this is a

[breaking-change]

Closes #19586. Closes #19375.
13 files changed:
src/libcore/lib.rs
src/librustc_typeck/check/callee.rs [new file with mode: 0644]
src/librustc_typeck/check/method/confirm.rs
src/librustc_typeck/check/mod.rs
src/librustc_typeck/coherence/mod.rs
src/librustc_typeck/diagnostics.rs
src/test/compile-fail/explicit-call-to-dtor.rs
src/test/compile-fail/explicit-call-to-supertrait-dtor.rs
src/test/compile-fail/feature-gate-unboxed-closures-manual-impls.rs [new file with mode: 0644]
src/test/compile-fail/feature-gate-unboxed-closures-method-calls.rs [new file with mode: 0644]
src/test/compile-fail/feature-gate-unboxed-closures-ufcs-calls.rs [new file with mode: 0644]
src/test/compile-fail/illegal-ufcs-drop.rs [new file with mode: 0644]
src/test/run-pass/ufcs-type-params.rs [new file with mode: 0644]