Expand description
Shared crate index built from a single parse pass over all source files.
All lint rules operate on this index rather than re-parsing files.
Structsยง
- Attributed
Trait Impl - Crate
Index - Shared parsed state for all lint rules.
- File
Data - Impl
Method Entry - Per-method data collected during the crate-index pass for impl-method lint rules.
- Lint
Item
Enumsยง
- Lint
Kind - Method
Receiver Kind - Receiver kind for an impl method, mirroring
ReceiverKindinminiextendr-macros.
Constantsยง
- RF_
ERROR_ ๐PATTERNS - Patterns that indicate direct Rf_error/Rf_errorcall calls in user code.
Functionsยง
- collect_
active_ ๐cargo_ features - Collect the set of active Cargo features from
CARGO_FEATURE_*env vars. Feature names are normalized:CARGO_FEATURE_FOO_BARโ"foo-bar". - collect_
items_ ๐recursive - Recursively collect all lint-relevant information from parsed items.
- collect_
rs_ ๐files_ from_ module_ tree - Collect Rust source files by walking the module tree from
lib.rs, followingmod child;declarations and respecting#[cfg(feature = "...")]gates viaCARGO_FEATURE_*environment variables. - detect_
receiver_ ๐kind - Detect the receiver kind from a method signature.
- discover_
mod_ ๐declarations - Walk parsed items looking for
mod child;declarations and recurse. - eval_
cfg_ ๐str - Try to evaluate a single cfg string like
cfg(feature = "foo"). - extract_
feature_ ๐name - Extract the feature name from a string like
feature="foo". - extract_
param_ ๐names - Extract named parameter names (and their 1-based line numbers) from a function signature.
- extract_
return_ ๐type_ str - Stringify a
syn::ReturnTypeto a compact token string. - find_
interleaved_ ๐doc_ attr - Returns the 1-based line number of the first non-doc attribute that interrupts
a doc-comment stream, or
Noneif no such interruption exists. - has_
constructor_ ๐attr - Returns true when the attribute list contains
#[miniextendr(constructor)]or#[miniextendr(r6(constructor))]/#[miniextendr(s3(constructor))]etc. - is_
cfg_ ๐active - Evaluate whether a set of
#[cfg(...)]attributes is active given the current features. - is_
external_ ๐ptr_ self_ ty - Returns true if
tyisExternalPtr<Self>(last path segment =ExternalPtr, single type argument =Self). - is_
suppressed ๐ - Check if a lint code is suppressed via
// mxl::allow(MXL...)comment. - line_
has_ ๐allow - Check if a single line contains
// mxl::allow(...)matching the given code. - parse_
file ๐ - scan_
ffi_ ๐unchecked_ calls - Scan raw source text for
ffi::*_unchecked()calls. - scan_
rf_ ๐error_ calls - Scan raw source text for direct Rf_error/Rf_errorcall calls.
- walk_
module_ ๐file - Recursively walk a module file, following
moddeclarations.