Add cycle errors to ScrubbedTraitError to remove a couple more calls to new_with_diagnostics
This commit is contained in:
@@ -28,7 +28,7 @@ impl<'tcx> InferCtxt<'tcx> {
|
||||
),
|
||||
ty,
|
||||
)
|
||||
.map_err(|_: Vec<ScrubbedTraitError>| NoSolution)
|
||||
.map_err(|_: Vec<ScrubbedTraitError<'tcx>>| NoSolution)
|
||||
} else {
|
||||
Ok(ty)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user