]> git.lizzy.rs Git - rust.git/commit
Purge the hack that allows `FnOnce` to be used with a by-value self method. Besides...
authorNiko Matsakis <niko@alum.mit.edu>
Thu, 20 Nov 2014 17:12:38 +0000 (12:12 -0500)
committerNiko Matsakis <niko@alum.mit.edu>
Sun, 14 Dec 2014 09:21:56 +0000 (04:21 -0500)
commit698db04a8d44df3d2805b25b9b461a886b9933cd
tree1baefd7e47d994010720d65046651997f5b0895b
parentd61338172fa110fcf9e5f2df0e1e83635d0fde3f
Purge the hack that allows `FnOnce` to be used with a by-value self method.  Besides being yucky, it will cause problems if we try to make all traits implement themselves, which would make a lot of things in life easier. Also, it was inextricably linked to `Box`, which was not the intention.  We can work around its absence, so better to reimplement it later in a more thorough fashion.
src/librustc_trans/trans/callee.rs
src/librustc_trans/trans/meth.rs
src/librustc_typeck/check/method/probe.rs
src/librustc_typeck/check/vtable.rs
src/test/run-pass/issue-16739.rs
src/test/run-pass/issue-18883.rs [deleted file]
src/test/run-pass/unboxed-closures-monomorphization.rs
src/test/run-pass/unboxed-closures-prelude.rs
src/test/run-pass/unboxed-closures-unboxing-shim.rs [deleted file]