Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion crates/stackable-versioned-macros/src/codegen/module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,14 @@ impl Module {
),
}
}
_ => continue,
// NOTE (@NickLarsenNZ): We throw an error here so the developer isn't surprised when items they have
// defined in the module are no longer accessible (because they are not re-emitted).
disallowed_item => errors.push(
Error::custom(
"Item not allowed here. Please move it ouside of the versioned module",
)
.with_span(&disallowed_item),
),
};
}

Expand Down