Make crate_inherent_impls fallible and stop using track_errors
for it
This commit is contained in:
parent
49347ee12d
commit
557b111870
19 changed files with 115 additions and 73 deletions
|
@ -1433,7 +1433,7 @@ fn collect_alloc<'tcx>(tcx: TyCtxt<'tcx>, alloc_id: AllocId, output: &mut MonoIt
|
|||
}
|
||||
|
||||
fn assoc_fn_of_type<'tcx>(tcx: TyCtxt<'tcx>, def_id: DefId, fn_ident: Ident) -> Option<DefId> {
|
||||
for impl_def_id in tcx.inherent_impls(def_id) {
|
||||
for impl_def_id in tcx.inherent_impls(def_id).ok()? {
|
||||
if let Some(new) = tcx.associated_items(impl_def_id).find_by_name_and_kind(
|
||||
tcx,
|
||||
fn_ident,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue