Slight cleanup
This commit is contained in:
parent
5cf6edb4c5
commit
19dfea552a
1 changed files with 1 additions and 4 deletions
|
@ -119,7 +119,7 @@ impl<'tcx, F, G> ToUniverseInfo<'tcx> for Canonical<'tcx, type_op::custom::Custo
|
|||
|
||||
#[allow(unused_lifetimes)]
|
||||
trait TypeOpInfo<'tcx> {
|
||||
/// Returns an rrror to be reported if rerunning the type op fails to
|
||||
/// Returns an error to be reported if rerunning the type op fails to
|
||||
/// recover the error's cause.
|
||||
fn fallback_error(&self, tcx: TyCtxt<'tcx>, span: Span) -> DiagnosticBuilder<'tcx>;
|
||||
|
||||
|
@ -283,9 +283,6 @@ fn try_extract_error_from_fulfill_cx<'tcx>(
|
|||
// when we're going to emit an error here anyway.
|
||||
let _errors = fulfill_cx.select_all_or_error(infcx).err().unwrap_or_else(Vec::new);
|
||||
|
||||
let region_obligations = infcx.take_registered_region_obligations();
|
||||
debug!(?region_obligations);
|
||||
|
||||
let (sub_region, cause) = infcx.with_region_constraints(|region_constraints| {
|
||||
debug!(?region_constraints);
|
||||
region_constraints.constraints.iter().find_map(|(constraint, cause)| {
|
||||
|
|
Loading…
Reference in a new issue