We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c0838c8 commit 43ede73Copy full SHA for 43ede73
compiler/rustc_lint/src/nonstandard_style.rs
@@ -332,6 +332,9 @@ impl<'tcx> LateLintPass<'tcx> for NonSnakeCase {
332
return;
333
}
334
335
+ // Issue #45127: don't enforce `snake_case` for binary crates as binaries are not intended
336
+ // to be distributed and depended on like libraries. The lint is not suppressed for cdylib
337
+ // or staticlib because it's not clear what the desired lint behavior for those are.
338
if cx.tcx.crate_types().iter().all(|&crate_type| crate_type == CrateType::Executable) {
339
340
0 commit comments