Skip to main content

reexport_conflicts

Function reexport_conflicts 

Source
fn reexport_conflicts(
    content: &str,
    hand_written: &[HandWrittenFile],
    entries: &[ReexportEntry],
) -> Result<(), String>
Expand description

Refuse the re-exports of entries that can’t be written, all in one message: a name re-exported from two packages (a package exports one object under a name), and a name the package also binds at top level or exports, in content, the assembled wrappers, or in hand_written, its hand-written R files (#2205). The package’s own binding would hide the imported one inside its namespace, so export(name) would export it instead; an export alone repeats the one the re-export writes.

A hand-written file is read by wrapper_names too, so the scan sees what that sees in generated text; every name is the file’s.