Skip to main content

single_file_embed_errors

Function single_file_embed_errors 

Source
pub fn single_file_embed_errors(
    items: &[CommonsItem],
    build: bool,
) -> Vec<CompileError>
Expand description

The single-file compile’s embed diagnostics, in declaration order: each embed’s path check and name rule (name_error, against the file’s own assets, functions, types and earlier embeds), and, when build is set, its refusal (needs_project_error). Placement needs no check here: a single file is always a commons (an adapter is a parse error).