]> git.lizzy.rs Git - rust.git/commit
Remove the explicit closure kind syntax from the parser and AST;
authorNiko Matsakis <niko@alum.mit.edu>
Tue, 3 Feb 2015 16:34:05 +0000 (11:34 -0500)
committerNiko Matsakis <niko@alum.mit.edu>
Tue, 3 Feb 2015 16:56:16 +0000 (11:56 -0500)
commit04311341197ddabc420a8cffc0d26c12228d445b
tree4c28b4373079ca63d53bfe6ee1250500113cf982
parent47f18659ff629792f49b5ed87e870687703831fe
Remove the explicit closure kind syntax from the parser and AST;
upgrade the inference based on expected type so that it is able to
infer the fn kind in isolation even if the full signature is not
available (and we could perhaps do better still in some cases, such as
extracting just the types of the arguments but not the return value).
23 files changed:
src/librustc/middle/check_loop.rs
src/librustc/middle/liveness.rs
src/librustc/middle/mem_categorization.rs
src/librustc_borrowck/borrowck/mod.rs
src/librustc_resolve/lib.rs
src/librustc_trans/save/mod.rs
src/librustc_trans/trans/base.rs
src/librustc_trans/trans/debuginfo.rs
src/librustc_trans/trans/expr.rs
src/librustc_typeck/check/closure.rs
src/librustc_typeck/check/mod.rs
src/librustc_typeck/check/regionck.rs
src/librustc_typeck/check/upvar.rs
src/librustc_typeck/check/writeback.rs
src/libsyntax/ast.rs
src/libsyntax/ast_map/blocks.rs
src/libsyntax/ext/build.rs
src/libsyntax/ext/expand.rs
src/libsyntax/fold.rs
src/libsyntax/parse/obsolete.rs
src/libsyntax/parse/parser.rs
src/libsyntax/print/pprust.rs
src/libsyntax/visit.rs