1
Fork 0

Rename is_object_safe to check_is_object_safe to hint side effects

This commit is contained in:
Gary Guo 2023-01-28 15:07:21 +00:00
parent d6de40b536
commit 94e59cb6e2
12 changed files with 17 additions and 14 deletions

View file

@ -797,7 +797,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
}
ty::PredicateKind::ObjectSafe(trait_def_id) => {
if self.tcx().is_object_safe(trait_def_id) {
if self.tcx().check_is_object_safe(trait_def_id) {
Ok(EvaluatedToOk)
} else {
Ok(EvaluatedToErr)