mod wfcheck;
pub mod writeback;
-use check::{
- check_abi, check_fn, check_impl_item_well_formed, check_item_well_formed, check_mod_item_types,
- check_trait_item_well_formed,
-};
-pub use check::{check_item_type, check_wf_new};
+use check::{check_abi, check_fn, check_mod_item_types};
pub use diverges::Diverges;
pub use expectation::Expectation;
pub use fn_ctxt::*;
pub fn provide(providers: &mut Providers) {
method::provide(providers);
+ wfcheck::provide(providers);
*providers = Providers {
typeck_item_bodies,
typeck_const_arg,
has_typeck_results,
adt_destructor,
used_trait_imports,
- check_item_well_formed,
- check_trait_item_well_formed,
- check_impl_item_well_formed,
check_mod_item_types,
region_scope_tree,
..*providers
if fn_sig.is_some() {
fcx.regionck_fn(id, body, span, wf_tys);
} else {
- fcx.regionck_expr(body);
+ fcx.regionck_body(body);
}
fcx.resolve_type_vars_in_body(body)