Skip to content

New lint: disallowed_module #9489

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

Open
xxchan opened this issue Sep 17, 2022 · 2 comments
Open

New lint: disallowed_module #9489

xxchan opened this issue Sep 17, 2022 · 2 comments
Labels
A-lint Area: New lints

Comments

@xxchan
Copy link
Contributor

xxchan commented Sep 17, 2022

What it does

similar to disallowed_methods & disallowed_type

Lint Name

disallowed_module

Category

style

Advantage

No response

Drawbacks

No response

Example

<code>

Could be written as:

<code>
@xxchan xxchan added the A-lint Area: New lints label Sep 17, 2022
@chansuke
Copy link
Contributor

@rustbot claim

@chansuke chansuke removed their assignment Sep 19, 2022
@kraktus
Copy link
Contributor

kraktus commented Sep 24, 2022

To anyone looking at implementing this lint, maybe better to wait or base it on #9495, which factors out other disallowed_type and disallowed_macro lints

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-lint Area: New lints
Projects
None yet
Development

No branches or pull requests

3 participants