Don't pass lint back out of lint decorator

This commit is contained in:
Michael Goulet 2023-12-08 01:52:56 +00:00
parent 4d1bd0db7f
commit 7f565ed282
38 changed files with 50 additions and 116 deletions

View file

@ -273,7 +273,6 @@ fn overlap<'tcx>(
causing the impls to overlap",
infcx.resolve_vars_if_possible(failing_obligation.predicate)
));
lint
},
);
}

View file

@ -194,7 +194,6 @@ fn lint_object_unsafe_trait(
// Only provide the help if its a local trait, otherwise it's not
violation.solution().add_to(err);
}
err
},
);
}

View file

@ -450,7 +450,6 @@ fn report_conflicting_impls<'tcx>(
msg,
|err| {
decorate(tcx, &overlap, impl_span, err);
err
},
);
}