Skip to main content

FinalizeCheckFn

Type Alias FinalizeCheckFn 

Source
pub(crate) type FinalizeCheckFn = fn(&FinalizeCheckContext<'_, '_>, Span);
Expand description

A cross-attribute check that runs after all attributes on an item have been finalized, so it can inspect the fully parsed attributes via FinalizeCheckContext::parsed_attrs. The Span is the span of the attribute the check is associated with, used for diagnostics.

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 8 bytes