Skip to main content

name_error

Function name_error 

Source
pub fn name_error(
    c: &ConstDecl,
    prev_const: Option<&Ident>,
    prev_embed: Option<&Ident>,
    prev_asset: Option<&Ident>,
    prev_fn: Option<&Ident>,
    prev_type: Option<&Ident>,
) -> Option<CompileError>
Expand description

The name rule for constant c, given what its unit already declares under that name: an earlier constant is bynk.resolve.duplicate_const; an embed, an asset, a free function or a type is bynk.resolve.name_conflict (a constant is a value, in the same namespace as a free function). None when the name is free. One rule for the project pipeline (symbols::build_unit_table) and the single-file compile.