Skip to content

Commit ba9af10

Browse files
authored
Use terminology more sensibly
1 parent 62835c9 commit ba9af10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_lint/src/unused.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1119,7 +1119,7 @@ impl EarlyLintPass for UnusedParens {
11191119
let ast::TyKind::Paren(_) = &ty.kind
11201120
{
11211121
let id = self.parens_in_cast_in_lt.pop().expect("check_expr and check_expr_post must balance");
1122-
assert_eq!(id, ty.id, "check_expr and check_expr_post is a depth-first tree traversal");
1122+
assert_eq!(id, ty.id, "check_expr, check_ty, and check_expr_post are called, in that order, by the visitor");
11231123
}
11241124
}
11251125

0 commit comments

Comments
 (0)