From ba9af10846f31648891e89d7fdb06a77c63781c5 Mon Sep 17 00:00:00 2001 From: Michael Howell Date: Thu, 31 Aug 2023 22:40:43 -0700 Subject: [PATCH] Use terminology more sensibly --- compiler/rustc_lint/src/unused.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_lint/src/unused.rs b/compiler/rustc_lint/src/unused.rs index 5c9731cd8df..39e6fb805ae 100644 --- a/compiler/rustc_lint/src/unused.rs +++ b/compiler/rustc_lint/src/unused.rs @@ -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"); } }