Module naked_functions

Source
Expand description

Checks validity of naked functions.

StructsΒ§

CheckInlineAssembly πŸ”’
CheckParameters πŸ”’

EnumsΒ§

ItemKind πŸ”’

FunctionsΒ§

check_asm πŸ”’
Checks that function body contains a single inline assembly block.
check_no_parameters_use πŸ”’
Checks that function parameters aren’t used in the function body.
check_no_patterns πŸ”’
Checks that parameters don’t use patterns. Mirrors the checks for function declarations.
typeck_naked_fn πŸ”’
Naked fns can only have trivial binding patterns in arguments, may not actually use those arguments, and the body must consist of just a single asm statement.