diff options
| author | Jared Davis <message@jared-pri.me> | 2025-07-07 16:17:19 -0400 |
|---|---|---|
| committer | Jared Davis <message@jared-pri.me> | 2025-07-07 16:17:19 -0400 |
| commit | 81dd4e61ed8b63d3398a4bdee033edccc75d2994 (patch) | |
| tree | c24c6ba13e96ea8e4900512aa823ef17d47550ac | |
| parent | 9580d61dc52b08e2986eb4005f2cd991f112718e (diff) | |
| download | rust-81dd4e61ed8b63d3398a4bdee033edccc75d2994.tar.gz rust-81dd4e61ed8b63d3398a4bdee033edccc75d2994.zip | |
use preinterned symbol
fixes https://github.com/rust-lang/rust-clippy/actions/runs/16126736130/job/45505355614?pr=15222#logs
| -rw-r--r-- | clippy_lints/src/exit.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/exit.rs b/clippy_lints/src/exit.rs index a43d788fc16..487db69027a 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`"); } |
