Use terminology more sensibly

This commit is contained in:
Michael Howell 2023-08-31 22:40:43 -07:00 committed by GitHub
parent 62835c9531
commit ba9af10846
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1119,7 +1119,7 @@ impl EarlyLintPass for UnusedParens {
let ast::TyKind::Paren(_) = &ty.kind
{
let id = self.parens_in_cast_in_lt.pop().expect("check_expr and check_expr_post must balance");
assert_eq!(id, ty.id, "check_expr and check_expr_post is a depth-first tree traversal");
assert_eq!(id, ty.id, "check_expr, check_ty, and check_expr_post are called, in that order, by the visitor");
}
}