From 81dd4e61ed8b63d3398a4bdee033edccc75d2994 Mon Sep 17 00:00:00 2001 From: Jared Davis Date: Mon, 7 Jul 2025 16:17:19 -0400 Subject: [PATCH] use preinterned symbol fixes https://github.com/rust-lang/rust-clippy/actions/runs/16126736130/job/45505355614?pr=15222#logs --- clippy_lints/src/exit.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clippy_lints/src/exit.rs b/clippy_lints/src/exit.rs index a43d788fc16f..487db69027af 100644 --- a/clippy_lints/src/exit.rs +++ b/clippy_lints/src/exit.rs @@ -68,7 +68,7 @@ impl<'tcx> LateLintPass<'tcx> for Exit { // if you instead check for the parent of the `exit()` call being the entrypoint function, as this worked before, // in compilation contexts like --all-targets (which include --tests), you get false positives // because in a test context, main is not the entrypoint function - && ident.name.as_str() != "main" + && ident.name != sym::main { span_lint(cx, EXIT, e.span, "usage of `process::exit`"); }