New lint: generalize exit, todo, mem_forget, etc. · Issue #8031 · rust-lang/rust-clippy (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

@ojeda

Description

@ojeda

What it does

The new lint(s) would be a generalization of other lints that check for usage of some functions, types, macros, etc.:

etc. It would be a continuation of other lints such as disallowed_methods and disallowed_types.

The new lint(s) would be useful for big projects that may want to avoid particular items coming from dependencies, or to discourage their usage in general (requiring an explicit allow), or to deprecate certain items (while keeping existing ones), etc.

Categories (optional)

Drawbacks

None (since projects would be responsible for the lists).