Function rustc_query_impl::make_query::resolve_instance [−][src]
pub fn resolve_instance<'tcx>(
tcx: QueryCtxt<'tcx>,
key: resolve_instance<'tcx>
) -> QueryStackFrameExpand description
Attempt to resolve the given DefId to an Instance, for the
given generics args (SubstsRef), returning one of:
Ok(Some(instance))on successOk(None)when theSubstsRefare still too generic, and therefore don’t allow finding the finalInstanceErr(ErrorReported)when theInstanceresolution process couldn’t complete due to errors elsewhere - this is distinct fromOk(None)to avoid misleading diagnostics when an error has already been/will be emitted, for the original cause