Skip to main content

DUPLICATE_TOOLS

Static DUPLICATE_TOOLS 

Source
pub static DUPLICATE_TOOLS: &'static Lint
Expand description

The duplicate_tools lint detects duplicate tools found in crate-level register_tool attributes (including register_attribute_tool or register_lint_tool).

§Example

#![feature(register_tool)]
#![register_tool(foo)]
#![register_tool(foo)]

{{produces}}

§Explanation

Enabling a tool more than once is a no-op. To avoid this warning, remove the second register_tool() attribute.