We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61c8a4f commit ecd20bdCopy full SHA for ecd20bd
crates/stackable-versioned-macros/src/codegen/module.rs
@@ -108,7 +108,14 @@ impl Module {
108
),
109
}
110
111
- _ => continue,
+ // NOTE (@NickLarsenNZ): We throw an error here so the developer isn't surprised when items they have
112
+ // defined in the module are no longer accessible (because they are not re-emitted).
113
+ disallowed_item => errors.push(
114
+ Error::custom(
115
+ "Item not allowed here. Please move it ouside of the versioned module",
116
+ )
117
+ .with_span(&disallowed_item),
118
+ ),
119
};
120
121
0 commit comments