Module rustc_typeck::check::closure[][src]

🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

Code for type-checking closure expressions.

Re-exports

use super::check_fn;
use super::Expectation;
use super::FnCtxt;
use super::GeneratorTypes;
use astconv::AstConv;
use rustc::hir::def_id::DefId;
use rustc::infer::InferOk;
use rustc::infer::InferResult;
use rustc::infer::LateBoundRegionConversionTime;
use rustc::infer::type_variable::TypeVariableOrigin;
use rustc::traits::error_reporting::ArgKind;
use rustc::ty;
use rustc::ty::ToPolyTraitRef;
use rustc::ty::Ty;
use rustc::ty::GenericParamDefKind;
use rustc::ty::fold::TypeFoldable;
use rustc::ty::subst::Substs;
use std::cmp;
use std::iter;
use rustc_target::spec::abi::Abi;
use syntax::codemap::Span;
use rustc::hir;

Structs

ClosureSignatures [
Experimental
]
ExpectedSig [
Experimental
]

What signature do we expect the closure to have from context?