Skip to main content

check_r_code_uses_declared_names

Function check_r_code_uses_declared_names 

Source
fn check_r_code_uses_declared_names(
    attrs: &TraitMethodAttrs,
    renamed: &[RenamedParam],
    span: Span,
) -> Result<()>
Expand description

Refuse a method’s R code (r_entry, r_post_checks, r_on_exit, a defaults(...) value) that uses a parameter by the impl’s name where the wrapper’s formal has the declaration’s: R would find no such variable when the wrapper runs.