remove tcx from ObligationCauseCode::span

This commit is contained in:
Michael Goulet 2022-07-08 02:02:08 +00:00
parent 27b6ab9129
commit 78efaf43e4
10 changed files with 12 additions and 18 deletions

View file

@ -742,7 +742,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
| (_, Err(ErrorHandled::Reported(_))) => Ok(EvaluatedToErr),
(Err(ErrorHandled::Linted), _) | (_, Err(ErrorHandled::Linted)) => {
span_bug!(
obligation.cause.span(self.tcx()),
obligation.cause.span(),
"ConstEquate: const_eval_resolve returned an unexpected error"
)
}