Use terminology more sensibly
This commit is contained in:
parent
62835c9531
commit
ba9af10846
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue