We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9580d61 commit 81dd4e6Copy full SHA for 81dd4e6
clippy_lints/src/exit.rs
@@ -68,7 +68,7 @@ impl<'tcx> LateLintPass<'tcx> for Exit {
68
// if you instead check for the parent of the `exit()` call being the entrypoint function, as this worked before,
69
// in compilation contexts like --all-targets (which include --tests), you get false positives
70
// because in a test context, main is not the entrypoint function
71
- && ident.name.as_str() != "main"
+ && ident.name != sym::main
72
{
73
span_lint(cx, EXIT, e.span, "usage of `process::exit`");
74
}
0 commit comments