1
Fork 0

Replace &Vec<_>s with &[_]s

This commit is contained in:
Maybe Waffle 2022-06-03 20:42:42 +04:00
parent e40d5e83dc
commit afaa9854fa
14 changed files with 53 additions and 45 deletions

View file

@ -352,7 +352,7 @@ pub fn same_type_modulo_infer<'tcx>(a: Ty<'tcx>, b: Ty<'tcx>) -> bool {
}
impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
pub fn report_region_errors(&self, errors: &Vec<RegionResolutionError<'tcx>>) {
pub fn report_region_errors(&self, errors: &[RegionResolutionError<'tcx>]) {
debug!("report_region_errors(): {} errors to start", errors.len());
// try to pre-process the errors, which will group some of them