Module codegen_attrs

Source

Functionsยง

autodiff_attrs ๐Ÿ”’
We now check the #[rustc_autodiff] attributes which we generated from the #[autodiff(โ€ฆ)] macros. There are two forms. The pure one without args to mark primal functions (the functions being differentiated). The other form is #[rustc_autodiff(Mode, ActivityList)] on top of the placeholder functions. We wrote the rustc_autodiff attributes ourself, so this should never panic, unless we introduced a bug when parsing the autodiff macro.
check_link_name_xor_ordinal ๐Ÿ”’
check_link_ordinal ๐Ÿ”’
codegen_fn_attrs ๐Ÿ”’
inherited_align ๐Ÿ”’
If the provided DefId is a method in a trait impl, return the value of the #[align] attribute on the method prototype (if any).
linkage_by_name ๐Ÿ”’
opt_trait_item ๐Ÿ”’
If the provided DefId is a method in a trait impl, return the DefId of the method prototype.
provide ๐Ÿ”’
should_inherit_track_caller ๐Ÿ”’
Checks if the provided DefId is a method in a trait impl for a trait which has track_caller applied to the method prototype.