fix typo in bound_region_errors.rs

Co-authored-by: matthewjasper <20113453+matthewjasper@users.noreply.github.com>
This commit is contained in:
Rémy Rakic 2021-08-16 09:07:42 +02:00 committed by GitHub
parent 2cf4b87393
commit 311578d7f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -269,7 +269,7 @@ fn try_extract_error_from_fulfill_cx<'tcx>(
) -> Option<DiagnosticBuilder<'tcx>> {
let tcx = infcx.tcx;
// We generally shouldn't have here because the query was
// We generally shouldn't have errors here because the query was
// already run, but there's no point using `delay_span_bug`
// 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);