Closed Bug 1518382 Opened 5 years ago Closed 5 years ago

Permafail Tier 2 Rust error: Could not compile `js` after cannot find type `JSNativeWrapper` in this scope

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: RaulG, Unassigned)

References

Details

https://treeherder.mozilla.org/logviewer.html#?job_id=220414308&repo=mozilla-inbound

[task 2019-01-07T21:28:33.706Z] 6 | unsafe impl Sync for JSNativeWrapper {}
[task 2019-01-07T21:28:33.706Z] | ^^^^^^^^^^^^^^^ not found in this scope
[task 2019-01-07T21:28:33.706Z]
[task 2019-01-07T21:28:34.010Z] error[E0321]: cross-crate traits with a default impl, like std::marker::Sync, can only be implemented for a struct/enum type, not [type error]
[task 2019-01-07T21:28:34.010Z] --> /builds/worker/workspace/build/src/target/debug/build/js-5e857dd34586aa91/out/jsapi_debug.rs:6:1
[task 2019-01-07T21:28:34.010Z] |
[task 2019-01-07T21:28:34.010Z] 6 | unsafe impl Sync for JSNativeWrapper {}
[task 2019-01-07T21:28:34.010Z] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't implement cross-crate trait with a default impl for non-struct/enum type
[task 2019-01-07T21:28:34.010Z]
[task 2019-01-07T21:28:34.031Z] error: aborting due to 25 previous errors
[task 2019-01-07T21:28:34.031Z]
[task 2019-01-07T21:28:34.031Z] Some errors occurred: E0321, E0412, E0422.
[task 2019-01-07T21:28:34.031Z] For more information about an error, try rustc --explain E0321.
[task 2019-01-07T21:28:34.037Z] error: Could not compile js.
[task 2019-01-07T21:28:34.037Z]
[task 2019-01-07T21:28:34.037Z] Caused by:
[task 2019-01-07T21:28:34.037Z] process didn't exit successfully: rustc --crate-name js js/rust/src/lib.rs --color never --crate-type lib --emit=dep-info,link -C opt-level=1 -C debuginfo=2 -C debug-assertions=on --cfg 'feature="debugmozjs"' --cfg 'feature="mozjs_sys"' -C metadata=f9ebe6de6eb5836d -C extra-filename=-f9ebe6de6eb5836d --out-dir /builds/worker/workspace/build/src/target/debug/deps -C incremental=/builds/worker/workspace/build/src/target/debug/incremental -L dependency=/builds/worker/workspace/build/src/target/debug/deps --extern lazy_static=/builds/worker/workspace/build/src/target/debug/deps/liblazy_static-d540911ceed818b3.rlib --extern libc=/builds/worker/workspace/build/src/target/debug/deps/liblibc-0d24cab1653a8b95.rlib --extern log=/builds/worker/workspace/build/src/target/debug/deps/liblog-e8b412dfd9f1c179.rlib --extern mozjs_sys=/builds/worker/workspace/build/src/target/debug/deps/libmozjs_sys-292e6d64d5a1b42c.rlib --extern num_traits=/builds/worker/workspace/build/src/target/debug/deps/libnum_traits-ce07266b8b3b0463.rlib -L native=/builds/worker/workspace/build/src/target/debug/build/js-5e857dd34586aa91/out/lib -l static=jsglue -L native=/builds/worker/workspace/build/src/target/debug/build/mozjs_sys-a9c2b670451c4338/out/js/src/build -L native=/builds/worker/workspace/build/src/target/debug/build/mozjs_sys-a9c2b670451c4338/out/js/src -L native=/builds/worker/workspace/build/src/target/debug/build/mozjs_sys-a9c2b670451c4338/out/x86_64-unknown-linux-gnu/debug -L native=/builds/worker/workspace/build/src/target/debug/build/mozjs_sys-a9c2b670451c4338/out/dist/bin -L native=/usr/lib/x86_64-linux-gnu (exit code: 1)
[task 2019-01-07T21:28:34.037Z] warning: build failed, waiting for other jobs to finish...
[task 2019-01-07T21:28:34.749Z] error[E0321]: cross-crate traits with a default impl, like std::marker::Sync, can only be implemented for a struct/enum type, not [type error]
[task 2019-01-07T21:28:34.749Z] --> /builds/worker/workspace/build/src/target/debug/build/js-905be299e5310298/out/jsapi_debug.rs:6:1
[task 2019-01-07T21:28:34.749Z] |
[task 2019-01-07T21:28:34.749Z] 6 | unsafe impl Sync for JSNativeWrapper {}
[task 2019-01-07T21:28:34.749Z] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't implement cross-crate trait with a default impl for non-struct/enum type
[task 2019-01-07T21:28:34.750Z]
[task 2019-01-07T21:28:34.784Z] error: aborting due to 25 previous errors
[task 2019-01-07T21:28:34.784Z]
[task 2019-01-07T21:28:34.784Z] Some errors occurred: E0321, E0412, E0422.
[task 2019-01-07T21:28:34.784Z] For more information about an error, try rustc --explain E0321.
[task 2019-01-07T21:28:34.805Z] error: Could not compile js.
[task 2019-01-07T21:28:34.805Z]
[task 2019-01-07T21:28:34.805Z] Caused by:
[task 2019-01-07T21:28:34.805Z] process didn't exit successfully: rustc --crate-name js js/rust/src/lib.rs --color never --emit=dep-info,link -C debuginfo=2 --test --cfg 'feature="debugmozjs"' --cfg 'feature="mozjs_sys"' -C metadata=8b0dacaf81f2a176 -C extra-filename=-8b0dacaf81f2a176 --out-dir /builds/worker/workspace/build/src/target/debug/deps -C incremental=/builds/worker/workspace/build/src/target/debug/incremental -L dependency=/builds/worker/workspace/build/src/target/debug/deps --extern lazy_static=/builds/worker/workspace/build/src/target/debug/deps/liblazy_static-d540911ceed818b3.rlib --extern libc=/builds/worker/workspace/build/src/target/debug/deps/liblibc-0d24cab1653a8b95.rlib --extern log=/builds/worker/workspace/build/src/target/debug/deps/liblog-e8b412dfd9f1c179.rlib --extern mozjs_sys=/builds/worker/workspace/build/src/target/debug/deps/libmozjs_sys-292e6d64d5a1b42c.rlib --extern num_traits=/builds/worker/workspace/build/src/target/debug/deps/libnum_traits-ce07266b8b3b0463.rlib -L native=/builds/worker/workspace/build/src/target/debug/build/js-905be299e5310298/out/lib -l static=jsglue -L native=/builds/worker/workspace/build/src/target/debug/build/mozjs_sys-a9c2b670451c4338/out/js/src/build -L native=/builds/worker/workspace/build/src/target/debug/build/mozjs_sys-a9c2b670451c4338/out/js/src -L native=/builds/worker/workspace/build/src/target/debug/build/mozjs_sys-a9c2b670451c4338/out/x86_64-unknown-linux-gnu/debug -L native=/builds/worker/workspace/build/src/target/debug/build/mozjs_sys-a9c2b670451c4338/out/dist/bin -L native=/usr/lib/x86_64-linux-gnu (exit code: 1)
[taskcluster 2019-01-07 21:28:35.731Z] === Task Finished ===

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.