pub fn build_system(
rawast: &RawAst,
env: Env,
) -> Result<(Env, Diagnostics), Diagnostics>Expand description
Build the system on env, which holds the data layer (build_data):
build’s second stage, its memory regions,
protection domains and channels resolved and validated, the channels’
ids allocated. Returns it and its warnings.
§Errors
A memory region, protection domain or channel declared twice, more protection domains than ids or a PD’s channels than its ids, a name that does not resolve, an IRQ claimed twice, a channel rule broken, a buffer region backing two channels.