Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

self_named_module_files should ignore build.rs #9602

Open
jondo2010 opened this issue Oct 7, 2022 · 1 comment
Open

self_named_module_files should ignore build.rs #9602

jondo2010 opened this issue Oct 7, 2022 · 1 comment
Labels
C-bug Category: Clippy is not doing the correct thing I-false-positive Issue: The lint was triggered on code it shouldn't have

Comments

@jondo2010
Copy link

Summary

error: `mod.rs` files are required, found `my_crate/build.rs`
  |
  = note: requested on the command line with `-D clippy::self-named-module-files`
  = help: move `my_crate/build.rs` to `my_crate/build/mod.rs`

Lint Name

self_named_module_files

Reproducer

I tried this code:

<code>

I saw this happen:

<output>

I expected to see this happen:

Version

No response

Additional Labels

No response

@jondo2010 jondo2010 added C-bug Category: Clippy is not doing the correct thing I-false-positive Issue: The lint was triggered on code it shouldn't have labels Oct 7, 2022
@kraktus
Copy link
Contributor

kraktus commented Oct 8, 2022

Can you share a repro tree file with the command used to reproduce the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: Clippy is not doing the correct thing I-false-positive Issue: The lint was triggered on code it shouldn't have
Projects
None yet
Development

No branches or pull requests

2 participants