Provides expert guidance and API references for building custom Rust lints using clippy_utils and rustc internals.
This skill serves as a comprehensive technical guide for developers creating custom Rust lints within the clippy_utils ecosystem. It offers a curated reference for specific nightly versions, including verified imports for type checking, path matching, and HIR traversal. By leveraging this skill, Claude can assist in navigating complex rustc internals, identifying deprecated APIs with suggested replacements, and implementing performance-optimized visitors and diagnostic tools for sophisticated static analysis.
主要功能
01Mapping of common linting tasks to specific code examples
02Guidance on type checking, HIR traversal, and path matching
03Performance-optimized patterns for custom lint implementation
04Reference for clippy_utils 0.1.95 and rustc 1.95 nightly APIs
05Documentation of removed APIs with modern replacements
061 GitHub stars
使用场景
01Migrating existing lints to newer versions of rustc and clippy_utils
02Implementing new custom Rust lints for specialized project requirements
03Optimizing static analysis tools for better performance and lower memory footprint