Skip to content

Commit d9dde32

Browse files
committed
Fix tests
1 parent b19060c commit d9dde32

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

crates/cli-support/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ impl Bindgen {
121121
wasm_interface_types,
122122
encode_into: EncodeInto::Test,
123123
omit_default_module_path: true,
124-
allow_links: false,
124+
allow_links: true,
125125
}
126126
}
127127

crates/macro/ui-tests/link-to.stderr

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
11
error: `link_to!` does not support module paths.
2-
--> $DIR/link-to.rs:10:37
2+
--> ui-tests/link-to.rs:10:37
33
|
44
10 | wasm_bindgen::link_to!(module = "package/foo.js")
55
| ^^^^^^^^^^^^^^^^
66

77
error: `link_to!` does not support module paths.
8-
--> $DIR/link-to.rs:14:41
8+
--> ui-tests/link-to.rs:14:41
99
|
1010
14 | wasm_bindgen::link_to!(raw_module = "package/foo.js")
1111
| ^^^^^^^^^^^^^^^^
1212

13-
error: failed to read file `$WORKSPACE/target/tests/wasm-bindgen-macro/src/not-found.js`: No such file or directory (os error 2)
14-
--> $DIR/link-to.rs:18:37
13+
error: failed to read file `$WORKSPACE/target/tests/trybuild/wasm-bindgen-macro/src/not-found.js`: No such file or directory (os error 2)
14+
--> ui-tests/link-to.rs:18:37
1515
|
1616
18 | wasm_bindgen::link_to!(module = "/src/not-found.js")
1717
| ^^^^^^^^^^^^^^^^^^^
1818

1919
error: `link_to!` requires a module.
20-
--> $DIR/link-to.rs:22:5
20+
--> ui-tests/link-to.rs:22:5
2121
|
2222
22 | wasm_bindgen::link_to!()
2323
| ^^^^^^^^^^^^^^^^^^^^^^^^
2424
|
2525
= note: this error originates in the macro `wasm_bindgen::link_to` (in Nightly builds, run with -Z macro-backtrace for more info)
2626

2727
error: unused wasm_bindgen attribute
28-
--> $DIR/link-to.rs:28:9
28+
--> ui-tests/link-to.rs:28:9
2929
|
3030
28 | js_namespace = foo
3131
| ^^^^^^^^^^^^

0 commit comments

Comments
 (0)