Skip to content

lints.workspace is not allowed to be false #12715

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

Closed
Kriskras99 opened this issue Apr 25, 2024 · 1 comment
Closed

lints.workspace is not allowed to be false #12715

Kriskras99 opened this issue Apr 25, 2024 · 1 comment
Labels
C-bug Category: Clippy is not doing the correct thing

Comments

@Kriskras99
Copy link

Summary

I expect to be able to set lints.workspace to false to explicitly opt out of the workspace lints.
Currently this is not allowed.

It would also be helpful for a potential lint like #11933.

Reproducer

I tried this code:

[lints]
workspace = false

I expected to see this happen:
No lints are imported from the workspace, and Clippy runs normally.

Instead, this happened:

error: `workspace` cannot be false
  --> Cargo.toml:18:13
   |
18 | workspace = false
   |             ^^^^^
   |

Version

rustc 1.79.0-nightly (ef8b9dcf2 2024-04-24)
binary: rustc
commit-hash: ef8b9dcf23700f2e2265317611460d3a65c19eff
commit-date: 2024-04-24
host: x86_64-unknown-linux-gnu
release: 1.79.0-nightly
LLVM version: 18.1.4

Additional Labels

No response

@Kriskras99 Kriskras99 added the C-bug Category: Clippy is not doing the correct thing label Apr 25, 2024
@Alexendoo
Copy link
Member

This would need to be brought up in the cargo issue tracker as cargo defines/parses the lints table

@Alexendoo Alexendoo closed this as not planned Won't fix, can't repro, duplicate, stale Apr 26, 2024
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
Projects
None yet
Development

No branches or pull requests

2 participants