Skip to content

Commit b418b7b

Browse files
committed
Remove CheckTypeWellFormed struct and convert to free functions
Related to #48939
1 parent 4f1f389 commit b418b7b

File tree

2 files changed

+500
-517
lines changed

2 files changed

+500
-517
lines changed

src/librustc_typeck/check/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -719,15 +719,15 @@ fn typeck_item_bodies<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>, crate_num: CrateNum
719719
}
720720

721721
fn check_item_well_formed<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>, def_id: DefId) {
722-
wfcheck::CheckTypeWellFormed::new(tcx).check_item_well_formed(def_id);
722+
wfcheck::check_item_well_formed(tcx, def_id);
723723
}
724724

725725
fn check_trait_item_well_formed<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>, def_id: DefId) {
726-
wfcheck::CheckTypeWellFormed::new(tcx).check_trait_item(def_id);
726+
wfcheck::check_trait_item(tcx, def_id);
727727
}
728728

729729
fn check_impl_item_well_formed<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>, def_id: DefId) {
730-
wfcheck::CheckTypeWellFormed::new(tcx).check_impl_item(def_id);
730+
wfcheck::check_impl_item(tcx, def_id);
731731
}
732732

733733
pub fn provide(providers: &mut Providers) {

0 commit comments

Comments
 (0)