Skip to content

Commit f3db443

Browse files
feat(rust) add comment for broken tests fix
1 parent daf88e2 commit f3db443

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

crates/rust/tests/codegen.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ mod multiple_paths {
2424
#[allow(unused, reason = "testing codegen, not functionality")]
2525
mod inline_and_path {
2626
wit_bindgen::generate!({
27-
// Deliberately not `test:paths` like `multiple_paths` above: two
28-
// different worlds under one name collide on the native world marker.
27+
// A different package from `multiple_paths` above. Two different
28+
// worlds under one name corrupt each other's `component-type` sections
29+
// on wasm, and collide on the world marker symbol natively. So this
30+
// technically is a fix to the existing tests
2931
inline: r#"
3032
package test:inline-and-path-root;
3133
@@ -242,7 +244,7 @@ mod owning_method_chaining {
242244
mod borrowing_method_chaining {
243245
wit_bindgen::generate!({
244246
inline: r#"
245-
package test:method-chaining;
247+
package test:borrowing-method-chaining;
246248
world test {
247249
resource a {
248250
constructor();
@@ -253,9 +255,7 @@ mod borrowing_method_chaining {
253255
}
254256
"#,
255257
generate_all,
256-
chainable_methods: ["&all"],
257-
// `owning_method_chaining` above binds the same world; keep the markers apart.
258-
type_section_suffix: "-borrowing",
258+
chainable_methods: ["&all"]
259259
});
260260
}
261261

0 commit comments

Comments
 (0)