Skip to content

Warn disallowed_methods and disallowed_types by default - #8261

Merged
bors merged 1 commit into
rust-lang:masterfrom
taiki-e:disallowed
Jan 11, 2022
Merged

Warn disallowed_methods and disallowed_types by default#8261
bors merged 1 commit into
rust-lang:masterfrom
taiki-e:disallowed

Conversation

@taiki-e

@taiki-e taiki-e commented Jan 10, 2022

Copy link
Copy Markdown
Member

Closes #7841

changelog: Moved [disallowed_methods] and [disallowed_types] to style

@rust-highfive

Copy link
Copy Markdown

r? @giraffate

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Jan 10, 2022
#[clippy::version = "1.49.0"]
pub DISALLOWED_METHODS,
nursery,
style,

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if style is the right group (I felt like it is "user-defined code styles"), but I couldn't find another group that looked good. (restriction that #7841 originally proposed is allowed by default.)

@flip1995

Copy link
Copy Markdown
Member

Yeah, I think style is fine here.

I would add a note to the What it does section, that says somehting like:

Note: Even though this lint is warn-by-default, it will only trigger if methods/types are defined in the clippy.toml file.

@taiki-e

taiki-e commented Jan 10, 2022

Copy link
Copy Markdown
Member Author

@flip1995 Thanks. I applied your suggestion.

@giraffate

Copy link
Copy Markdown
Contributor

@bors r+

It looks good, thanks!

@bors

bors commented Jan 10, 2022

Copy link
Copy Markdown
Contributor

📌 Commit 5f143c6 has been approved by giraffate

@bors

bors commented Jan 10, 2022

Copy link
Copy Markdown
Contributor

⌛ Testing commit 5f143c6 with merge 51282fc...

@bors

bors commented Jan 11, 2022

Copy link
Copy Markdown
Contributor

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: giraffate
Pushing 51282fc to master...

@bors
bors merged commit 51282fc into rust-lang:master Jan 11, 2022
@taiki-e
taiki-e deleted the disallowed branch January 11, 2022 01:09
bors added a commit that referenced this pull request Oct 21, 2023
Warn missing_enforced_import_renames by default

Similar to #8261 that did the same thing to disallowed_methods & disallowed_types.
This lint is also only triggered if import renames are defined in the `clippy.toml` file.

changelog: Moved [`missing_enforced_import_renames`] to `style` (Now warn-by-default)
[#11539](#11539)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enable disallowed-method and disallowed-type by default

5 participants