Skip to main content

Module disallowed_pass_by_ref

Module disallowed_pass_by_ref 

Source

Structs§

DisallowedPassByRef

Statics§

DISALLOWED_PASS_BY_REF
The disallowed_pass_by_ref lint detects if types marked with #[rustc_pass_by_value] are passed by reference. Types with this marker are usually thin wrappers around references, so there is no benefit to an extra layer of indirection. (Example: Ty which is a reference to an Interned<TyKind>)

Functions§

gen_args 🔒
path_for_rustc_pass_by_value 🔒