leo_passes::static_analysis::future_checker

Function future_check_function

Source
pub fn future_check_function(
    function: &Function,
    type_table: &TypeTable,
    handler: &Handler,
)
Expand description

Error if futures are used improperly.

This prevents, for instance, a bare call which creates an unused future.