[−][src]Function rustc_typeck::check::wfcheck::check_type_defn
fn check_type_defn<'a, 'tcx, F>(
tcx: TyCtxt<'a, 'tcx, 'tcx>,
item: &Item,
all_sized: bool,
lookup_fields: F
) where
F: for<'fcx, 'gcx, 'tcx2> FnMut(&FnCtxt<'fcx, 'gcx, 'tcx2>) -> Vec<AdtVariant<'tcx2>>,
🔬 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?
In a type definition, we check that to ensure that the types of the fields are well-formed.