[INFO] fetching crate mujs 0.0.3... [INFO] testing mujs-0.0.3 against master#2fe50cd72c476ebacdedb14893e9632b4de961c2 for pr-116088-2 [INFO] extracting crate mujs 0.0.3 into /workspace/builds/worker-3-tc1/source [INFO] validating manifest of crates.io crate mujs 0.0.3 on toolchain 2fe50cd72c476ebacdedb14893e9632b4de961c2 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2fe50cd72c476ebacdedb14893e9632b4de961c2" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate mujs 0.0.3 [INFO] finished tweaking crates.io crate mujs 0.0.3 [INFO] tweaked toml for crates.io crate mujs 0.0.3 written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2fe50cd72c476ebacdedb14893e9632b4de961c2" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2fe50cd72c476ebacdedb14893e9632b4de961c2" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded bitflags v0.9.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+2fe50cd72c476ebacdedb14893e9632b4de961c2" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 722c0b50a28bbcb2ecf372c25f8d6a2738a54972f28421c99ba7bcd4866847aa [INFO] running `Command { std: "docker" "start" "-a" "722c0b50a28bbcb2ecf372c25f8d6a2738a54972f28421c99ba7bcd4866847aa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "722c0b50a28bbcb2ecf372c25f8d6a2738a54972f28421c99ba7bcd4866847aa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "722c0b50a28bbcb2ecf372c25f8d6a2738a54972f28421c99ba7bcd4866847aa", kill_on_drop: false }` [INFO] [stdout] 722c0b50a28bbcb2ecf372c25f8d6a2738a54972f28421c99ba7bcd4866847aa [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+2fe50cd72c476ebacdedb14893e9632b4de961c2" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7cee3f23c3d52456b7a0012a25e965d0d9fa0b062dd6ff294ea3411c0629a879 [INFO] running `Command { std: "docker" "start" "-a" "7cee3f23c3d52456b7a0012a25e965d0d9fa0b062dd6ff294ea3411c0629a879", kill_on_drop: false }` [INFO] [stderr] Compiling gcc v0.3.55 [INFO] [stderr] Compiling bitflags v0.9.1 [INFO] [stderr] Compiling mujs v0.0.3 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated function `gcc::compile_library`: crate has been renamed to `cc`, the `gcc` name is not maintained [INFO] [stdout] --> build.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | gcc::compile_library("libmujs.a", &["mujs/one.c"]); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:4: [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c: In function 'findlocal': [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:9:22: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 9 | #define JF js_State *J, js_Function *F [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:166:22: note: in expansion of macro 'JF' [INFO] [stderr] warning: mujs@0.0.3: 166 | static int findlocal(JF, const char *name) [INFO] [stderr] warning: mujs@0.0.3: | ^~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c: In function 'here': [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:9:22: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 9 | #define JF js_State *J, js_Function *F [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:228:17: note: in expansion of macro 'JF' [INFO] [stderr] warning: mujs@0.0.3: 228 | static int here(JF) [INFO] [stderr] warning: mujs@0.0.3: | ^~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c: In function 'checkdup': [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:9:38: warning: unused parameter 'F' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 9 | #define JF js_State *J, js_Function *F [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:301:22: note: in expansion of macro 'JF' [INFO] [stderr] warning: mujs@0.0.3: 301 | static void checkdup(JF, js_Ast *list, js_Ast *end) [INFO] [stderr] warning: mujs@0.0.3: | ^~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c: In function 'ceval': [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:509:31: warning: unused parameter 'fun' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 509 | static void ceval(JF, js_Ast *fun, js_Ast *args) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~^~~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c: In function 'addjump': [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:9:38: warning: unused parameter 'F' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 9 | #define JF js_State *J, js_Function *F [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:730:21: note: in expansion of macro 'JF' [INFO] [stderr] warning: mujs@0.0.3: 730 | static void addjump(JF, enum js_AstType type, js_Ast *target, int inst) [INFO] [stderr] warning: mujs@0.0.3: | ^~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c: In function 'breaktarget': [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:9:22: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 9 | #define JF js_State *J, js_Function *F [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:772:28: note: in expansion of macro 'JF' [INFO] [stderr] warning: mujs@0.0.3: 772 | static js_Ast *breaktarget(JF, js_Ast *node, const char *label) [INFO] [stderr] warning: mujs@0.0.3: | ^~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:9:38: warning: unused parameter 'F' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 9 | #define JF js_State *J, js_Function *F [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:772:28: note: in expansion of macro 'JF' [INFO] [stderr] warning: mujs@0.0.3: 772 | static js_Ast *breaktarget(JF, js_Ast *node, const char *label) [INFO] [stderr] warning: mujs@0.0.3: | ^~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c: In function 'continuetarget': [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:9:22: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 9 | #define JF js_State *J, js_Function *F [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:789:31: note: in expansion of macro 'JF' [INFO] [stderr] warning: mujs@0.0.3: 789 | static js_Ast *continuetarget(JF, js_Ast *node, const char *label) [INFO] [stderr] warning: mujs@0.0.3: | ^~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:9:38: warning: unused parameter 'F' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 9 | #define JF js_State *J, js_Function *F [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:789:31: note: in expansion of macro 'JF' [INFO] [stderr] warning: mujs@0.0.3: 789 | static js_Ast *continuetarget(JF, js_Ast *node, const char *label) [INFO] [stderr] warning: mujs@0.0.3: | ^~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c: In function 'returntarget': [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:9:22: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 9 | #define JF js_State *J, js_Function *F [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:805:29: note: in expansion of macro 'JF' [INFO] [stderr] warning: mujs@0.0.3: 805 | static js_Ast *returntarget(JF, js_Ast *node) [INFO] [stderr] warning: mujs@0.0.3: | ^~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:9:38: warning: unused parameter 'F' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 9 | #define JF js_State *J, js_Function *F [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:805:29: note: in expansion of macro 'JF' [INFO] [stderr] warning: mujs@0.0.3: 805 | static js_Ast *returntarget(JF, js_Ast *node) [INFO] [stderr] warning: mujs@0.0.3: | ^~ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:5: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsdate.c: In function 'DaylightSavingTA': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsdate.c:44:39: warning: unused parameter 't' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 44 | static double DaylightSavingTA(double t) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:6: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsdtoa.c: In function 'k_comp': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsdtoa.c:378:41: warning: unused parameter 'gamma' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 378 | static int k_comp(int e, int alpha, int gamma) { [INFO] [stderr] warning: mujs@0.0.3: | ~~~~^~~~~ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:7: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsdump.c: In function 'jsP_dumpsyntax': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsdump.c:624:31: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 624 | void jsP_dumpsyntax(js_State *J, js_Ast *prog) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jsdump.c: In function 'jsP_dumplist': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsdump.c:705:29: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 705 | void jsP_dumplist(js_State *J, js_Ast *prog) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:16: [INFO] [stderr] warning: mujs@0.0.3: mujs/json.c: In function 'fmtobject': [INFO] [stderr] warning: mujs@0.0.3: mujs/json.c:209:63: warning: unused parameter 'obj' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 209 | static void fmtobject(js_State *J, js_Buffer **sb, js_Object *obj, const char *gap, int level) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~~^~~ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:18: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsproperty.c: In function 'jsV_getownproperty': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsproperty.c:165:43: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 165 | js_Property *jsV_getownproperty(js_State *J, js_Object *obj, const char *name) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jsproperty.c: In function 'jsV_getpropertyx': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsproperty.c:170:41: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 170 | js_Property *jsV_getpropertyx(js_State *J, js_Object *obj, const char *name, int *own) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jsproperty.c: In function 'jsV_getproperty': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsproperty.c:183:40: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 183 | js_Property *jsV_getproperty(js_State *J, js_Object *obj, const char *name) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jsproperty.c: In function 'jsV_getenumproperty': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsproperty.c:194:51: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 194 | static js_Property *jsV_getenumproperty(js_State *J, js_Object *obj, const char *name) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:20: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsrun.c: In function 'js_insert': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsrun.c:350:33: warning: unused parameter 'idx' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 350 | void js_insert(js_State *J, int idx) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~^~~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jsrun.c: In function 'js_isarrayindex': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsrun.c:437:31: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 437 | int js_isarrayindex(js_State *J, const char *p, int *idx) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:21: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstate.c: In function 'js_defaultalloc': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstate.c:10:36: warning: unused parameter 'actx' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 10 | static void *js_defaultalloc(void *actx, void *ptr, int size) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~^~~~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstate.c: In function 'js_defaultreport': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstate.c:19:40: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 19 | static void js_defaultreport(js_State *J, const char *message) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:22: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstring.c: In function 'js_runeat': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstring.c:14:25: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 14 | int js_runeat(js_State *J, const char *s, int i) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:23: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsvalue.c: In function 'jsV_toboolean': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsvalue.c:116:29: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 116 | int jsV_toboolean(js_State *J, js_Value *v) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jsvalue.c: At top level: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsvalue.c:131:27: warning: argument 1 of type 'char *' declared as a pointer [-Warray-parameter=] [INFO] [stderr] warning: mujs@0.0.3: 131 | const char *js_itoa(char *out, int v) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~^~~ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/jsarray.c:2, [INFO] [stderr] warning: mujs@0.0.3: from mujs/one.c:1: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsvalue.h:157:26: note: previously declared as an array 'char[32]' [INFO] [stderr] warning: mujs@0.0.3: 157 | const char *js_itoa(char buf[32], int a); [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~^~~~~~~ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:23: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsvalue.c: In function 'jsV_stringtonumber': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsvalue.c:183:37: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 183 | double jsV_stringtonumber(js_State *J, const char *s) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jsvalue.c: In function 'jsV_numbertostring': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsvalue.c:227:42: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 227 | const char *jsV_numbertostring(js_State *J, char buf[32], double f) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:24: [INFO] [stderr] warning: mujs@0.0.3: mujs/regexp.c: In function 'default_alloc': [INFO] [stderr] warning: mujs@0.0.3: mujs/regexp.c:896:34: warning: unused parameter 'ctx' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 896 | static void *default_alloc(void *ctx, void *p, int n) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~^~~ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:22: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstring.c: In function 'Sp_replace_regexp': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstring.c:424:41: warning: this statement may fall through [-Wimplicit-fallthrough=] [INFO] [stderr] warning: mujs@0.0.3: 424 | case 0: --r; /* end of string; back up and fall through */ [INFO] [stderr] warning: mujs@0.0.3: | ^~~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstring.c:425:33: note: here [INFO] [stderr] warning: mujs@0.0.3: 425 | case '$': js_putc(J, &sb, '$'); break; [INFO] [stderr] warning: mujs@0.0.3: | ^~~~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstring.c: In function 'Sp_replace_string': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstring.c:520:41: warning: this statement may fall through [-Wimplicit-fallthrough=] [INFO] [stderr] warning: mujs@0.0.3: 520 | case 0: --r; /* end of string; back up and fall through */ [INFO] [stderr] warning: mujs@0.0.3: | ^~~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstring.c:521:33: note: here [INFO] [stderr] warning: mujs@0.0.3: 521 | case '$': js_putc(J, &sb, '$'); break; [INFO] [stderr] warning: mujs@0.0.3: | ^~~~ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:24: [INFO] [stderr] warning: mujs@0.0.3: mujs/regexp.c: In function 'nextrune': [INFO] [stderr] warning: mujs@0.0.3: mujs/regexp.c:114:25: warning: this statement may fall through [-Wimplicit-fallthrough=] [INFO] [stderr] warning: mujs@0.0.3: 114 | case 0: die(g, "unterminated escape sequence"); [INFO] [stderr] warning: mujs@0.0.3: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stderr] warning: mujs@0.0.3: mujs/regexp.c:115:17: note: here [INFO] [stderr] warning: mujs@0.0.3: 115 | case 'f': g->yychar = '\f'; return 0; [INFO] [stderr] warning: mujs@0.0.3: | ^~~~ [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:141:1 [INFO] [stdout] | [INFO] [stdout] 141 | / bitflags! { [INFO] [stdout] 142 | | pub struct PropertyAttributes: c_int { [INFO] [stdout] 143 | | /// Read only property attribute [INFO] [stdout] 144 | | /// [INFO] [stdout] ... | [INFO] [stdout] 164 | | } [INFO] [stdout] 165 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:141:1 [INFO] [stdout] | [INFO] [stdout] 141 | / bitflags! { [INFO] [stdout] 142 | | pub struct PropertyAttributes: c_int { [INFO] [stdout] 143 | | /// Read only property attribute [INFO] [stdout] 144 | | /// [INFO] [stdout] ... | [INFO] [stdout] 164 | | } [INFO] [stdout] 165 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:141:1 [INFO] [stdout] | [INFO] [stdout] 141 | / bitflags! { [INFO] [stdout] 142 | | pub struct PropertyAttributes: c_int { [INFO] [stdout] 143 | | /// Read only property attribute [INFO] [stdout] 144 | | /// [INFO] [stdout] ... | [INFO] [stdout] 164 | | } [INFO] [stdout] 165 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:167:1 [INFO] [stdout] | [INFO] [stdout] 167 | / bitflags! { [INFO] [stdout] 168 | | pub struct StateFlags: c_int { [INFO] [stdout] 169 | | /// Compile and run code using ES5 strict mode. [INFO] [stdout] 170 | | const JS_STRICT = 1; [INFO] [stdout] 171 | | } [INFO] [stdout] 172 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:167:1 [INFO] [stdout] | [INFO] [stdout] 167 | / bitflags! { [INFO] [stdout] 168 | | pub struct StateFlags: c_int { [INFO] [stdout] 169 | | /// Compile and run code using ES5 strict mode. [INFO] [stdout] 170 | | const JS_STRICT = 1; [INFO] [stdout] 171 | | } [INFO] [stdout] 172 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:167:1 [INFO] [stdout] | [INFO] [stdout] 167 | / bitflags! { [INFO] [stdout] 168 | | pub struct StateFlags: c_int { [INFO] [stdout] 169 | | /// Compile and run code using ES5 strict mode. [INFO] [stdout] 170 | | const JS_STRICT = 1; [INFO] [stdout] 171 | | } [INFO] [stdout] 172 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:174:1 [INFO] [stdout] | [INFO] [stdout] 174 | / bitflags! { [INFO] [stdout] 175 | | /// Regular expression (RegExp) flags [INFO] [stdout] 176 | | pub struct RegExpFlags: c_int { [INFO] [stdout] 177 | | /// Global match [INFO] [stdout] ... | [INFO] [stdout] 190 | | } [INFO] [stdout] 191 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:174:1 [INFO] [stdout] | [INFO] [stdout] 174 | / bitflags! { [INFO] [stdout] 175 | | /// Regular expression (RegExp) flags [INFO] [stdout] 176 | | pub struct RegExpFlags: c_int { [INFO] [stdout] 177 | | /// Global match [INFO] [stdout] ... | [INFO] [stdout] 190 | | } [INFO] [stdout] 191 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:174:1 [INFO] [stdout] | [INFO] [stdout] 174 | / bitflags! { [INFO] [stdout] 175 | | /// Regular expression (RegExp) flags [INFO] [stdout] 176 | | pub struct RegExpFlags: c_int { [INFO] [stdout] 177 | | /// Global match [INFO] [stdout] ... | [INFO] [stdout] 190 | | } [INFO] [stdout] 191 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: attribute should be applied to an `extern` block with non-Rust ABI [INFO] [stdout] --> src/lib.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | #[link(name = "mujs", kind="static")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 29 | use std::ffi::{CStr, CString}; [INFO] [stdout] | ------------------------------ not an `extern` block [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: attribute should be applied to an `extern` block with non-Rust ABI [INFO] [stdout] --> src/lib.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | #[link(name = "mujs", kind="static")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 29 | use std::ffi::{CStr, CString}; [INFO] [stdout] | ---- not an `extern` block [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: attribute should be applied to an `extern` block with non-Rust ABI [INFO] [stdout] --> src/lib.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | #[link(name = "mujs", kind="static")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 29 | use std::ffi::{CStr, CString}; [INFO] [stdout] | ------- not an `extern` block [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:831:28 [INFO] [stdout] | [INFO] [stdout] 831 | let func: &mut Box = unsafe { std::mem::transmute(cb_ptr) }; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 831 | let func: &mut Box = unsafe { std::mem::transmute(cb_ptr) }; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:860:25 [INFO] [stdout] | [INFO] [stdout] 860 | let cb: Box> = Box::new(Box::new(func)); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 860 | let cb: Box> = Box::new(Box::new(func)); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `js_call` is never used [INFO] [stdout] --> src/lib.rs:62:8 [INFO] [stdout] | [INFO] [stdout] 62 | fn js_call(J: *const c_void, n: c_int) -> c_int; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:295:56 [INFO] [stdout] | [INFO] [stdout] 295 | ... filename.to_cstr().unwrap().as_ptr(), [INFO] [stdout] | --------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:296:54 [INFO] [stdout] | [INFO] [stdout] 296 | ... source.to_cstr().unwrap().as_ptr()) [INFO] [stdout] | ------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:394:80 [INFO] [stdout] | [INFO] [stdout] 394 | match unsafe {js_dostring((*self.ptr).state, source.to_cstr().unwrap().as_ptr()) } { [INFO] [stdout] | ------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:425:76 [INFO] [stdout] | [INFO] [stdout] 425 | unsafe { js_newerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()) }; [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:430:80 [INFO] [stdout] | [INFO] [stdout] 430 | unsafe { js_newevalerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:435:81 [INFO] [stdout] | [INFO] [stdout] 435 | unsafe { js_newrangeerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:440:85 [INFO] [stdout] | [INFO] [stdout] 440 | unsafe { js_newreferenceerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:445:82 [INFO] [stdout] | [INFO] [stdout] 445 | unsafe { js_newsyntaxerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:450:80 [INFO] [stdout] | [INFO] [stdout] 450 | unsafe { js_newtypeerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:455:79 [INFO] [stdout] | [INFO] [stdout] 455 | unsafe { js_newurierror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:461:71 [INFO] [stdout] | [INFO] [stdout] 461 | js_newerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()); [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:469:75 [INFO] [stdout] | [INFO] [stdout] 469 | js_newevalerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()); [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:477:76 [INFO] [stdout] | [INFO] [stdout] 477 | js_newrangeerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()); [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:485:80 [INFO] [stdout] | [INFO] [stdout] 485 | js_newreferenceerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()); [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:493:77 [INFO] [stdout] | [INFO] [stdout] 493 | js_newsyntaxerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()); [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:501:75 [INFO] [stdout] | [INFO] [stdout] 501 | js_newtypeerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()); [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:509:74 [INFO] [stdout] | [INFO] [stdout] 509 | js_newurierror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()); [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:622:75 [INFO] [stdout] | [INFO] [stdout] 622 | unsafe { js_newstring((*self.ptr).state, value.to_cstr().unwrap().as_ptr()) }; [INFO] [stdout] | ------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:648:77 [INFO] [stdout] | [INFO] [stdout] 648 | unsafe { js_newregexp((*self.ptr).state, pattern.to_cstr().unwrap().as_ptr(), flags.bits) }; [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:684:76 [INFO] [stdout] | [INFO] [stdout] 684 | unsafe { js_pushstring((*self.ptr).state, value.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | ------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:704:87 [INFO] [stdout] | [INFO] [stdout] 704 | match unsafe { js_hasproperty((*self.ptr).state, idx, name.to_cstr().unwrap().as_ptr()) } { [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:712:81 [INFO] [stdout] | [INFO] [stdout] 712 | unsafe { js_setproperty((*self.ptr).state, idx, name.to_cstr().unwrap().as_ptr()) }; [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:717:81 [INFO] [stdout] | [INFO] [stdout] 717 | unsafe { js_getproperty((*self.ptr).state, idx, name.to_cstr().unwrap().as_ptr()) }; [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:735:81 [INFO] [stdout] | [INFO] [stdout] 735 | unsafe { js_defproperty((*self.ptr).state, idx, name.to_cstr().unwrap().as_ptr(), attrs.bits) }; [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:744:81 [INFO] [stdout] | [INFO] [stdout] 744 | unsafe { js_defaccessor((*self.ptr).state, idx, name.to_cstr().unwrap().as_ptr(), attrs.bits) }; [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:749:81 [INFO] [stdout] | [INFO] [stdout] 749 | unsafe { js_delproperty((*self.ptr).state, idx, name.to_cstr().unwrap().as_ptr()) }; [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:807:74 [INFO] [stdout] | [INFO] [stdout] 807 | unsafe { js_getglobal((*self.ptr).state, name.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:812:74 [INFO] [stdout] | [INFO] [stdout] 812 | unsafe { js_setglobal((*self.ptr).state, name.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:817:74 [INFO] [stdout] | [INFO] [stdout] 817 | unsafe { js_defglobal((*self.ptr).state, name.to_cstr().unwrap().as_ptr(), attrs.bits) } [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:827:67 [INFO] [stdout] | [INFO] [stdout] 827 | js_getproperty(js, -1, CLOSURE_TAG.to_cstr().unwrap().as_ptr()); [INFO] [stdout] | ------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:828:66 [INFO] [stdout] | [INFO] [stdout] 828 | js_touserdata(js, -1, CLOSURE_TAG.to_cstr().unwrap().as_ptr()) [INFO] [stdout] | ------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:864:53 [INFO] [stdout] | [INFO] [stdout] 864 | ... name.to_cstr().unwrap().as_ptr(),length); [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:866:77 [INFO] [stdout] | [INFO] [stdout] 866 | js_newuserdata((*self.ptr).state,CLOSURE_TAG.to_cstr().unwrap().as_ptr(), [INFO] [stdout] | ------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:868:82 [INFO] [stdout] | [INFO] [stdout] 868 | js_defproperty((*self.ptr).state, -2, CLOSURE_TAG.to_cstr().unwrap().as_ptr(), [INFO] [stdout] | ------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:976:76 [INFO] [stdout] | [INFO] [stdout] 976 | unsafe { js_getregistry((*self.ptr).state, name.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:981:76 [INFO] [stdout] | [INFO] [stdout] 981 | unsafe { js_setregistry((*self.ptr).state, name.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:986:76 [INFO] [stdout] | [INFO] [stdout] 986 | unsafe { js_delregistry((*self.ptr).state, name.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 52 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.94s [INFO] running `Command { std: "docker" "inspect" "7cee3f23c3d52456b7a0012a25e965d0d9fa0b062dd6ff294ea3411c0629a879", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7cee3f23c3d52456b7a0012a25e965d0d9fa0b062dd6ff294ea3411c0629a879", kill_on_drop: false }` [INFO] [stdout] 7cee3f23c3d52456b7a0012a25e965d0d9fa0b062dd6ff294ea3411c0629a879 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+2fe50cd72c476ebacdedb14893e9632b4de961c2" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 41c905d2168aa8bd510af79a651a8376d3638fb6e45fea3304cd55b37fde576c [INFO] running `Command { std: "docker" "start" "-a" "41c905d2168aa8bd510af79a651a8376d3638fb6e45fea3304cd55b37fde576c", kill_on_drop: false }` [INFO] [stdout] warning: use of deprecated function `gcc::compile_library`: crate has been renamed to `cc`, the `gcc` name is not maintained [INFO] [stdout] --> build.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | gcc::compile_library("libmujs.a", &["mujs/one.c"]); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:4: [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c: In function 'findlocal': [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:9:22: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 9 | #define JF js_State *J, js_Function *F [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:166:22: note: in expansion of macro 'JF' [INFO] [stderr] warning: mujs@0.0.3: 166 | static int findlocal(JF, const char *name) [INFO] [stderr] warning: mujs@0.0.3: | ^~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c: In function 'here': [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:9:22: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 9 | #define JF js_State *J, js_Function *F [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:228:17: note: in expansion of macro 'JF' [INFO] [stderr] warning: mujs@0.0.3: 228 | static int here(JF) [INFO] [stderr] warning: mujs@0.0.3: | ^~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c: In function 'checkdup': [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:9:38: warning: unused parameter 'F' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 9 | #define JF js_State *J, js_Function *F [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:301:22: note: in expansion of macro 'JF' [INFO] [stderr] warning: mujs@0.0.3: 301 | static void checkdup(JF, js_Ast *list, js_Ast *end) [INFO] [stderr] warning: mujs@0.0.3: | ^~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c: In function 'ceval': [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:509:31: warning: unused parameter 'fun' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 509 | static void ceval(JF, js_Ast *fun, js_Ast *args) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~^~~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c: In function 'addjump': [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:9:38: warning: unused parameter 'F' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 9 | #define JF js_State *J, js_Function *F [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:730:21: note: in expansion of macro 'JF' [INFO] [stderr] warning: mujs@0.0.3: 730 | static void addjump(JF, enum js_AstType type, js_Ast *target, int inst) [INFO] [stderr] warning: mujs@0.0.3: | ^~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c: In function 'breaktarget': [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:9:22: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 9 | #define JF js_State *J, js_Function *F [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:772:28: note: in expansion of macro 'JF' [INFO] [stderr] warning: mujs@0.0.3: 772 | static js_Ast *breaktarget(JF, js_Ast *node, const char *label) [INFO] [stderr] warning: mujs@0.0.3: | ^~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:9:38: warning: unused parameter 'F' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 9 | #define JF js_State *J, js_Function *F [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:772:28: note: in expansion of macro 'JF' [INFO] [stderr] warning: mujs@0.0.3: 772 | static js_Ast *breaktarget(JF, js_Ast *node, const char *label) [INFO] [stderr] warning: mujs@0.0.3: | ^~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c: In function 'continuetarget': [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:9:22: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 9 | #define JF js_State *J, js_Function *F [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:789:31: note: in expansion of macro 'JF' [INFO] [stderr] warning: mujs@0.0.3: 789 | static js_Ast *continuetarget(JF, js_Ast *node, const char *label) [INFO] [stderr] warning: mujs@0.0.3: | ^~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:9:38: warning: unused parameter 'F' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 9 | #define JF js_State *J, js_Function *F [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:789:31: note: in expansion of macro 'JF' [INFO] [stderr] warning: mujs@0.0.3: 789 | static js_Ast *continuetarget(JF, js_Ast *node, const char *label) [INFO] [stderr] warning: mujs@0.0.3: | ^~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c: In function 'returntarget': [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:9:22: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 9 | #define JF js_State *J, js_Function *F [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:805:29: note: in expansion of macro 'JF' [INFO] [stderr] warning: mujs@0.0.3: 805 | static js_Ast *returntarget(JF, js_Ast *node) [INFO] [stderr] warning: mujs@0.0.3: | ^~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:9:38: warning: unused parameter 'F' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 9 | #define JF js_State *J, js_Function *F [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:805:29: note: in expansion of macro 'JF' [INFO] [stderr] warning: mujs@0.0.3: 805 | static js_Ast *returntarget(JF, js_Ast *node) [INFO] [stderr] warning: mujs@0.0.3: | ^~ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:5: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsdate.c: In function 'DaylightSavingTA': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsdate.c:44:39: warning: unused parameter 't' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 44 | static double DaylightSavingTA(double t) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:6: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsdtoa.c: In function 'k_comp': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsdtoa.c:378:41: warning: unused parameter 'gamma' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 378 | static int k_comp(int e, int alpha, int gamma) { [INFO] [stderr] warning: mujs@0.0.3: | ~~~~^~~~~ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:7: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsdump.c: In function 'jsP_dumpsyntax': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsdump.c:624:31: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 624 | void jsP_dumpsyntax(js_State *J, js_Ast *prog) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jsdump.c: In function 'jsP_dumplist': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsdump.c:705:29: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 705 | void jsP_dumplist(js_State *J, js_Ast *prog) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:16: [INFO] [stderr] warning: mujs@0.0.3: mujs/json.c: In function 'fmtobject': [INFO] [stderr] warning: mujs@0.0.3: mujs/json.c:209:63: warning: unused parameter 'obj' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 209 | static void fmtobject(js_State *J, js_Buffer **sb, js_Object *obj, const char *gap, int level) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~~^~~ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:18: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsproperty.c: In function 'jsV_getownproperty': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsproperty.c:165:43: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 165 | js_Property *jsV_getownproperty(js_State *J, js_Object *obj, const char *name) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jsproperty.c: In function 'jsV_getpropertyx': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsproperty.c:170:41: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 170 | js_Property *jsV_getpropertyx(js_State *J, js_Object *obj, const char *name, int *own) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jsproperty.c: In function 'jsV_getproperty': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsproperty.c:183:40: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 183 | js_Property *jsV_getproperty(js_State *J, js_Object *obj, const char *name) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jsproperty.c: In function 'jsV_getenumproperty': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsproperty.c:194:51: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 194 | static js_Property *jsV_getenumproperty(js_State *J, js_Object *obj, const char *name) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:20: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsrun.c: In function 'js_insert': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsrun.c:350:33: warning: unused parameter 'idx' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 350 | void js_insert(js_State *J, int idx) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~^~~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jsrun.c: In function 'js_isarrayindex': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsrun.c:437:31: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 437 | int js_isarrayindex(js_State *J, const char *p, int *idx) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:21: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstate.c: In function 'js_defaultalloc': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstate.c:10:36: warning: unused parameter 'actx' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 10 | static void *js_defaultalloc(void *actx, void *ptr, int size) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~^~~~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstate.c: In function 'js_defaultreport': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstate.c:19:40: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 19 | static void js_defaultreport(js_State *J, const char *message) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:22: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstring.c: In function 'js_runeat': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstring.c:14:25: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 14 | int js_runeat(js_State *J, const char *s, int i) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:23: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsvalue.c: In function 'jsV_toboolean': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsvalue.c:116:29: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 116 | int jsV_toboolean(js_State *J, js_Value *v) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jsvalue.c: At top level: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsvalue.c:131:27: warning: argument 1 of type 'char *' declared as a pointer [-Warray-parameter=] [INFO] [stderr] warning: mujs@0.0.3: 131 | const char *js_itoa(char *out, int v) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~^~~ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/jsarray.c:2, [INFO] [stderr] warning: mujs@0.0.3: from mujs/one.c:1: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsvalue.h:157:26: note: previously declared as an array 'char[32]' [INFO] [stderr] warning: mujs@0.0.3: 157 | const char *js_itoa(char buf[32], int a); [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~^~~~~~~ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:23: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsvalue.c: In function 'jsV_stringtonumber': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsvalue.c:183:37: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 183 | double jsV_stringtonumber(js_State *J, const char *s) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jsvalue.c: In function 'jsV_numbertostring': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsvalue.c:227:42: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 227 | const char *jsV_numbertostring(js_State *J, char buf[32], double f) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:24: [INFO] [stderr] warning: mujs@0.0.3: mujs/regexp.c: In function 'default_alloc': [INFO] [stderr] warning: mujs@0.0.3: mujs/regexp.c:896:34: warning: unused parameter 'ctx' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 896 | static void *default_alloc(void *ctx, void *p, int n) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~^~~ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:22: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstring.c: In function 'Sp_replace_regexp': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstring.c:424:41: warning: this statement may fall through [-Wimplicit-fallthrough=] [INFO] [stderr] warning: mujs@0.0.3: 424 | case 0: --r; /* end of string; back up and fall through */ [INFO] [stderr] warning: mujs@0.0.3: | ^~~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstring.c:425:33: note: here [INFO] [stderr] warning: mujs@0.0.3: 425 | case '$': js_putc(J, &sb, '$'); break; [INFO] [stderr] warning: mujs@0.0.3: | ^~~~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstring.c: In function 'Sp_replace_string': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstring.c:520:41: warning: this statement may fall through [-Wimplicit-fallthrough=] [INFO] [stderr] warning: mujs@0.0.3: 520 | case 0: --r; /* end of string; back up and fall through */ [INFO] [stderr] warning: mujs@0.0.3: | ^~~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstring.c:521:33: note: here [INFO] [stderr] warning: mujs@0.0.3: 521 | case '$': js_putc(J, &sb, '$'); break; [INFO] [stderr] warning: mujs@0.0.3: | ^~~~ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:24: [INFO] [stderr] warning: mujs@0.0.3: mujs/regexp.c: In function 'nextrune': [INFO] [stderr] warning: mujs@0.0.3: mujs/regexp.c:114:25: warning: this statement may fall through [-Wimplicit-fallthrough=] [INFO] [stderr] warning: mujs@0.0.3: 114 | case 0: die(g, "unterminated escape sequence"); [INFO] [stderr] warning: mujs@0.0.3: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stderr] warning: mujs@0.0.3: mujs/regexp.c:115:17: note: here [INFO] [stderr] warning: mujs@0.0.3: 115 | case 'f': g->yychar = '\f'; return 0; [INFO] [stderr] warning: mujs@0.0.3: | ^~~~ [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:141:1 [INFO] [stdout] | [INFO] [stdout] 141 | / bitflags! { [INFO] [stdout] 142 | | pub struct PropertyAttributes: c_int { [INFO] [stdout] 143 | | /// Read only property attribute [INFO] [stdout] 144 | | /// [INFO] [stdout] ... | [INFO] [stdout] 164 | | } [INFO] [stdout] 165 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:141:1 [INFO] [stdout] | [INFO] [stdout] 141 | / bitflags! { [INFO] [stdout] 142 | | pub struct PropertyAttributes: c_int { [INFO] [stdout] 143 | | /// Read only property attribute [INFO] [stdout] 144 | | /// [INFO] [stdout] ... | [INFO] [stdout] 164 | | } [INFO] [stdout] 165 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:141:1 [INFO] [stdout] | [INFO] [stdout] 141 | / bitflags! { [INFO] [stdout] 142 | | pub struct PropertyAttributes: c_int { [INFO] [stdout] 143 | | /// Read only property attribute [INFO] [stdout] 144 | | /// [INFO] [stdout] ... | [INFO] [stdout] 164 | | } [INFO] [stdout] 165 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:167:1 [INFO] [stdout] | [INFO] [stdout] 167 | / bitflags! { [INFO] [stdout] 168 | | pub struct StateFlags: c_int { [INFO] [stdout] 169 | | /// Compile and run code using ES5 strict mode. [INFO] [stdout] 170 | | const JS_STRICT = 1; [INFO] [stdout] 171 | | } [INFO] [stdout] 172 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:167:1 [INFO] [stdout] | [INFO] [stdout] 167 | / bitflags! { [INFO] [stdout] 168 | | pub struct StateFlags: c_int { [INFO] [stdout] 169 | | /// Compile and run code using ES5 strict mode. [INFO] [stdout] 170 | | const JS_STRICT = 1; [INFO] [stdout] 171 | | } [INFO] [stdout] 172 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:167:1 [INFO] [stdout] | [INFO] [stdout] 167 | / bitflags! { [INFO] [stdout] 168 | | pub struct StateFlags: c_int { [INFO] [stdout] 169 | | /// Compile and run code using ES5 strict mode. [INFO] [stdout] 170 | | const JS_STRICT = 1; [INFO] [stdout] 171 | | } [INFO] [stdout] 172 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:174:1 [INFO] [stdout] | [INFO] [stdout] 174 | / bitflags! { [INFO] [stdout] 175 | | /// Regular expression (RegExp) flags [INFO] [stdout] 176 | | pub struct RegExpFlags: c_int { [INFO] [stdout] 177 | | /// Global match [INFO] [stdout] ... | [INFO] [stdout] 190 | | } [INFO] [stdout] 191 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:174:1 [INFO] [stdout] | [INFO] [stdout] 174 | / bitflags! { [INFO] [stdout] 175 | | /// Regular expression (RegExp) flags [INFO] [stdout] 176 | | pub struct RegExpFlags: c_int { [INFO] [stdout] 177 | | /// Global match [INFO] [stdout] ... | [INFO] [stdout] 190 | | } [INFO] [stdout] 191 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:174:1 [INFO] [stdout] | [INFO] [stdout] 174 | / bitflags! { [INFO] [stdout] 175 | | /// Regular expression (RegExp) flags [INFO] [stdout] 176 | | pub struct RegExpFlags: c_int { [INFO] [stdout] 177 | | /// Global match [INFO] [stdout] ... | [INFO] [stdout] 190 | | } [INFO] [stdout] 191 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: attribute should be applied to an `extern` block with non-Rust ABI [INFO] [stdout] --> src/lib.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | #[link(name = "mujs", kind="static")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 29 | use std::ffi::{CStr, CString}; [INFO] [stdout] | ------------------------------ not an `extern` block [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: attribute should be applied to an `extern` block with non-Rust ABI [INFO] [stdout] --> src/lib.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | #[link(name = "mujs", kind="static")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 29 | use std::ffi::{CStr, CString}; [INFO] [stdout] | ---- not an `extern` block [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: attribute should be applied to an `extern` block with non-Rust ABI [INFO] [stdout] --> src/lib.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | #[link(name = "mujs", kind="static")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 29 | use std::ffi::{CStr, CString}; [INFO] [stdout] | ------- not an `extern` block [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:831:28 [INFO] [stdout] | [INFO] [stdout] 831 | let func: &mut Box = unsafe { std::mem::transmute(cb_ptr) }; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 831 | let func: &mut Box = unsafe { std::mem::transmute(cb_ptr) }; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:860:25 [INFO] [stdout] | [INFO] [stdout] 860 | let cb: Box> = Box::new(Box::new(func)); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 860 | let cb: Box> = Box::new(Box::new(func)); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `js_call` is never used [INFO] [stdout] --> src/lib.rs:62:8 [INFO] [stdout] | [INFO] [stdout] 62 | fn js_call(J: *const c_void, n: c_int) -> c_int; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:295:56 [INFO] [stdout] | [INFO] [stdout] 295 | ... filename.to_cstr().unwrap().as_ptr(), [INFO] [stdout] | --------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:296:54 [INFO] [stdout] | [INFO] [stdout] 296 | ... source.to_cstr().unwrap().as_ptr()) [INFO] [stdout] | ------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:394:80 [INFO] [stdout] | [INFO] [stdout] 394 | match unsafe {js_dostring((*self.ptr).state, source.to_cstr().unwrap().as_ptr()) } { [INFO] [stdout] | ------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:425:76 [INFO] [stdout] | [INFO] [stdout] 425 | unsafe { js_newerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()) }; [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:430:80 [INFO] [stdout] | [INFO] [stdout] 430 | unsafe { js_newevalerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:435:81 [INFO] [stdout] | [INFO] [stdout] 435 | unsafe { js_newrangeerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:440:85 [INFO] [stdout] | [INFO] [stdout] 440 | unsafe { js_newreferenceerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:445:82 [INFO] [stdout] | [INFO] [stdout] 445 | unsafe { js_newsyntaxerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:450:80 [INFO] [stdout] | [INFO] [stdout] 450 | unsafe { js_newtypeerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:455:79 [INFO] [stdout] | [INFO] [stdout] 455 | unsafe { js_newurierror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:461:71 [INFO] [stdout] | [INFO] [stdout] 461 | js_newerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()); [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:469:75 [INFO] [stdout] | [INFO] [stdout] 469 | js_newevalerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()); [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:477:76 [INFO] [stdout] | [INFO] [stdout] 477 | js_newrangeerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()); [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:485:80 [INFO] [stdout] | [INFO] [stdout] 485 | js_newreferenceerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()); [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:493:77 [INFO] [stdout] | [INFO] [stdout] 493 | js_newsyntaxerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()); [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:501:75 [INFO] [stdout] | [INFO] [stdout] 501 | js_newtypeerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()); [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:509:74 [INFO] [stdout] | [INFO] [stdout] 509 | js_newurierror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()); [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:622:75 [INFO] [stdout] | [INFO] [stdout] 622 | unsafe { js_newstring((*self.ptr).state, value.to_cstr().unwrap().as_ptr()) }; [INFO] [stdout] | ------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:648:77 [INFO] [stdout] | [INFO] [stdout] 648 | unsafe { js_newregexp((*self.ptr).state, pattern.to_cstr().unwrap().as_ptr(), flags.bits) }; [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:684:76 [INFO] [stdout] | [INFO] [stdout] 684 | unsafe { js_pushstring((*self.ptr).state, value.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | ------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:704:87 [INFO] [stdout] | [INFO] [stdout] 704 | match unsafe { js_hasproperty((*self.ptr).state, idx, name.to_cstr().unwrap().as_ptr()) } { [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:712:81 [INFO] [stdout] | [INFO] [stdout] 712 | unsafe { js_setproperty((*self.ptr).state, idx, name.to_cstr().unwrap().as_ptr()) }; [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:717:81 [INFO] [stdout] | [INFO] [stdout] 717 | unsafe { js_getproperty((*self.ptr).state, idx, name.to_cstr().unwrap().as_ptr()) }; [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:735:81 [INFO] [stdout] | [INFO] [stdout] 735 | unsafe { js_defproperty((*self.ptr).state, idx, name.to_cstr().unwrap().as_ptr(), attrs.bits) }; [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:744:81 [INFO] [stdout] | [INFO] [stdout] 744 | unsafe { js_defaccessor((*self.ptr).state, idx, name.to_cstr().unwrap().as_ptr(), attrs.bits) }; [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:749:81 [INFO] [stdout] | [INFO] [stdout] 749 | unsafe { js_delproperty((*self.ptr).state, idx, name.to_cstr().unwrap().as_ptr()) }; [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:807:74 [INFO] [stdout] | [INFO] [stdout] 807 | unsafe { js_getglobal((*self.ptr).state, name.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:812:74 [INFO] [stdout] | [INFO] [stdout] 812 | unsafe { js_setglobal((*self.ptr).state, name.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:817:74 [INFO] [stdout] | [INFO] [stdout] 817 | unsafe { js_defglobal((*self.ptr).state, name.to_cstr().unwrap().as_ptr(), attrs.bits) } [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:827:67 [INFO] [stdout] | [INFO] [stdout] 827 | js_getproperty(js, -1, CLOSURE_TAG.to_cstr().unwrap().as_ptr()); [INFO] [stdout] | ------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:828:66 [INFO] [stdout] | [INFO] [stdout] 828 | js_touserdata(js, -1, CLOSURE_TAG.to_cstr().unwrap().as_ptr()) [INFO] [stdout] | ------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:864:53 [INFO] [stdout] | [INFO] [stdout] 864 | ... name.to_cstr().unwrap().as_ptr(),length); [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:866:77 [INFO] [stdout] | [INFO] [stdout] 866 | js_newuserdata((*self.ptr).state,CLOSURE_TAG.to_cstr().unwrap().as_ptr(), [INFO] [stdout] | ------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:868:82 [INFO] [stdout] | [INFO] [stdout] 868 | js_defproperty((*self.ptr).state, -2, CLOSURE_TAG.to_cstr().unwrap().as_ptr(), [INFO] [stdout] | ------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:976:76 [INFO] [stdout] | [INFO] [stdout] 976 | unsafe { js_getregistry((*self.ptr).state, name.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:981:76 [INFO] [stdout] | [INFO] [stdout] 981 | unsafe { js_setregistry((*self.ptr).state, name.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:986:76 [INFO] [stdout] | [INFO] [stdout] 986 | unsafe { js_delregistry((*self.ptr).state, name.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 52 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling mujs v0.0.3 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:141:1 [INFO] [stdout] | [INFO] [stdout] 141 | / bitflags! { [INFO] [stdout] 142 | | pub struct PropertyAttributes: c_int { [INFO] [stdout] 143 | | /// Read only property attribute [INFO] [stdout] 144 | | /// [INFO] [stdout] ... | [INFO] [stdout] 164 | | } [INFO] [stdout] 165 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:141:1 [INFO] [stdout] | [INFO] [stdout] 141 | / bitflags! { [INFO] [stdout] 142 | | pub struct PropertyAttributes: c_int { [INFO] [stdout] 143 | | /// Read only property attribute [INFO] [stdout] 144 | | /// [INFO] [stdout] ... | [INFO] [stdout] 164 | | } [INFO] [stdout] 165 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:141:1 [INFO] [stdout] | [INFO] [stdout] 141 | / bitflags! { [INFO] [stdout] 142 | | pub struct PropertyAttributes: c_int { [INFO] [stdout] 143 | | /// Read only property attribute [INFO] [stdout] 144 | | /// [INFO] [stdout] ... | [INFO] [stdout] 164 | | } [INFO] [stdout] 165 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:167:1 [INFO] [stdout] | [INFO] [stdout] 167 | / bitflags! { [INFO] [stdout] 168 | | pub struct StateFlags: c_int { [INFO] [stdout] 169 | | /// Compile and run code using ES5 strict mode. [INFO] [stdout] 170 | | const JS_STRICT = 1; [INFO] [stdout] 171 | | } [INFO] [stdout] 172 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:167:1 [INFO] [stdout] | [INFO] [stdout] 167 | / bitflags! { [INFO] [stdout] 168 | | pub struct StateFlags: c_int { [INFO] [stdout] 169 | | /// Compile and run code using ES5 strict mode. [INFO] [stdout] 170 | | const JS_STRICT = 1; [INFO] [stdout] 171 | | } [INFO] [stdout] 172 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:167:1 [INFO] [stdout] | [INFO] [stdout] 167 | / bitflags! { [INFO] [stdout] 168 | | pub struct StateFlags: c_int { [INFO] [stdout] 169 | | /// Compile and run code using ES5 strict mode. [INFO] [stdout] 170 | | const JS_STRICT = 1; [INFO] [stdout] 171 | | } [INFO] [stdout] 172 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:174:1 [INFO] [stdout] | [INFO] [stdout] 174 | / bitflags! { [INFO] [stdout] 175 | | /// Regular expression (RegExp) flags [INFO] [stdout] 176 | | pub struct RegExpFlags: c_int { [INFO] [stdout] 177 | | /// Global match [INFO] [stdout] ... | [INFO] [stdout] 190 | | } [INFO] [stdout] 191 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:174:1 [INFO] [stdout] | [INFO] [stdout] 174 | / bitflags! { [INFO] [stdout] 175 | | /// Regular expression (RegExp) flags [INFO] [stdout] 176 | | pub struct RegExpFlags: c_int { [INFO] [stdout] 177 | | /// Global match [INFO] [stdout] ... | [INFO] [stdout] 190 | | } [INFO] [stdout] 191 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:174:1 [INFO] [stdout] | [INFO] [stdout] 174 | / bitflags! { [INFO] [stdout] 175 | | /// Regular expression (RegExp) flags [INFO] [stdout] 176 | | pub struct RegExpFlags: c_int { [INFO] [stdout] 177 | | /// Global match [INFO] [stdout] ... | [INFO] [stdout] 190 | | } [INFO] [stdout] 191 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: attribute should be applied to an `extern` block with non-Rust ABI [INFO] [stdout] --> src/lib.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | #[link(name = "mujs", kind="static")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 29 | use std::ffi::{CStr, CString}; [INFO] [stdout] | ------------------------------ not an `extern` block [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: attribute should be applied to an `extern` block with non-Rust ABI [INFO] [stdout] --> src/lib.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | #[link(name = "mujs", kind="static")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 29 | use std::ffi::{CStr, CString}; [INFO] [stdout] | ---- not an `extern` block [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: attribute should be applied to an `extern` block with non-Rust ABI [INFO] [stdout] --> src/lib.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | #[link(name = "mujs", kind="static")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 29 | use std::ffi::{CStr, CString}; [INFO] [stdout] | ------- not an `extern` block [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:831:28 [INFO] [stdout] | [INFO] [stdout] 831 | let func: &mut Box = unsafe { std::mem::transmute(cb_ptr) }; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 831 | let func: &mut Box = unsafe { std::mem::transmute(cb_ptr) }; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:860:25 [INFO] [stdout] | [INFO] [stdout] 860 | let cb: Box> = Box::new(Box::new(func)); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 860 | let cb: Box> = Box::new(Box::new(func)); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:295:56 [INFO] [stdout] | [INFO] [stdout] 295 | ... filename.to_cstr().unwrap().as_ptr(), [INFO] [stdout] | --------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:296:54 [INFO] [stdout] | [INFO] [stdout] 296 | ... source.to_cstr().unwrap().as_ptr()) [INFO] [stdout] | ------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:394:80 [INFO] [stdout] | [INFO] [stdout] 394 | match unsafe {js_dostring((*self.ptr).state, source.to_cstr().unwrap().as_ptr()) } { [INFO] [stdout] | ------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:425:76 [INFO] [stdout] | [INFO] [stdout] 425 | unsafe { js_newerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()) }; [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:430:80 [INFO] [stdout] | [INFO] [stdout] 430 | unsafe { js_newevalerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:435:81 [INFO] [stdout] | [INFO] [stdout] 435 | unsafe { js_newrangeerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:440:85 [INFO] [stdout] | [INFO] [stdout] 440 | unsafe { js_newreferenceerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:445:82 [INFO] [stdout] | [INFO] [stdout] 445 | unsafe { js_newsyntaxerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:450:80 [INFO] [stdout] | [INFO] [stdout] 450 | unsafe { js_newtypeerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:455:79 [INFO] [stdout] | [INFO] [stdout] 455 | unsafe { js_newurierror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:461:71 [INFO] [stdout] | [INFO] [stdout] 461 | js_newerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()); [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:469:75 [INFO] [stdout] | [INFO] [stdout] 469 | js_newevalerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()); [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:477:76 [INFO] [stdout] | [INFO] [stdout] 477 | js_newrangeerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()); [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:485:80 [INFO] [stdout] | [INFO] [stdout] 485 | js_newreferenceerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()); [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:493:77 [INFO] [stdout] | [INFO] [stdout] 493 | js_newsyntaxerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()); [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:501:75 [INFO] [stdout] | [INFO] [stdout] 501 | js_newtypeerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()); [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:509:74 [INFO] [stdout] | [INFO] [stdout] 509 | js_newurierror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()); [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:622:75 [INFO] [stdout] | [INFO] [stdout] 622 | unsafe { js_newstring((*self.ptr).state, value.to_cstr().unwrap().as_ptr()) }; [INFO] [stdout] | ------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:648:77 [INFO] [stdout] | [INFO] [stdout] 648 | unsafe { js_newregexp((*self.ptr).state, pattern.to_cstr().unwrap().as_ptr(), flags.bits) }; [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:684:76 [INFO] [stdout] | [INFO] [stdout] 684 | unsafe { js_pushstring((*self.ptr).state, value.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | ------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:704:87 [INFO] [stdout] | [INFO] [stdout] 704 | match unsafe { js_hasproperty((*self.ptr).state, idx, name.to_cstr().unwrap().as_ptr()) } { [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:712:81 [INFO] [stdout] | [INFO] [stdout] 712 | unsafe { js_setproperty((*self.ptr).state, idx, name.to_cstr().unwrap().as_ptr()) }; [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:717:81 [INFO] [stdout] | [INFO] [stdout] 717 | unsafe { js_getproperty((*self.ptr).state, idx, name.to_cstr().unwrap().as_ptr()) }; [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:735:81 [INFO] [stdout] | [INFO] [stdout] 735 | unsafe { js_defproperty((*self.ptr).state, idx, name.to_cstr().unwrap().as_ptr(), attrs.bits) }; [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:744:81 [INFO] [stdout] | [INFO] [stdout] 744 | unsafe { js_defaccessor((*self.ptr).state, idx, name.to_cstr().unwrap().as_ptr(), attrs.bits) }; [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:749:81 [INFO] [stdout] | [INFO] [stdout] 749 | unsafe { js_delproperty((*self.ptr).state, idx, name.to_cstr().unwrap().as_ptr()) }; [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:807:74 [INFO] [stdout] | [INFO] [stdout] 807 | unsafe { js_getglobal((*self.ptr).state, name.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:812:74 [INFO] [stdout] | [INFO] [stdout] 812 | unsafe { js_setglobal((*self.ptr).state, name.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:817:74 [INFO] [stdout] | [INFO] [stdout] 817 | unsafe { js_defglobal((*self.ptr).state, name.to_cstr().unwrap().as_ptr(), attrs.bits) } [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:827:67 [INFO] [stdout] | [INFO] [stdout] 827 | js_getproperty(js, -1, CLOSURE_TAG.to_cstr().unwrap().as_ptr()); [INFO] [stdout] | ------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:828:66 [INFO] [stdout] | [INFO] [stdout] 828 | js_touserdata(js, -1, CLOSURE_TAG.to_cstr().unwrap().as_ptr()) [INFO] [stdout] | ------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:864:53 [INFO] [stdout] | [INFO] [stdout] 864 | ... name.to_cstr().unwrap().as_ptr(),length); [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:866:77 [INFO] [stdout] | [INFO] [stdout] 866 | js_newuserdata((*self.ptr).state,CLOSURE_TAG.to_cstr().unwrap().as_ptr(), [INFO] [stdout] | ------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:868:82 [INFO] [stdout] | [INFO] [stdout] 868 | js_defproperty((*self.ptr).state, -2, CLOSURE_TAG.to_cstr().unwrap().as_ptr(), [INFO] [stdout] | ------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:976:76 [INFO] [stdout] | [INFO] [stdout] 976 | unsafe { js_getregistry((*self.ptr).state, name.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:981:76 [INFO] [stdout] | [INFO] [stdout] 981 | unsafe { js_setregistry((*self.ptr).state, name.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:986:76 [INFO] [stdout] | [INFO] [stdout] 986 | unsafe { js_delregistry((*self.ptr).state, name.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 51 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.78s [INFO] running `Command { std: "docker" "inspect" "41c905d2168aa8bd510af79a651a8376d3638fb6e45fea3304cd55b37fde576c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "41c905d2168aa8bd510af79a651a8376d3638fb6e45fea3304cd55b37fde576c", kill_on_drop: false }` [INFO] [stdout] 41c905d2168aa8bd510af79a651a8376d3638fb6e45fea3304cd55b37fde576c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+2fe50cd72c476ebacdedb14893e9632b4de961c2" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 57febe94b3f88b44d9227f09ffeb727feeff0f5a564d93cebbba2e5ce4f0fd64 [INFO] running `Command { std: "docker" "start" "-a" "57febe94b3f88b44d9227f09ffeb727feeff0f5a564d93cebbba2e5ce4f0fd64", kill_on_drop: false }` [INFO] [stderr] warning: use of deprecated function `gcc::compile_library`: crate has been renamed to `cc`, the `gcc` name is not maintained [INFO] [stderr] --> build.rs:4:10 [INFO] [stderr] | [INFO] [stderr] 4 | gcc::compile_library("libmujs.a", &["mujs/one.c"]); [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `mujs` (build script) generated 1 warning [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:4: [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c: In function 'findlocal': [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:9:22: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 9 | #define JF js_State *J, js_Function *F [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:166:22: note: in expansion of macro 'JF' [INFO] [stderr] warning: mujs@0.0.3: 166 | static int findlocal(JF, const char *name) [INFO] [stderr] warning: mujs@0.0.3: | ^~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c: In function 'here': [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:9:22: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 9 | #define JF js_State *J, js_Function *F [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:228:17: note: in expansion of macro 'JF' [INFO] [stderr] warning: mujs@0.0.3: 228 | static int here(JF) [INFO] [stderr] warning: mujs@0.0.3: | ^~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c: In function 'checkdup': [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:9:38: warning: unused parameter 'F' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 9 | #define JF js_State *J, js_Function *F [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:301:22: note: in expansion of macro 'JF' [INFO] [stderr] warning: mujs@0.0.3: 301 | static void checkdup(JF, js_Ast *list, js_Ast *end) [INFO] [stderr] warning: mujs@0.0.3: | ^~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c: In function 'ceval': [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:509:31: warning: unused parameter 'fun' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 509 | static void ceval(JF, js_Ast *fun, js_Ast *args) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~^~~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c: In function 'addjump': [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:9:38: warning: unused parameter 'F' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 9 | #define JF js_State *J, js_Function *F [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:730:21: note: in expansion of macro 'JF' [INFO] [stderr] warning: mujs@0.0.3: 730 | static void addjump(JF, enum js_AstType type, js_Ast *target, int inst) [INFO] [stderr] warning: mujs@0.0.3: | ^~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c: In function 'breaktarget': [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:9:22: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 9 | #define JF js_State *J, js_Function *F [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:772:28: note: in expansion of macro 'JF' [INFO] [stderr] warning: mujs@0.0.3: 772 | static js_Ast *breaktarget(JF, js_Ast *node, const char *label) [INFO] [stderr] warning: mujs@0.0.3: | ^~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:9:38: warning: unused parameter 'F' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 9 | #define JF js_State *J, js_Function *F [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:772:28: note: in expansion of macro 'JF' [INFO] [stderr] warning: mujs@0.0.3: 772 | static js_Ast *breaktarget(JF, js_Ast *node, const char *label) [INFO] [stderr] warning: mujs@0.0.3: | ^~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c: In function 'continuetarget': [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:9:22: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 9 | #define JF js_State *J, js_Function *F [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:789:31: note: in expansion of macro 'JF' [INFO] [stderr] warning: mujs@0.0.3: 789 | static js_Ast *continuetarget(JF, js_Ast *node, const char *label) [INFO] [stderr] warning: mujs@0.0.3: | ^~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:9:38: warning: unused parameter 'F' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 9 | #define JF js_State *J, js_Function *F [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:789:31: note: in expansion of macro 'JF' [INFO] [stderr] warning: mujs@0.0.3: 789 | static js_Ast *continuetarget(JF, js_Ast *node, const char *label) [INFO] [stderr] warning: mujs@0.0.3: | ^~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c: In function 'returntarget': [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:9:22: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 9 | #define JF js_State *J, js_Function *F [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:805:29: note: in expansion of macro 'JF' [INFO] [stderr] warning: mujs@0.0.3: 805 | static js_Ast *returntarget(JF, js_Ast *node) [INFO] [stderr] warning: mujs@0.0.3: | ^~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:9:38: warning: unused parameter 'F' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 9 | #define JF js_State *J, js_Function *F [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:805:29: note: in expansion of macro 'JF' [INFO] [stderr] warning: mujs@0.0.3: 805 | static js_Ast *returntarget(JF, js_Ast *node) [INFO] [stderr] warning: mujs@0.0.3: | ^~ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:5: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsdate.c: In function 'DaylightSavingTA': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsdate.c:44:39: warning: unused parameter 't' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 44 | static double DaylightSavingTA(double t) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:6: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsdtoa.c: In function 'k_comp': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsdtoa.c:378:41: warning: unused parameter 'gamma' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 378 | static int k_comp(int e, int alpha, int gamma) { [INFO] [stderr] warning: mujs@0.0.3: | ~~~~^~~~~ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:7: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsdump.c: In function 'jsP_dumpsyntax': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsdump.c:624:31: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 624 | void jsP_dumpsyntax(js_State *J, js_Ast *prog) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jsdump.c: In function 'jsP_dumplist': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsdump.c:705:29: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 705 | void jsP_dumplist(js_State *J, js_Ast *prog) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:16: [INFO] [stderr] warning: mujs@0.0.3: mujs/json.c: In function 'fmtobject': [INFO] [stderr] warning: mujs@0.0.3: mujs/json.c:209:63: warning: unused parameter 'obj' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 209 | static void fmtobject(js_State *J, js_Buffer **sb, js_Object *obj, const char *gap, int level) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~~^~~ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:18: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsproperty.c: In function 'jsV_getownproperty': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsproperty.c:165:43: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 165 | js_Property *jsV_getownproperty(js_State *J, js_Object *obj, const char *name) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jsproperty.c: In function 'jsV_getpropertyx': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsproperty.c:170:41: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 170 | js_Property *jsV_getpropertyx(js_State *J, js_Object *obj, const char *name, int *own) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jsproperty.c: In function 'jsV_getproperty': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsproperty.c:183:40: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 183 | js_Property *jsV_getproperty(js_State *J, js_Object *obj, const char *name) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jsproperty.c: In function 'jsV_getenumproperty': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsproperty.c:194:51: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 194 | static js_Property *jsV_getenumproperty(js_State *J, js_Object *obj, const char *name) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:20: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsrun.c: In function 'js_insert': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsrun.c:350:33: warning: unused parameter 'idx' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 350 | void js_insert(js_State *J, int idx) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~^~~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jsrun.c: In function 'js_isarrayindex': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsrun.c:437:31: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 437 | int js_isarrayindex(js_State *J, const char *p, int *idx) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:21: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstate.c: In function 'js_defaultalloc': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstate.c:10:36: warning: unused parameter 'actx' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 10 | static void *js_defaultalloc(void *actx, void *ptr, int size) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~^~~~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstate.c: In function 'js_defaultreport': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstate.c:19:40: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 19 | static void js_defaultreport(js_State *J, const char *message) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:22: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstring.c: In function 'js_runeat': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstring.c:14:25: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 14 | int js_runeat(js_State *J, const char *s, int i) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:23: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsvalue.c: In function 'jsV_toboolean': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsvalue.c:116:29: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 116 | int jsV_toboolean(js_State *J, js_Value *v) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jsvalue.c: At top level: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsvalue.c:131:27: warning: argument 1 of type 'char *' declared as a pointer [-Warray-parameter=] [INFO] [stderr] warning: mujs@0.0.3: 131 | const char *js_itoa(char *out, int v) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~^~~ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/jsarray.c:2, [INFO] [stderr] warning: mujs@0.0.3: from mujs/one.c:1: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsvalue.h:157:26: note: previously declared as an array 'char[32]' [INFO] [stderr] warning: mujs@0.0.3: 157 | const char *js_itoa(char buf[32], int a); [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~^~~~~~~ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:23: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsvalue.c: In function 'jsV_stringtonumber': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsvalue.c:183:37: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 183 | double jsV_stringtonumber(js_State *J, const char *s) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jsvalue.c: In function 'jsV_numbertostring': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsvalue.c:227:42: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 227 | const char *jsV_numbertostring(js_State *J, char buf[32], double f) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:24: [INFO] [stderr] warning: mujs@0.0.3: mujs/regexp.c: In function 'default_alloc': [INFO] [stderr] warning: mujs@0.0.3: mujs/regexp.c:896:34: warning: unused parameter 'ctx' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 896 | static void *default_alloc(void *ctx, void *p, int n) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~^~~ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:22: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstring.c: In function 'Sp_replace_regexp': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstring.c:424:41: warning: this statement may fall through [-Wimplicit-fallthrough=] [INFO] [stderr] warning: mujs@0.0.3: 424 | case 0: --r; /* end of string; back up and fall through */ [INFO] [stderr] warning: mujs@0.0.3: | ^~~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstring.c:425:33: note: here [INFO] [stderr] warning: mujs@0.0.3: 425 | case '$': js_putc(J, &sb, '$'); break; [INFO] [stderr] warning: mujs@0.0.3: | ^~~~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstring.c: In function 'Sp_replace_string': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstring.c:520:41: warning: this statement may fall through [-Wimplicit-fallthrough=] [INFO] [stderr] warning: mujs@0.0.3: 520 | case 0: --r; /* end of string; back up and fall through */ [INFO] [stderr] warning: mujs@0.0.3: | ^~~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstring.c:521:33: note: here [INFO] [stderr] warning: mujs@0.0.3: 521 | case '$': js_putc(J, &sb, '$'); break; [INFO] [stderr] warning: mujs@0.0.3: | ^~~~ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:24: [INFO] [stderr] warning: mujs@0.0.3: mujs/regexp.c: In function 'nextrune': [INFO] [stderr] warning: mujs@0.0.3: mujs/regexp.c:114:25: warning: this statement may fall through [-Wimplicit-fallthrough=] [INFO] [stderr] warning: mujs@0.0.3: 114 | case 0: die(g, "unterminated escape sequence"); [INFO] [stderr] warning: mujs@0.0.3: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stderr] warning: mujs@0.0.3: mujs/regexp.c:115:17: note: here [INFO] [stderr] warning: mujs@0.0.3: 115 | case 'f': g->yychar = '\f'; return 0; [INFO] [stderr] warning: mujs@0.0.3: | ^~~~ [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/lib.rs:141:1 [INFO] [stderr] | [INFO] [stderr] 141 | / bitflags! { [INFO] [stderr] 142 | | pub struct PropertyAttributes: c_int { [INFO] [stderr] 143 | | /// Read only property attribute [INFO] [stderr] 144 | | /// [INFO] [stderr] ... | [INFO] [stderr] 164 | | } [INFO] [stderr] 165 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/lib.rs:141:1 [INFO] [stderr] | [INFO] [stderr] 141 | / bitflags! { [INFO] [stderr] 142 | | pub struct PropertyAttributes: c_int { [INFO] [stderr] 143 | | /// Read only property attribute [INFO] [stderr] 144 | | /// [INFO] [stderr] ... | [INFO] [stderr] 164 | | } [INFO] [stderr] 165 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/lib.rs:167:1 [INFO] [stderr] | [INFO] [stderr] 167 | / bitflags! { [INFO] [stderr] 168 | | pub struct StateFlags: c_int { [INFO] [stderr] 169 | | /// Compile and run code using ES5 strict mode. [INFO] [stderr] 170 | | const JS_STRICT = 1; [INFO] [stderr] 171 | | } [INFO] [stderr] 172 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/lib.rs:174:1 [INFO] [stderr] | [INFO] [stderr] 174 | / bitflags! { [INFO] [stderr] 175 | | /// Regular expression (RegExp) flags [INFO] [stderr] 176 | | pub struct RegExpFlags: c_int { [INFO] [stderr] 177 | | /// Global match [INFO] [stderr] ... | [INFO] [stderr] 190 | | } [INFO] [stderr] 191 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: attribute should be applied to an `extern` block with non-Rust ABI [INFO] [stderr] --> src/lib.rs:28:1 [INFO] [stderr] | [INFO] [stderr] 28 | #[link(name = "mujs", kind="static")] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 29 | use std::ffi::{CStr, CString}; [INFO] [stderr] | ------------------------------ not an `extern` block [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: `#[warn(unused_attributes)]` on by default [INFO] [stderr] [INFO] [stderr] warning: attribute should be applied to an `extern` block with non-Rust ABI [INFO] [stderr] --> src/lib.rs:28:1 [INFO] [stderr] | [INFO] [stderr] 28 | #[link(name = "mujs", kind="static")] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 29 | use std::ffi::{CStr, CString}; [INFO] [stderr] | ---- not an `extern` block [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] [INFO] [stderr] warning: attribute should be applied to an `extern` block with non-Rust ABI [INFO] [stderr] --> src/lib.rs:28:1 [INFO] [stderr] | [INFO] [stderr] 28 | #[link(name = "mujs", kind="static")] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 29 | use std::ffi::{CStr, CString}; [INFO] [stderr] | ------- not an `extern` block [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/lib.rs:831:28 [INFO] [stderr] | [INFO] [stderr] 831 | let func: &mut Box = unsafe { std::mem::transmute(cb_ptr) }; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 831 | let func: &mut Box = unsafe { std::mem::transmute(cb_ptr) }; [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/lib.rs:860:25 [INFO] [stderr] | [INFO] [stderr] 860 | let cb: Box> = Box::new(Box::new(func)); [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 860 | let cb: Box> = Box::new(Box::new(func)); [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: function `js_call` is never used [INFO] [stderr] --> src/lib.rs:62:8 [INFO] [stderr] | [INFO] [stderr] 62 | fn js_call(J: *const c_void, n: c_int) -> c_int; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:295:56 [INFO] [stderr] | [INFO] [stderr] 295 | ... filename.to_cstr().unwrap().as_ptr(), [INFO] [stderr] | --------------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:296:54 [INFO] [stderr] | [INFO] [stderr] 296 | ... source.to_cstr().unwrap().as_ptr()) [INFO] [stderr] | ------------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:394:80 [INFO] [stderr] | [INFO] [stderr] 394 | match unsafe {js_dostring((*self.ptr).state, source.to_cstr().unwrap().as_ptr()) } { [INFO] [stderr] | ------------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:425:76 [INFO] [stderr] | [INFO] [stderr] 425 | unsafe { js_newerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()) }; [INFO] [stderr] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:430:80 [INFO] [stderr] | [INFO] [stderr] 430 | unsafe { js_newevalerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()) } [INFO] [stderr] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:435:81 [INFO] [stderr] | [INFO] [stderr] 435 | unsafe { js_newrangeerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()) } [INFO] [stderr] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:440:85 [INFO] [stderr] | [INFO] [stderr] 440 | unsafe { js_newreferenceerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()) } [INFO] [stderr] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:445:82 [INFO] [stderr] | [INFO] [stderr] 445 | unsafe { js_newsyntaxerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()) } [INFO] [stderr] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:450:80 [INFO] [stderr] | [INFO] [stderr] 450 | unsafe { js_newtypeerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()) } [INFO] [stderr] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:455:79 [INFO] [stderr] | [INFO] [stderr] 455 | unsafe { js_newurierror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()) } [INFO] [stderr] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:461:71 [INFO] [stderr] | [INFO] [stderr] 461 | js_newerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()); [INFO] [stderr] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:469:75 [INFO] [stderr] | [INFO] [stderr] 469 | js_newevalerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()); [INFO] [stderr] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:477:76 [INFO] [stderr] | [INFO] [stderr] 477 | js_newrangeerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()); [INFO] [stderr] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:485:80 [INFO] [stderr] | [INFO] [stderr] 485 | js_newreferenceerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()); [INFO] [stderr] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:493:77 [INFO] [stderr] | [INFO] [stderr] 493 | js_newsyntaxerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()); [INFO] [stderr] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:501:75 [INFO] [stderr] | [INFO] [stderr] 501 | js_newtypeerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()); [INFO] [stderr] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:509:74 [INFO] [stderr] | [INFO] [stderr] 509 | js_newurierror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()); [INFO] [stderr] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:622:75 [INFO] [stderr] | [INFO] [stderr] 622 | unsafe { js_newstring((*self.ptr).state, value.to_cstr().unwrap().as_ptr()) }; [INFO] [stderr] | ------------------------ ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:648:77 [INFO] [stderr] | [INFO] [stderr] 648 | unsafe { js_newregexp((*self.ptr).state, pattern.to_cstr().unwrap().as_ptr(), flags.bits) }; [INFO] [stderr] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:684:76 [INFO] [stderr] | [INFO] [stderr] 684 | unsafe { js_pushstring((*self.ptr).state, value.to_cstr().unwrap().as_ptr()) } [INFO] [stderr] | ------------------------ ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:704:87 [INFO] [stderr] | [INFO] [stderr] 704 | match unsafe { js_hasproperty((*self.ptr).state, idx, name.to_cstr().unwrap().as_ptr()) } { [INFO] [stderr] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:712:81 [INFO] [stderr] | [INFO] [stderr] 712 | unsafe { js_setproperty((*self.ptr).state, idx, name.to_cstr().unwrap().as_ptr()) }; [INFO] [stderr] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:717:81 [INFO] [stderr] | [INFO] [stderr] 717 | unsafe { js_getproperty((*self.ptr).state, idx, name.to_cstr().unwrap().as_ptr()) }; [INFO] [stderr] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:735:81 [INFO] [stderr] | [INFO] [stderr] 735 | unsafe { js_defproperty((*self.ptr).state, idx, name.to_cstr().unwrap().as_ptr(), attrs.bits) }; [INFO] [stderr] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:744:81 [INFO] [stderr] | [INFO] [stderr] 744 | unsafe { js_defaccessor((*self.ptr).state, idx, name.to_cstr().unwrap().as_ptr(), attrs.bits) }; [INFO] [stderr] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:749:81 [INFO] [stderr] | [INFO] [stderr] 749 | unsafe { js_delproperty((*self.ptr).state, idx, name.to_cstr().unwrap().as_ptr()) }; [INFO] [stderr] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:807:74 [INFO] [stderr] | [INFO] [stderr] 807 | unsafe { js_getglobal((*self.ptr).state, name.to_cstr().unwrap().as_ptr()) } [INFO] [stderr] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:812:74 [INFO] [stderr] | [INFO] [stderr] 812 | unsafe { js_setglobal((*self.ptr).state, name.to_cstr().unwrap().as_ptr()) } [INFO] [stderr] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:817:74 [INFO] [stderr] | [INFO] [stderr] 817 | unsafe { js_defglobal((*self.ptr).state, name.to_cstr().unwrap().as_ptr(), attrs.bits) } [INFO] [stderr] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:827:67 [INFO] [stderr] | [INFO] [stderr] 827 | js_getproperty(js, -1, CLOSURE_TAG.to_cstr().unwrap().as_ptr()); [INFO] [stderr] | ------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:828:66 [INFO] [stderr] | [INFO] [stderr] 828 | js_touserdata(js, -1, CLOSURE_TAG.to_cstr().unwrap().as_ptr()) [INFO] [stderr] | ------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:864:53 [INFO] [stderr] | [INFO] [stderr] 864 | ... name.to_cstr().unwrap().as_ptr(),length); [INFO] [stderr] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:866:77 [INFO] [stderr] | [INFO] [stderr] 866 | js_newuserdata((*self.ptr).state,CLOSURE_TAG.to_cstr().unwrap().as_ptr(), [INFO] [stderr] | ------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:868:82 [INFO] [stderr] | [INFO] [stderr] 868 | js_defproperty((*self.ptr).state, -2, CLOSURE_TAG.to_cstr().unwrap().as_ptr(), [INFO] [stderr] | ------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:976:76 [INFO] [stderr] | [INFO] [stderr] 976 | unsafe { js_getregistry((*self.ptr).state, name.to_cstr().unwrap().as_ptr()) } [INFO] [stderr] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:981:76 [INFO] [stderr] | [INFO] [stderr] 981 | unsafe { js_setregistry((*self.ptr).state, name.to_cstr().unwrap().as_ptr()) } [INFO] [stderr] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:986:76 [INFO] [stderr] | [INFO] [stderr] 986 | unsafe { js_delregistry((*self.ptr).state, name.to_cstr().unwrap().as_ptr()) } [INFO] [stderr] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: `mujs` (lib) generated 52 warnings (5 duplicates) (run `cargo fix --lib -p mujs` to apply 2 suggestions) [INFO] [stderr] warning: `mujs` (lib test) generated 51 warnings (51 duplicates) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.02s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/mujs-0f1a582a1a799057) [INFO] [stdout] [INFO] [stdout] running 108 tests [INFO] [stdout] test tests::call_garbage_collector ... ok [INFO] [stdout] test tests::call_with_runtime_error ... ok [INFO] [stdout] test tests::copy_of_item_copies_on_stack ... ok [INFO] [stdout] test tests::copy_one_item_on_stack ... ok [INFO] [stdout] test tests::call_with_success ... ok [INFO] [stderr] ReferenceError: 'mystic' is not defined [INFO] [stdout] test tests::create_new_state ... ok [INFO] [stderr] SyntaxError: [string]:1: unexpected token: (identifier) (expected ';') [INFO] [stdout] test tests::delindex_on_empty_array ... ok [INFO] [stdout] test tests::defglobal_on_state_readonly ... ok [INFO] [stdout] test tests::dostring_with_runtime_error ... ok [INFO] [stdout] test tests::dostring_with_success ... ok [INFO] [stdout] test tests::dostring_with_broken_script ... ok [INFO] [stdout] test tests::delproperty_on_not_configurable_property ... ok [INFO] [stdout] test tests::delproperty_on_configurable_property ... ok [INFO] [stdout] test tests::getlength_on_empty_array ... ok [INFO] [stdout] test tests::defproperty_read_only_on_object ... ok [INFO] [stdout] test tests::delindex_on_non_empty_array ... ok [INFO] [stdout] test tests::getglobal_from_script ... ok [INFO] [stdout] test tests::getlength_on_non_empty_array ... ok [INFO] [stdout] test tests::construct_with_success ... ok [INFO] [stdout] test tests::gettop_with_empty_stack ... ok [INFO] [stdout] test tests::defglobal_on_state_is_writeable ... ok [INFO] [stdout] test tests::getproperty_on_object_with_non_existing_property ... ok [INFO] [stdout] test tests::gettop_with_five_items_on_stack ... ok [INFO] [stdout] test tests::getproperty_on_object_with_existing_property ... ok [INFO] [stdout] test tests::isboolean_on_number_is_false ... ok [INFO] [stdout] test tests::hasproperty_on_object_with_existing_property ... ok [INFO] [stdout] test tests::getindex_on_existing_index ... ok [INFO] [stdout] test tests::hasproperty_on_object_with_non_existing_property ... ok [INFO] [stdout] test tests::hasindex_on_existing_index ... ok [INFO] [stdout] test tests::isdefined_on_undefined_is_false ... ok [INFO] [stdout] test tests::gettop_with_one_item_on_stack ... ok [INFO] [stdout] test tests::isnull_on_null_is_true ... ok [INFO] [stdout] test tests::getregistry_with_existing_name ... ok [INFO] [stdout] test tests::isnull_on_undefined_is_false ... ok [INFO] [stdout] test tests::isboolean_on_boolean_is_true ... ok [INFO] [stdout] test tests::isnumber_on_number_is_true ... ok [INFO] [stdout] test tests::isdefined_on_number_is_true ... ok [INFO] [stdout] test tests::getindex_on_empty_array ... ok [INFO] [stdout] test tests::isnumber_on_boolean_is_false ... ok [INFO] [stdout] test tests::hasindex_on_non_array ... ok [INFO] [stdout] test tests::isobject_on_number_is_false ... ok [INFO] [stdout] test tests::isprimitive_on_undefined_is_true ... ok [INFO] [stdout] test tests::isundefined_on_undefined_is_true ... ok [INFO] [stdout] test tests::isstring_on_boolean_is_false ... ok [INFO] [stdout] test tests::isobject_on_object_is_true ... ok [INFO] [stdout] test tests::isprimitive_on_object_is_false ... ok [INFO] [stdout] test tests::loadstring_with_broken_script ... ok [INFO] [stdout] test tests::loadstring_with_complete_script ... ok [INFO] [stdout] test tests::hasindex_on_non_existing_index ... ok [INFO] [stdout] test tests::defproperty_on_object ... ok [INFO] [stdout] test tests::hasindex_on_empty_array ... ok [INFO] [stdout] test tests::isstring_on_string_is_true ... ok [INFO] [stdout] test tests::getregistry_unknown_name ... ok [INFO] [stdout] test tests::newarray_with_three_items ... ok [INFO] [stdout] test tests::newerror_verify_as_string ... ok [INFO] [stdout] test tests::newnumber_validate_as_string ... ok [INFO] [stdout] test tests::isundefined_on_number_is_false ... ok [INFO] [stdout] test tests::newevalerror_verify_as_string ... ok [INFO] [stdout] test tests::newrangeerror_verify_as_string ... ok [INFO] [stdout] test tests::newfunction_closure_is_called ... ok [INFO] [stdout] test tests::newreferenceerror_verify_as_string ... ok [INFO] [stdout] test tests::newregexp_test_non_matching_string ... ok [INFO] [stdout] test tests::newstring_validate_as_string ... ok [INFO] [stdout] test tests::newsyntaxerror_verify_as_string ... ok [INFO] [stdout] test tests::newurierror_verify_as_string ... ok [INFO] [stdout] test tests::newtypeerror_verify_as_string ... ok [INFO] [stdout] test tests::pop_one_and_only_item_on_stack ... ok [INFO] [stdout] test tests::pushstring_ascii ... ok [INFO] [stdout] test tests::pop_one_of_two_items_on_stack ... ok [INFO] [stdout] test tests::pop_with_empty_stack ... ok [INFO] [stdout] test tests::pushstring_utf8 ... ok [INFO] [stdout] test tests::pushnumber_verify_as_string ... ok [INFO] [stdout] test tests::pushundefined_verify_as_string ... ok [INFO] [stdout] test tests::pushboolean_verify_as_string ... ok [INFO] [stdout] test tests::pushnull_verify_as_string ... ok [INFO] [stdout] test tests::rot_of_item_of_two_items_on_stack ... ok [INFO] [stdout] test tests::newregexp_test_matching_string ... ok [INFO] [stdout] test tests::remove_bottom_item_with_two_items_on_stack ... ok [INFO] [stdout] test tests::rot_of_one_item_on_stack ... ok [INFO] [stdout] test tests::rot_of_two_items_on_stack ... ok [INFO] [stdout] test tests::setproperty_on_object_non_existing_property ... ok [INFO] [stdout] test tests::setglobal_on_state ... ok [INFO] [stdout] test tests::setproperty_on_object_as_number_value ... ok [INFO] [stdout] test tests::toboolean_with_false_on_stack ... ok [INFO] [stdout] test tests::toboolean_with_true_on_stack ... ok [INFO] [stdout] test tests::toboolean_with_null_on_stack ... ok [INFO] [stdout] test tests::newboolean_validate_as_string ... ok [INFO] [stdout] test tests::remove_top_item_with_two_items_on_stack ... ok [INFO] [stdout] test tests::toboolean_with_undefined_on_stack ... ok [INFO] [stdout] test tests::setproperty_on_object_changing_to_number_value ... ok [INFO] [stdout] test tests::toboolean_with_zero_number_on_stack ... ok [INFO] [stdout] test tests::tonumber_with_invalid_string_on_stack ... ok [INFO] [stdout] test tests::tonumber_with_negative_number_on_stack ... ok [INFO] [stdout] test tests::toboolean_with_positive_number_on_stack ... ok [INFO] [stdout] test tests::tonumber_with_positive_number_on_stack ... ok [INFO] [stdout] test tests::tostring_ascii ... ok [INFO] [stdout] test tests::tonumber_with_valid_string_on_stack ... ok [INFO] [stdout] test tests::tostring_utf8 ... ok [INFO] [stdout] test tests::tostring_with_number_on_stack ... ok [INFO] [stdout] test tests::error_should_panic - should panic ... ok [INFO] [stdout] test tests::panic_are_handled - should panic ... ok [INFO] [stdout] test tests::rangeerror_should_panic - should panic ... ok [INFO] [stdout] test tests::evalerror_should_panic - should panic ... ok [INFO] [stdout] test tests::remove_one_item_with_empty_stack_raises_stack_error - should panic ... ok [INFO] [stdout] test tests::syntaxerror_should_panic - should panic ... ok [INFO] [stdout] test tests::typeerror_should_panic - should panic ... ok [INFO] [stdout] test tests::referenceerror_should_panic - should panic ... ok [INFO] [stdout] test tests::urierror_should_panic - should panic ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 108 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.09s [INFO] [stdout] [INFO] [stderr] Doc-tests mujs [INFO] [stdout] [INFO] [stdout] running 17 tests [INFO] [stdout] test src/lib.rs - PropertyAttributes::all::PropertyAttributes::JS_READONLY (line 145) ... ok [INFO] [stdout] test src/lib.rs - JS_READONLY (line 145) ... ok [INFO] [stdout] test src/lib.rs - State::defproperty (line 724) ... ok [INFO] [stdout] test src/lib.rs - State::gc (line 253) ... ok [INFO] [stdout] test src/lib.rs - State::newregexp (line 634) ... ok [INFO] [stdout] test src/lib.rs - State::call (line 325) ... ok [INFO] [stdout] test src/lib.rs - State::loadstring (line 279) ... ok [INFO] [stdout] test src/lib.rs - State::hasproperty (line 691) ... ok [INFO] [stdout] test src/lib.rs - State::getlength (line 756) ... ok [INFO] [stdout] test src/lib.rs - PropertyAttributes::fmt::PropertyAttributes::JS_READONLY (line 145) ... ok [INFO] [stdout] test src/lib.rs - State::rot (line 540) ... ok [INFO] [stdout] test src/lib.rs - State::getregistry (line 963) ... ok [INFO] [stdout] test src/lib.rs - State::new (line 212) ... ok [INFO] [stdout] test src/lib.rs - State::newfunction (line 842) ... ok [INFO] [stdout] test src/lib.rs - State::construct (line 361) ... ok [INFO] [stdout] test src/lib.rs - State::newarray (line 578) ... ok [INFO] [stdout] test src/lib.rs - State::throw (line 411) ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 17 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.63s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "57febe94b3f88b44d9227f09ffeb727feeff0f5a564d93cebbba2e5ce4f0fd64", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "57febe94b3f88b44d9227f09ffeb727feeff0f5a564d93cebbba2e5ce4f0fd64", kill_on_drop: false }` [INFO] [stdout] 57febe94b3f88b44d9227f09ffeb727feeff0f5a564d93cebbba2e5ce4f0fd64 [INFO] testing mujs-0.0.3 against try#9c1665de5d324fe858dc15371578d6f928bfc123 for pr-116088-2 [INFO] extracting crate mujs 0.0.3 into /workspace/builds/worker-3-tc2/source [INFO] validating manifest of crates.io crate mujs 0.0.3 on toolchain 9c1665de5d324fe858dc15371578d6f928bfc123 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9c1665de5d324fe858dc15371578d6f928bfc123" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate mujs 0.0.3 [INFO] finished tweaking crates.io crate mujs 0.0.3 [INFO] tweaked toml for crates.io crate mujs 0.0.3 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9c1665de5d324fe858dc15371578d6f928bfc123" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9c1665de5d324fe858dc15371578d6f928bfc123" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+9c1665de5d324fe858dc15371578d6f928bfc123" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1e07b505c9cda4d9be7b86b5af0f1e5c652c3cf9b20d5918f2d40ab65a9ab06f [INFO] running `Command { std: "docker" "start" "-a" "1e07b505c9cda4d9be7b86b5af0f1e5c652c3cf9b20d5918f2d40ab65a9ab06f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1e07b505c9cda4d9be7b86b5af0f1e5c652c3cf9b20d5918f2d40ab65a9ab06f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1e07b505c9cda4d9be7b86b5af0f1e5c652c3cf9b20d5918f2d40ab65a9ab06f", kill_on_drop: false }` [INFO] [stdout] 1e07b505c9cda4d9be7b86b5af0f1e5c652c3cf9b20d5918f2d40ab65a9ab06f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+9c1665de5d324fe858dc15371578d6f928bfc123" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e769b89b3de4128b3229aa7dadf0b116a2f652f78e2b54894967cb2defe5e46b [INFO] running `Command { std: "docker" "start" "-a" "e769b89b3de4128b3229aa7dadf0b116a2f652f78e2b54894967cb2defe5e46b", kill_on_drop: false }` [INFO] [stderr] Compiling gcc v0.3.55 [INFO] [stderr] Compiling bitflags v0.9.1 [INFO] [stderr] Compiling mujs v0.0.3 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated function `gcc::compile_library`: crate has been renamed to `cc`, the `gcc` name is not maintained [INFO] [stdout] --> build.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | gcc::compile_library("libmujs.a", &["mujs/one.c"]); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:4: [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c: In function 'findlocal': [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:9:22: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 9 | #define JF js_State *J, js_Function *F [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:166:22: note: in expansion of macro 'JF' [INFO] [stderr] warning: mujs@0.0.3: 166 | static int findlocal(JF, const char *name) [INFO] [stderr] warning: mujs@0.0.3: | ^~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c: In function 'here': [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:9:22: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 9 | #define JF js_State *J, js_Function *F [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:228:17: note: in expansion of macro 'JF' [INFO] [stderr] warning: mujs@0.0.3: 228 | static int here(JF) [INFO] [stderr] warning: mujs@0.0.3: | ^~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c: In function 'checkdup': [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:9:38: warning: unused parameter 'F' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 9 | #define JF js_State *J, js_Function *F [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:301:22: note: in expansion of macro 'JF' [INFO] [stderr] warning: mujs@0.0.3: 301 | static void checkdup(JF, js_Ast *list, js_Ast *end) [INFO] [stderr] warning: mujs@0.0.3: | ^~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c: In function 'ceval': [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:509:31: warning: unused parameter 'fun' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 509 | static void ceval(JF, js_Ast *fun, js_Ast *args) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~^~~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c: In function 'addjump': [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:9:38: warning: unused parameter 'F' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 9 | #define JF js_State *J, js_Function *F [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:730:21: note: in expansion of macro 'JF' [INFO] [stderr] warning: mujs@0.0.3: 730 | static void addjump(JF, enum js_AstType type, js_Ast *target, int inst) [INFO] [stderr] warning: mujs@0.0.3: | ^~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c: In function 'breaktarget': [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:9:22: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 9 | #define JF js_State *J, js_Function *F [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:772:28: note: in expansion of macro 'JF' [INFO] [stderr] warning: mujs@0.0.3: 772 | static js_Ast *breaktarget(JF, js_Ast *node, const char *label) [INFO] [stderr] warning: mujs@0.0.3: | ^~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:9:38: warning: unused parameter 'F' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 9 | #define JF js_State *J, js_Function *F [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:772:28: note: in expansion of macro 'JF' [INFO] [stderr] warning: mujs@0.0.3: 772 | static js_Ast *breaktarget(JF, js_Ast *node, const char *label) [INFO] [stderr] warning: mujs@0.0.3: | ^~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c: In function 'continuetarget': [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:9:22: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 9 | #define JF js_State *J, js_Function *F [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:789:31: note: in expansion of macro 'JF' [INFO] [stderr] warning: mujs@0.0.3: 789 | static js_Ast *continuetarget(JF, js_Ast *node, const char *label) [INFO] [stderr] warning: mujs@0.0.3: | ^~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:9:38: warning: unused parameter 'F' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 9 | #define JF js_State *J, js_Function *F [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:789:31: note: in expansion of macro 'JF' [INFO] [stderr] warning: mujs@0.0.3: 789 | static js_Ast *continuetarget(JF, js_Ast *node, const char *label) [INFO] [stderr] warning: mujs@0.0.3: | ^~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c: In function 'returntarget': [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:9:22: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 9 | #define JF js_State *J, js_Function *F [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:805:29: note: in expansion of macro 'JF' [INFO] [stderr] warning: mujs@0.0.3: 805 | static js_Ast *returntarget(JF, js_Ast *node) [INFO] [stderr] warning: mujs@0.0.3: | ^~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:9:38: warning: unused parameter 'F' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 9 | #define JF js_State *J, js_Function *F [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:805:29: note: in expansion of macro 'JF' [INFO] [stderr] warning: mujs@0.0.3: 805 | static js_Ast *returntarget(JF, js_Ast *node) [INFO] [stderr] warning: mujs@0.0.3: | ^~ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:5: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsdate.c: In function 'DaylightSavingTA': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsdate.c:44:39: warning: unused parameter 't' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 44 | static double DaylightSavingTA(double t) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:6: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsdtoa.c: In function 'k_comp': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsdtoa.c:378:41: warning: unused parameter 'gamma' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 378 | static int k_comp(int e, int alpha, int gamma) { [INFO] [stderr] warning: mujs@0.0.3: | ~~~~^~~~~ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:7: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsdump.c: In function 'jsP_dumpsyntax': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsdump.c:624:31: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 624 | void jsP_dumpsyntax(js_State *J, js_Ast *prog) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jsdump.c: In function 'jsP_dumplist': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsdump.c:705:29: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 705 | void jsP_dumplist(js_State *J, js_Ast *prog) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:16: [INFO] [stderr] warning: mujs@0.0.3: mujs/json.c: In function 'fmtobject': [INFO] [stderr] warning: mujs@0.0.3: mujs/json.c:209:63: warning: unused parameter 'obj' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 209 | static void fmtobject(js_State *J, js_Buffer **sb, js_Object *obj, const char *gap, int level) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~~^~~ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:18: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsproperty.c: In function 'jsV_getownproperty': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsproperty.c:165:43: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 165 | js_Property *jsV_getownproperty(js_State *J, js_Object *obj, const char *name) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jsproperty.c: In function 'jsV_getpropertyx': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsproperty.c:170:41: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 170 | js_Property *jsV_getpropertyx(js_State *J, js_Object *obj, const char *name, int *own) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jsproperty.c: In function 'jsV_getproperty': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsproperty.c:183:40: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 183 | js_Property *jsV_getproperty(js_State *J, js_Object *obj, const char *name) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jsproperty.c: In function 'jsV_getenumproperty': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsproperty.c:194:51: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 194 | static js_Property *jsV_getenumproperty(js_State *J, js_Object *obj, const char *name) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:20: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsrun.c: In function 'js_insert': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsrun.c:350:33: warning: unused parameter 'idx' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 350 | void js_insert(js_State *J, int idx) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~^~~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jsrun.c: In function 'js_isarrayindex': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsrun.c:437:31: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 437 | int js_isarrayindex(js_State *J, const char *p, int *idx) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:21: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstate.c: In function 'js_defaultalloc': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstate.c:10:36: warning: unused parameter 'actx' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 10 | static void *js_defaultalloc(void *actx, void *ptr, int size) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~^~~~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstate.c: In function 'js_defaultreport': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstate.c:19:40: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 19 | static void js_defaultreport(js_State *J, const char *message) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:22: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstring.c: In function 'js_runeat': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstring.c:14:25: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 14 | int js_runeat(js_State *J, const char *s, int i) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:23: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsvalue.c: In function 'jsV_toboolean': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsvalue.c:116:29: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 116 | int jsV_toboolean(js_State *J, js_Value *v) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jsvalue.c: At top level: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsvalue.c:131:27: warning: argument 1 of type 'char *' declared as a pointer [-Warray-parameter=] [INFO] [stderr] warning: mujs@0.0.3: 131 | const char *js_itoa(char *out, int v) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~^~~ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/jsarray.c:2, [INFO] [stderr] warning: mujs@0.0.3: from mujs/one.c:1: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsvalue.h:157:26: note: previously declared as an array 'char[32]' [INFO] [stderr] warning: mujs@0.0.3: 157 | const char *js_itoa(char buf[32], int a); [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~^~~~~~~ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:23: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsvalue.c: In function 'jsV_stringtonumber': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsvalue.c:183:37: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 183 | double jsV_stringtonumber(js_State *J, const char *s) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jsvalue.c: In function 'jsV_numbertostring': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsvalue.c:227:42: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 227 | const char *jsV_numbertostring(js_State *J, char buf[32], double f) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:24: [INFO] [stderr] warning: mujs@0.0.3: mujs/regexp.c: In function 'default_alloc': [INFO] [stderr] warning: mujs@0.0.3: mujs/regexp.c:896:34: warning: unused parameter 'ctx' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 896 | static void *default_alloc(void *ctx, void *p, int n) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~^~~ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:22: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstring.c: In function 'Sp_replace_regexp': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstring.c:424:41: warning: this statement may fall through [-Wimplicit-fallthrough=] [INFO] [stderr] warning: mujs@0.0.3: 424 | case 0: --r; /* end of string; back up and fall through */ [INFO] [stderr] warning: mujs@0.0.3: | ^~~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstring.c:425:33: note: here [INFO] [stderr] warning: mujs@0.0.3: 425 | case '$': js_putc(J, &sb, '$'); break; [INFO] [stderr] warning: mujs@0.0.3: | ^~~~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstring.c: In function 'Sp_replace_string': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstring.c:520:41: warning: this statement may fall through [-Wimplicit-fallthrough=] [INFO] [stderr] warning: mujs@0.0.3: 520 | case 0: --r; /* end of string; back up and fall through */ [INFO] [stderr] warning: mujs@0.0.3: | ^~~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstring.c:521:33: note: here [INFO] [stderr] warning: mujs@0.0.3: 521 | case '$': js_putc(J, &sb, '$'); break; [INFO] [stderr] warning: mujs@0.0.3: | ^~~~ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:24: [INFO] [stderr] warning: mujs@0.0.3: mujs/regexp.c: In function 'nextrune': [INFO] [stderr] warning: mujs@0.0.3: mujs/regexp.c:114:25: warning: this statement may fall through [-Wimplicit-fallthrough=] [INFO] [stderr] warning: mujs@0.0.3: 114 | case 0: die(g, "unterminated escape sequence"); [INFO] [stderr] warning: mujs@0.0.3: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stderr] warning: mujs@0.0.3: mujs/regexp.c:115:17: note: here [INFO] [stderr] warning: mujs@0.0.3: 115 | case 'f': g->yychar = '\f'; return 0; [INFO] [stderr] warning: mujs@0.0.3: | ^~~~ [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:141:1 [INFO] [stdout] | [INFO] [stdout] 141 | / bitflags! { [INFO] [stdout] 142 | | pub struct PropertyAttributes: c_int { [INFO] [stdout] 143 | | /// Read only property attribute [INFO] [stdout] 144 | | /// [INFO] [stdout] ... | [INFO] [stdout] 164 | | } [INFO] [stdout] 165 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:141:1 [INFO] [stdout] | [INFO] [stdout] 141 | / bitflags! { [INFO] [stdout] 142 | | pub struct PropertyAttributes: c_int { [INFO] [stdout] 143 | | /// Read only property attribute [INFO] [stdout] 144 | | /// [INFO] [stdout] ... | [INFO] [stdout] 164 | | } [INFO] [stdout] 165 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:141:1 [INFO] [stdout] | [INFO] [stdout] 141 | / bitflags! { [INFO] [stdout] 142 | | pub struct PropertyAttributes: c_int { [INFO] [stdout] 143 | | /// Read only property attribute [INFO] [stdout] 144 | | /// [INFO] [stdout] ... | [INFO] [stdout] 164 | | } [INFO] [stdout] 165 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:167:1 [INFO] [stdout] | [INFO] [stdout] 167 | / bitflags! { [INFO] [stdout] 168 | | pub struct StateFlags: c_int { [INFO] [stdout] 169 | | /// Compile and run code using ES5 strict mode. [INFO] [stdout] 170 | | const JS_STRICT = 1; [INFO] [stdout] 171 | | } [INFO] [stdout] 172 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:167:1 [INFO] [stdout] | [INFO] [stdout] 167 | / bitflags! { [INFO] [stdout] 168 | | pub struct StateFlags: c_int { [INFO] [stdout] 169 | | /// Compile and run code using ES5 strict mode. [INFO] [stdout] 170 | | const JS_STRICT = 1; [INFO] [stdout] 171 | | } [INFO] [stdout] 172 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:167:1 [INFO] [stdout] | [INFO] [stdout] 167 | / bitflags! { [INFO] [stdout] 168 | | pub struct StateFlags: c_int { [INFO] [stdout] 169 | | /// Compile and run code using ES5 strict mode. [INFO] [stdout] 170 | | const JS_STRICT = 1; [INFO] [stdout] 171 | | } [INFO] [stdout] 172 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:174:1 [INFO] [stdout] | [INFO] [stdout] 174 | / bitflags! { [INFO] [stdout] 175 | | /// Regular expression (RegExp) flags [INFO] [stdout] 176 | | pub struct RegExpFlags: c_int { [INFO] [stdout] 177 | | /// Global match [INFO] [stdout] ... | [INFO] [stdout] 190 | | } [INFO] [stdout] 191 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:174:1 [INFO] [stdout] | [INFO] [stdout] 174 | / bitflags! { [INFO] [stdout] 175 | | /// Regular expression (RegExp) flags [INFO] [stdout] 176 | | pub struct RegExpFlags: c_int { [INFO] [stdout] 177 | | /// Global match [INFO] [stdout] ... | [INFO] [stdout] 190 | | } [INFO] [stdout] 191 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:174:1 [INFO] [stdout] | [INFO] [stdout] 174 | / bitflags! { [INFO] [stdout] 175 | | /// Regular expression (RegExp) flags [INFO] [stdout] 176 | | pub struct RegExpFlags: c_int { [INFO] [stdout] 177 | | /// Global match [INFO] [stdout] ... | [INFO] [stdout] 190 | | } [INFO] [stdout] 191 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: attribute should be applied to an `extern` block with non-Rust ABI [INFO] [stdout] --> src/lib.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | #[link(name = "mujs", kind="static")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 29 | use std::ffi::{CStr, CString}; [INFO] [stdout] | ------------------------------ not an `extern` block [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: attribute should be applied to an `extern` block with non-Rust ABI [INFO] [stdout] --> src/lib.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | #[link(name = "mujs", kind="static")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 29 | use std::ffi::{CStr, CString}; [INFO] [stdout] | ---- not an `extern` block [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: attribute should be applied to an `extern` block with non-Rust ABI [INFO] [stdout] --> src/lib.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | #[link(name = "mujs", kind="static")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 29 | use std::ffi::{CStr, CString}; [INFO] [stdout] | ------- not an `extern` block [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:831:28 [INFO] [stdout] | [INFO] [stdout] 831 | let func: &mut Box = unsafe { std::mem::transmute(cb_ptr) }; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 831 | let func: &mut Box = unsafe { std::mem::transmute(cb_ptr) }; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:860:25 [INFO] [stdout] | [INFO] [stdout] 860 | let cb: Box> = Box::new(Box::new(func)); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 860 | let cb: Box> = Box::new(Box::new(func)); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `js_call` is never used [INFO] [stdout] --> src/lib.rs:62:8 [INFO] [stdout] | [INFO] [stdout] 62 | fn js_call(J: *const c_void, n: c_int) -> c_int; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:295:56 [INFO] [stdout] | [INFO] [stdout] 295 | ... filename.to_cstr().unwrap().as_ptr(), [INFO] [stdout] | --------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:296:54 [INFO] [stdout] | [INFO] [stdout] 296 | ... source.to_cstr().unwrap().as_ptr()) [INFO] [stdout] | ------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:394:80 [INFO] [stdout] | [INFO] [stdout] 394 | match unsafe {js_dostring((*self.ptr).state, source.to_cstr().unwrap().as_ptr()) } { [INFO] [stdout] | ------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:425:76 [INFO] [stdout] | [INFO] [stdout] 425 | unsafe { js_newerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()) }; [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:430:80 [INFO] [stdout] | [INFO] [stdout] 430 | unsafe { js_newevalerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:435:81 [INFO] [stdout] | [INFO] [stdout] 435 | unsafe { js_newrangeerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:440:85 [INFO] [stdout] | [INFO] [stdout] 440 | unsafe { js_newreferenceerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:445:82 [INFO] [stdout] | [INFO] [stdout] 445 | unsafe { js_newsyntaxerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:450:80 [INFO] [stdout] | [INFO] [stdout] 450 | unsafe { js_newtypeerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:455:79 [INFO] [stdout] | [INFO] [stdout] 455 | unsafe { js_newurierror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:461:71 [INFO] [stdout] | [INFO] [stdout] 461 | js_newerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()); [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:469:75 [INFO] [stdout] | [INFO] [stdout] 469 | js_newevalerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()); [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:477:76 [INFO] [stdout] | [INFO] [stdout] 477 | js_newrangeerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()); [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:485:80 [INFO] [stdout] | [INFO] [stdout] 485 | js_newreferenceerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()); [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:493:77 [INFO] [stdout] | [INFO] [stdout] 493 | js_newsyntaxerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()); [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:501:75 [INFO] [stdout] | [INFO] [stdout] 501 | js_newtypeerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()); [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:509:74 [INFO] [stdout] | [INFO] [stdout] 509 | js_newurierror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()); [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:622:75 [INFO] [stdout] | [INFO] [stdout] 622 | unsafe { js_newstring((*self.ptr).state, value.to_cstr().unwrap().as_ptr()) }; [INFO] [stdout] | ------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:648:77 [INFO] [stdout] | [INFO] [stdout] 648 | unsafe { js_newregexp((*self.ptr).state, pattern.to_cstr().unwrap().as_ptr(), flags.bits) }; [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:684:76 [INFO] [stdout] | [INFO] [stdout] 684 | unsafe { js_pushstring((*self.ptr).state, value.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | ------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:704:87 [INFO] [stdout] | [INFO] [stdout] 704 | match unsafe { js_hasproperty((*self.ptr).state, idx, name.to_cstr().unwrap().as_ptr()) } { [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:712:81 [INFO] [stdout] | [INFO] [stdout] 712 | unsafe { js_setproperty((*self.ptr).state, idx, name.to_cstr().unwrap().as_ptr()) }; [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:717:81 [INFO] [stdout] | [INFO] [stdout] 717 | unsafe { js_getproperty((*self.ptr).state, idx, name.to_cstr().unwrap().as_ptr()) }; [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:735:81 [INFO] [stdout] | [INFO] [stdout] 735 | unsafe { js_defproperty((*self.ptr).state, idx, name.to_cstr().unwrap().as_ptr(), attrs.bits) }; [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:744:81 [INFO] [stdout] | [INFO] [stdout] 744 | unsafe { js_defaccessor((*self.ptr).state, idx, name.to_cstr().unwrap().as_ptr(), attrs.bits) }; [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:749:81 [INFO] [stdout] | [INFO] [stdout] 749 | unsafe { js_delproperty((*self.ptr).state, idx, name.to_cstr().unwrap().as_ptr()) }; [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:807:74 [INFO] [stdout] | [INFO] [stdout] 807 | unsafe { js_getglobal((*self.ptr).state, name.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:812:74 [INFO] [stdout] | [INFO] [stdout] 812 | unsafe { js_setglobal((*self.ptr).state, name.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:817:74 [INFO] [stdout] | [INFO] [stdout] 817 | unsafe { js_defglobal((*self.ptr).state, name.to_cstr().unwrap().as_ptr(), attrs.bits) } [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:827:67 [INFO] [stdout] | [INFO] [stdout] 827 | js_getproperty(js, -1, CLOSURE_TAG.to_cstr().unwrap().as_ptr()); [INFO] [stdout] | ------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:828:66 [INFO] [stdout] | [INFO] [stdout] 828 | js_touserdata(js, -1, CLOSURE_TAG.to_cstr().unwrap().as_ptr()) [INFO] [stdout] | ------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:864:53 [INFO] [stdout] | [INFO] [stdout] 864 | ... name.to_cstr().unwrap().as_ptr(),length); [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:866:77 [INFO] [stdout] | [INFO] [stdout] 866 | js_newuserdata((*self.ptr).state,CLOSURE_TAG.to_cstr().unwrap().as_ptr(), [INFO] [stdout] | ------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:868:82 [INFO] [stdout] | [INFO] [stdout] 868 | js_defproperty((*self.ptr).state, -2, CLOSURE_TAG.to_cstr().unwrap().as_ptr(), [INFO] [stdout] | ------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:976:76 [INFO] [stdout] | [INFO] [stdout] 976 | unsafe { js_getregistry((*self.ptr).state, name.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:981:76 [INFO] [stdout] | [INFO] [stdout] 981 | unsafe { js_setregistry((*self.ptr).state, name.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:986:76 [INFO] [stdout] | [INFO] [stdout] 986 | unsafe { js_delregistry((*self.ptr).state, name.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 52 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 3.01s [INFO] running `Command { std: "docker" "inspect" "e769b89b3de4128b3229aa7dadf0b116a2f652f78e2b54894967cb2defe5e46b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e769b89b3de4128b3229aa7dadf0b116a2f652f78e2b54894967cb2defe5e46b", kill_on_drop: false }` [INFO] [stdout] e769b89b3de4128b3229aa7dadf0b116a2f652f78e2b54894967cb2defe5e46b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+9c1665de5d324fe858dc15371578d6f928bfc123" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 10d8ca8b2bb9479c86a8b5a56ab00cafc6cf2bee4e76820eb537be7e84dde702 [INFO] running `Command { std: "docker" "start" "-a" "10d8ca8b2bb9479c86a8b5a56ab00cafc6cf2bee4e76820eb537be7e84dde702", kill_on_drop: false }` [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:4: [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c: In function 'findlocal': [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:9:22: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 9 | #define JF js_State *J, js_Function *F [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:166:22: note: in expansion of macro 'JF' [INFO] [stderr] warning: mujs@0.0.3: 166 | static int findlocal(JF, const char *name) [INFO] [stderr] warning: mujs@0.0.3: | ^~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c: In function 'here': [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:9:22: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 9 | #define JF js_State *J, js_Function *F [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:228:17: note: in expansion of macro 'JF' [INFO] [stderr] warning: mujs@0.0.3: 228 | static int here(JF) [INFO] [stderr] warning: mujs@0.0.3: | ^~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c: In function 'checkdup': [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:9:38: warning: unused parameter 'F' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 9 | #define JF js_State *J, js_Function *F [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:301:22: note: in expansion of macro 'JF' [INFO] [stderr] warning: mujs@0.0.3: 301 | static void checkdup(JF, js_Ast *list, js_Ast *end) [INFO] [stderr] warning: mujs@0.0.3: | ^~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c: In function 'ceval': [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:509:31: warning: unused parameter 'fun' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 509 | static void ceval(JF, js_Ast *fun, js_Ast *args) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~^~~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c: In function 'addjump': [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:9:38: warning: unused parameter 'F' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 9 | #define JF js_State *J, js_Function *F [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:730:21: note: in expansion of macro 'JF' [INFO] [stderr] warning: mujs@0.0.3: 730 | static void addjump(JF, enum js_AstType type, js_Ast *target, int inst) [INFO] [stderr] warning: mujs@0.0.3: | ^~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c: In function 'breaktarget': [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:9:22: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 9 | #define JF js_State *J, js_Function *F [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:772:28: note: in expansion of macro 'JF' [INFO] [stderr] warning: mujs@0.0.3: 772 | static js_Ast *breaktarget(JF, js_Ast *node, const char *label) [INFO] [stderr] warning: mujs@0.0.3: | ^~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:9:38: warning: unused parameter 'F' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 9 | #define JF js_State *J, js_Function *F [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:772:28: note: in expansion of macro 'JF' [INFO] [stderr] warning: mujs@0.0.3: 772 | static js_Ast *breaktarget(JF, js_Ast *node, const char *label) [INFO] [stderr] warning: mujs@0.0.3: | ^~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c: In function 'continuetarget': [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:9:22: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 9 | #define JF js_State *J, js_Function *F [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:789:31: note: in expansion of macro 'JF' [INFO] [stderr] warning: mujs@0.0.3: 789 | static js_Ast *continuetarget(JF, js_Ast *node, const char *label) [INFO] [stderr] warning: mujs@0.0.3: | ^~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:9:38: warning: unused parameter 'F' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 9 | #define JF js_State *J, js_Function *F [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:789:31: note: in expansion of macro 'JF' [INFO] [stderr] warning: mujs@0.0.3: 789 | static js_Ast *continuetarget(JF, js_Ast *node, const char *label) [INFO] [stderr] warning: mujs@0.0.3: | ^~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c: In function 'returntarget': [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:9:22: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 9 | #define JF js_State *J, js_Function *F [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:805:29: note: in expansion of macro 'JF' [INFO] [stderr] warning: mujs@0.0.3: 805 | static js_Ast *returntarget(JF, js_Ast *node) [INFO] [stderr] warning: mujs@0.0.3: | ^~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:9:38: warning: unused parameter 'F' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 9 | #define JF js_State *J, js_Function *F [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:805:29: note: in expansion of macro 'JF' [INFO] [stderr] warning: mujs@0.0.3: 805 | static js_Ast *returntarget(JF, js_Ast *node) [INFO] [stderr] warning: mujs@0.0.3: | ^~ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:5: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsdate.c: In function 'DaylightSavingTA': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsdate.c:44:39: warning: unused parameter 't' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 44 | static double DaylightSavingTA(double t) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:6: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsdtoa.c: In function 'k_comp': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsdtoa.c:378:41: warning: unused parameter 'gamma' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 378 | static int k_comp(int e, int alpha, int gamma) { [INFO] [stderr] warning: mujs@0.0.3: | ~~~~^~~~~ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:7: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsdump.c: In function 'jsP_dumpsyntax': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsdump.c:624:31: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 624 | void jsP_dumpsyntax(js_State *J, js_Ast *prog) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jsdump.c: In function 'jsP_dumplist': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsdump.c:705:29: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 705 | void jsP_dumplist(js_State *J, js_Ast *prog) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:16: [INFO] [stderr] warning: mujs@0.0.3: mujs/json.c: In function 'fmtobject': [INFO] [stderr] warning: mujs@0.0.3: mujs/json.c:209:63: warning: unused parameter 'obj' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 209 | static void fmtobject(js_State *J, js_Buffer **sb, js_Object *obj, const char *gap, int level) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~~^~~ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:18: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsproperty.c: In function 'jsV_getownproperty': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsproperty.c:165:43: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 165 | js_Property *jsV_getownproperty(js_State *J, js_Object *obj, const char *name) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jsproperty.c: In function 'jsV_getpropertyx': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsproperty.c:170:41: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 170 | js_Property *jsV_getpropertyx(js_State *J, js_Object *obj, const char *name, int *own) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jsproperty.c: In function 'jsV_getproperty': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsproperty.c:183:40: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 183 | js_Property *jsV_getproperty(js_State *J, js_Object *obj, const char *name) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jsproperty.c: In function 'jsV_getenumproperty': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsproperty.c:194:51: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 194 | static js_Property *jsV_getenumproperty(js_State *J, js_Object *obj, const char *name) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:20: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsrun.c: In function 'js_insert': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsrun.c:350:33: warning: unused parameter 'idx' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 350 | void js_insert(js_State *J, int idx) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~^~~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jsrun.c: In function 'js_isarrayindex': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsrun.c:437:31: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 437 | int js_isarrayindex(js_State *J, const char *p, int *idx) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:21: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstate.c: In function 'js_defaultalloc': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstate.c:10:36: warning: unused parameter 'actx' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 10 | static void *js_defaultalloc(void *actx, void *ptr, int size) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~^~~~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstate.c: In function 'js_defaultreport': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstate.c:19:40: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 19 | static void js_defaultreport(js_State *J, const char *message) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:22: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstring.c: In function 'js_runeat': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstring.c:14:25: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 14 | int js_runeat(js_State *J, const char *s, int i) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:23: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsvalue.c: In function 'jsV_toboolean': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsvalue.c:116:29: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 116 | int jsV_toboolean(js_State *J, js_Value *v) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jsvalue.c: At top level: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsvalue.c:131:27: warning: argument 1 of type 'char *' declared as a pointer [-Warray-parameter=] [INFO] [stderr] warning: mujs@0.0.3: 131 | const char *js_itoa(char *out, int v) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~^~~ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/jsarray.c:2, [INFO] [stderr] warning: mujs@0.0.3: from mujs/one.c:1: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsvalue.h:157:26: note: previously declared as an array 'char[32]' [INFO] [stderr] warning: mujs@0.0.3: 157 | const char *js_itoa(char buf[32], int a); [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~^~~~~~~ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:23: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsvalue.c: In function 'jsV_stringtonumber': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsvalue.c:183:37: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 183 | double jsV_stringtonumber(js_State *J, const char *s) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jsvalue.c: In function 'jsV_numbertostring': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsvalue.c:227:42: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 227 | const char *jsV_numbertostring(js_State *J, char buf[32], double f) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:24: [INFO] [stderr] warning: mujs@0.0.3: mujs/regexp.c: In function 'default_alloc': [INFO] [stderr] warning: mujs@0.0.3: mujs/regexp.c:896:34: warning: unused parameter 'ctx' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 896 | static void *default_alloc(void *ctx, void *p, int n) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~^~~ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:22: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstring.c: In function 'Sp_replace_regexp': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstring.c:424:41: warning: this statement may fall through [-Wimplicit-fallthrough=] [INFO] [stderr] warning: mujs@0.0.3: 424 | case 0: --r; /* end of string; back up and fall through */ [INFO] [stderr] warning: mujs@0.0.3: | ^~~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstring.c:425:33: note: here [INFO] [stderr] warning: mujs@0.0.3: 425 | case '$': js_putc(J, &sb, '$'); break; [INFO] [stderr] warning: mujs@0.0.3: | ^~~~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstring.c: In function 'Sp_replace_string': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstring.c:520:41: warning: this statement may fall through [-Wimplicit-fallthrough=] [INFO] [stderr] warning: mujs@0.0.3: 520 | case 0: --r; /* end of string; back up and fall through */ [INFO] [stderr] warning: mujs@0.0.3: | ^~~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstring.c:521:33: note: here [INFO] [stderr] warning: mujs@0.0.3: 521 | case '$': js_putc(J, &sb, '$'); break; [INFO] [stderr] warning: mujs@0.0.3: | ^~~~ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:24: [INFO] [stderr] warning: mujs@0.0.3: mujs/regexp.c: In function 'nextrune': [INFO] [stderr] warning: mujs@0.0.3: mujs/regexp.c:114:25: warning: this statement may fall through [-Wimplicit-fallthrough=] [INFO] [stderr] warning: mujs@0.0.3: 114 | case 0: die(g, "unterminated escape sequence"); [INFO] [stderr] warning: mujs@0.0.3: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stderr] warning: mujs@0.0.3: mujs/regexp.c:115:17: note: here [INFO] [stderr] warning: mujs@0.0.3: 115 | case 'f': g->yychar = '\f'; return 0; [INFO] [stderr] warning: mujs@0.0.3: | ^~~~ [INFO] [stdout] warning: use of deprecated function `gcc::compile_library`: crate has been renamed to `cc`, the `gcc` name is not maintained [INFO] [stdout] --> build.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | gcc::compile_library("libmujs.a", &["mujs/one.c"]); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:141:1 [INFO] [stdout] | [INFO] [stdout] 141 | / bitflags! { [INFO] [stdout] 142 | | pub struct PropertyAttributes: c_int { [INFO] [stdout] 143 | | /// Read only property attribute [INFO] [stdout] 144 | | /// [INFO] [stdout] ... | [INFO] [stdout] 164 | | } [INFO] [stdout] 165 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:141:1 [INFO] [stdout] | [INFO] [stdout] 141 | / bitflags! { [INFO] [stdout] 142 | | pub struct PropertyAttributes: c_int { [INFO] [stdout] 143 | | /// Read only property attribute [INFO] [stdout] 144 | | /// [INFO] [stdout] ... | [INFO] [stdout] 164 | | } [INFO] [stdout] 165 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:141:1 [INFO] [stdout] | [INFO] [stdout] 141 | / bitflags! { [INFO] [stdout] 142 | | pub struct PropertyAttributes: c_int { [INFO] [stdout] 143 | | /// Read only property attribute [INFO] [stdout] 144 | | /// [INFO] [stdout] ... | [INFO] [stdout] 164 | | } [INFO] [stdout] 165 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:167:1 [INFO] [stdout] | [INFO] [stdout] 167 | / bitflags! { [INFO] [stdout] 168 | | pub struct StateFlags: c_int { [INFO] [stdout] 169 | | /// Compile and run code using ES5 strict mode. [INFO] [stdout] 170 | | const JS_STRICT = 1; [INFO] [stdout] 171 | | } [INFO] [stdout] 172 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:167:1 [INFO] [stdout] | [INFO] [stdout] 167 | / bitflags! { [INFO] [stdout] 168 | | pub struct StateFlags: c_int { [INFO] [stdout] 169 | | /// Compile and run code using ES5 strict mode. [INFO] [stdout] 170 | | const JS_STRICT = 1; [INFO] [stdout] 171 | | } [INFO] [stdout] 172 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:167:1 [INFO] [stdout] | [INFO] [stdout] 167 | / bitflags! { [INFO] [stdout] 168 | | pub struct StateFlags: c_int { [INFO] [stdout] 169 | | /// Compile and run code using ES5 strict mode. [INFO] [stdout] 170 | | const JS_STRICT = 1; [INFO] [stdout] 171 | | } [INFO] [stdout] 172 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:174:1 [INFO] [stdout] | [INFO] [stdout] 174 | / bitflags! { [INFO] [stdout] 175 | | /// Regular expression (RegExp) flags [INFO] [stdout] 176 | | pub struct RegExpFlags: c_int { [INFO] [stdout] 177 | | /// Global match [INFO] [stdout] ... | [INFO] [stdout] 190 | | } [INFO] [stdout] 191 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:174:1 [INFO] [stdout] | [INFO] [stdout] 174 | / bitflags! { [INFO] [stdout] 175 | | /// Regular expression (RegExp) flags [INFO] [stdout] 176 | | pub struct RegExpFlags: c_int { [INFO] [stdout] 177 | | /// Global match [INFO] [stdout] ... | [INFO] [stdout] 190 | | } [INFO] [stdout] 191 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:174:1 [INFO] [stdout] | [INFO] [stdout] 174 | / bitflags! { [INFO] [stdout] 175 | | /// Regular expression (RegExp) flags [INFO] [stdout] 176 | | pub struct RegExpFlags: c_int { [INFO] [stdout] 177 | | /// Global match [INFO] [stdout] ... | [INFO] [stdout] 190 | | } [INFO] [stdout] 191 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: attribute should be applied to an `extern` block with non-Rust ABI [INFO] [stdout] --> src/lib.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | #[link(name = "mujs", kind="static")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 29 | use std::ffi::{CStr, CString}; [INFO] [stdout] | ------------------------------ not an `extern` block [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: attribute should be applied to an `extern` block with non-Rust ABI [INFO] [stdout] --> src/lib.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | #[link(name = "mujs", kind="static")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 29 | use std::ffi::{CStr, CString}; [INFO] [stdout] | ---- not an `extern` block [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: attribute should be applied to an `extern` block with non-Rust ABI [INFO] [stdout] --> src/lib.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | #[link(name = "mujs", kind="static")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 29 | use std::ffi::{CStr, CString}; [INFO] [stdout] | ------- not an `extern` block [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:831:28 [INFO] [stdout] | [INFO] [stdout] 831 | let func: &mut Box = unsafe { std::mem::transmute(cb_ptr) }; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 831 | let func: &mut Box = unsafe { std::mem::transmute(cb_ptr) }; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:860:25 [INFO] [stdout] | [INFO] [stdout] 860 | let cb: Box> = Box::new(Box::new(func)); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 860 | let cb: Box> = Box::new(Box::new(func)); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `js_call` is never used [INFO] [stdout] --> src/lib.rs:62:8 [INFO] [stdout] | [INFO] [stdout] 62 | fn js_call(J: *const c_void, n: c_int) -> c_int; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:295:56 [INFO] [stdout] | [INFO] [stdout] 295 | ... filename.to_cstr().unwrap().as_ptr(), [INFO] [stdout] | --------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:296:54 [INFO] [stdout] | [INFO] [stdout] 296 | ... source.to_cstr().unwrap().as_ptr()) [INFO] [stdout] | ------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:394:80 [INFO] [stdout] | [INFO] [stdout] 394 | match unsafe {js_dostring((*self.ptr).state, source.to_cstr().unwrap().as_ptr()) } { [INFO] [stdout] | ------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:425:76 [INFO] [stdout] | [INFO] [stdout] 425 | unsafe { js_newerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()) }; [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:430:80 [INFO] [stdout] | [INFO] [stdout] 430 | unsafe { js_newevalerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:435:81 [INFO] [stdout] | [INFO] [stdout] 435 | unsafe { js_newrangeerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:440:85 [INFO] [stdout] | [INFO] [stdout] 440 | unsafe { js_newreferenceerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:445:82 [INFO] [stdout] | [INFO] [stdout] 445 | unsafe { js_newsyntaxerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:450:80 [INFO] [stdout] | [INFO] [stdout] 450 | unsafe { js_newtypeerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:455:79 [INFO] [stdout] | [INFO] [stdout] 455 | unsafe { js_newurierror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:461:71 [INFO] [stdout] | [INFO] [stdout] 461 | js_newerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()); [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:469:75 [INFO] [stdout] | [INFO] [stdout] 469 | js_newevalerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()); [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:477:76 [INFO] [stdout] | [INFO] [stdout] 477 | js_newrangeerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()); [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:485:80 [INFO] [stdout] | [INFO] [stdout] 485 | js_newreferenceerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()); [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:493:77 [INFO] [stdout] | [INFO] [stdout] 493 | js_newsyntaxerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()); [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:501:75 [INFO] [stdout] | [INFO] [stdout] 501 | js_newtypeerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()); [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:509:74 [INFO] [stdout] | [INFO] [stdout] 509 | js_newurierror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()); [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:622:75 [INFO] [stdout] | [INFO] [stdout] 622 | unsafe { js_newstring((*self.ptr).state, value.to_cstr().unwrap().as_ptr()) }; [INFO] [stdout] | ------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:648:77 [INFO] [stdout] | [INFO] [stdout] 648 | unsafe { js_newregexp((*self.ptr).state, pattern.to_cstr().unwrap().as_ptr(), flags.bits) }; [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:684:76 [INFO] [stdout] | [INFO] [stdout] 684 | unsafe { js_pushstring((*self.ptr).state, value.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | ------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:704:87 [INFO] [stdout] | [INFO] [stdout] 704 | match unsafe { js_hasproperty((*self.ptr).state, idx, name.to_cstr().unwrap().as_ptr()) } { [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:712:81 [INFO] [stdout] | [INFO] [stdout] 712 | unsafe { js_setproperty((*self.ptr).state, idx, name.to_cstr().unwrap().as_ptr()) }; [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:717:81 [INFO] [stdout] | [INFO] [stdout] 717 | unsafe { js_getproperty((*self.ptr).state, idx, name.to_cstr().unwrap().as_ptr()) }; [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:735:81 [INFO] [stdout] | [INFO] [stdout] 735 | unsafe { js_defproperty((*self.ptr).state, idx, name.to_cstr().unwrap().as_ptr(), attrs.bits) }; [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:744:81 [INFO] [stdout] | [INFO] [stdout] 744 | unsafe { js_defaccessor((*self.ptr).state, idx, name.to_cstr().unwrap().as_ptr(), attrs.bits) }; [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:749:81 [INFO] [stdout] | [INFO] [stdout] 749 | unsafe { js_delproperty((*self.ptr).state, idx, name.to_cstr().unwrap().as_ptr()) }; [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:807:74 [INFO] [stdout] | [INFO] [stdout] 807 | unsafe { js_getglobal((*self.ptr).state, name.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:812:74 [INFO] [stdout] | [INFO] [stdout] 812 | unsafe { js_setglobal((*self.ptr).state, name.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:817:74 [INFO] [stdout] | [INFO] [stdout] 817 | unsafe { js_defglobal((*self.ptr).state, name.to_cstr().unwrap().as_ptr(), attrs.bits) } [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:827:67 [INFO] [stdout] | [INFO] [stdout] 827 | js_getproperty(js, -1, CLOSURE_TAG.to_cstr().unwrap().as_ptr()); [INFO] [stdout] | ------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:828:66 [INFO] [stdout] | [INFO] [stdout] 828 | js_touserdata(js, -1, CLOSURE_TAG.to_cstr().unwrap().as_ptr()) [INFO] [stdout] | ------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:864:53 [INFO] [stdout] | [INFO] [stdout] 864 | ... name.to_cstr().unwrap().as_ptr(),length); [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:866:77 [INFO] [stdout] | [INFO] [stdout] 866 | js_newuserdata((*self.ptr).state,CLOSURE_TAG.to_cstr().unwrap().as_ptr(), [INFO] [stdout] | ------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:868:82 [INFO] [stdout] | [INFO] [stdout] 868 | js_defproperty((*self.ptr).state, -2, CLOSURE_TAG.to_cstr().unwrap().as_ptr(), [INFO] [stdout] | ------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:976:76 [INFO] [stdout] | [INFO] [stdout] 976 | unsafe { js_getregistry((*self.ptr).state, name.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:981:76 [INFO] [stdout] | [INFO] [stdout] 981 | unsafe { js_setregistry((*self.ptr).state, name.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:986:76 [INFO] [stdout] | [INFO] [stdout] 986 | unsafe { js_delregistry((*self.ptr).state, name.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 52 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling mujs v0.0.3 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:141:1 [INFO] [stdout] | [INFO] [stdout] 141 | / bitflags! { [INFO] [stdout] 142 | | pub struct PropertyAttributes: c_int { [INFO] [stdout] 143 | | /// Read only property attribute [INFO] [stdout] 144 | | /// [INFO] [stdout] ... | [INFO] [stdout] 164 | | } [INFO] [stdout] 165 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:141:1 [INFO] [stdout] | [INFO] [stdout] 141 | / bitflags! { [INFO] [stdout] 142 | | pub struct PropertyAttributes: c_int { [INFO] [stdout] 143 | | /// Read only property attribute [INFO] [stdout] 144 | | /// [INFO] [stdout] ... | [INFO] [stdout] 164 | | } [INFO] [stdout] 165 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:141:1 [INFO] [stdout] | [INFO] [stdout] 141 | / bitflags! { [INFO] [stdout] 142 | | pub struct PropertyAttributes: c_int { [INFO] [stdout] 143 | | /// Read only property attribute [INFO] [stdout] 144 | | /// [INFO] [stdout] ... | [INFO] [stdout] 164 | | } [INFO] [stdout] 165 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:167:1 [INFO] [stdout] | [INFO] [stdout] 167 | / bitflags! { [INFO] [stdout] 168 | | pub struct StateFlags: c_int { [INFO] [stdout] 169 | | /// Compile and run code using ES5 strict mode. [INFO] [stdout] 170 | | const JS_STRICT = 1; [INFO] [stdout] 171 | | } [INFO] [stdout] 172 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:167:1 [INFO] [stdout] | [INFO] [stdout] 167 | / bitflags! { [INFO] [stdout] 168 | | pub struct StateFlags: c_int { [INFO] [stdout] 169 | | /// Compile and run code using ES5 strict mode. [INFO] [stdout] 170 | | const JS_STRICT = 1; [INFO] [stdout] 171 | | } [INFO] [stdout] 172 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:167:1 [INFO] [stdout] | [INFO] [stdout] 167 | / bitflags! { [INFO] [stdout] 168 | | pub struct StateFlags: c_int { [INFO] [stdout] 169 | | /// Compile and run code using ES5 strict mode. [INFO] [stdout] 170 | | const JS_STRICT = 1; [INFO] [stdout] 171 | | } [INFO] [stdout] 172 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:174:1 [INFO] [stdout] | [INFO] [stdout] 174 | / bitflags! { [INFO] [stdout] 175 | | /// Regular expression (RegExp) flags [INFO] [stdout] 176 | | pub struct RegExpFlags: c_int { [INFO] [stdout] 177 | | /// Global match [INFO] [stdout] ... | [INFO] [stdout] 190 | | } [INFO] [stdout] 191 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:174:1 [INFO] [stdout] | [INFO] [stdout] 174 | / bitflags! { [INFO] [stdout] 175 | | /// Regular expression (RegExp) flags [INFO] [stdout] 176 | | pub struct RegExpFlags: c_int { [INFO] [stdout] 177 | | /// Global match [INFO] [stdout] ... | [INFO] [stdout] 190 | | } [INFO] [stdout] 191 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:174:1 [INFO] [stdout] | [INFO] [stdout] 174 | / bitflags! { [INFO] [stdout] 175 | | /// Regular expression (RegExp) flags [INFO] [stdout] 176 | | pub struct RegExpFlags: c_int { [INFO] [stdout] 177 | | /// Global match [INFO] [stdout] ... | [INFO] [stdout] 190 | | } [INFO] [stdout] 191 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: attribute should be applied to an `extern` block with non-Rust ABI [INFO] [stdout] --> src/lib.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | #[link(name = "mujs", kind="static")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 29 | use std::ffi::{CStr, CString}; [INFO] [stdout] | ------------------------------ not an `extern` block [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: attribute should be applied to an `extern` block with non-Rust ABI [INFO] [stdout] --> src/lib.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | #[link(name = "mujs", kind="static")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 29 | use std::ffi::{CStr, CString}; [INFO] [stdout] | ---- not an `extern` block [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: attribute should be applied to an `extern` block with non-Rust ABI [INFO] [stdout] --> src/lib.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | #[link(name = "mujs", kind="static")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 29 | use std::ffi::{CStr, CString}; [INFO] [stdout] | ------- not an `extern` block [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:831:28 [INFO] [stdout] | [INFO] [stdout] 831 | let func: &mut Box = unsafe { std::mem::transmute(cb_ptr) }; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 831 | let func: &mut Box = unsafe { std::mem::transmute(cb_ptr) }; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:860:25 [INFO] [stdout] | [INFO] [stdout] 860 | let cb: Box> = Box::new(Box::new(func)); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 860 | let cb: Box> = Box::new(Box::new(func)); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:295:56 [INFO] [stdout] | [INFO] [stdout] 295 | ... filename.to_cstr().unwrap().as_ptr(), [INFO] [stdout] | --------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:296:54 [INFO] [stdout] | [INFO] [stdout] 296 | ... source.to_cstr().unwrap().as_ptr()) [INFO] [stdout] | ------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:394:80 [INFO] [stdout] | [INFO] [stdout] 394 | match unsafe {js_dostring((*self.ptr).state, source.to_cstr().unwrap().as_ptr()) } { [INFO] [stdout] | ------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:425:76 [INFO] [stdout] | [INFO] [stdout] 425 | unsafe { js_newerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()) }; [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:430:80 [INFO] [stdout] | [INFO] [stdout] 430 | unsafe { js_newevalerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:435:81 [INFO] [stdout] | [INFO] [stdout] 435 | unsafe { js_newrangeerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:440:85 [INFO] [stdout] | [INFO] [stdout] 440 | unsafe { js_newreferenceerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:445:82 [INFO] [stdout] | [INFO] [stdout] 445 | unsafe { js_newsyntaxerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:450:80 [INFO] [stdout] | [INFO] [stdout] 450 | unsafe { js_newtypeerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:455:79 [INFO] [stdout] | [INFO] [stdout] 455 | unsafe { js_newurierror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:461:71 [INFO] [stdout] | [INFO] [stdout] 461 | js_newerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()); [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:469:75 [INFO] [stdout] | [INFO] [stdout] 469 | js_newevalerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()); [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:477:76 [INFO] [stdout] | [INFO] [stdout] 477 | js_newrangeerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()); [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:485:80 [INFO] [stdout] | [INFO] [stdout] 485 | js_newreferenceerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()); [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:493:77 [INFO] [stdout] | [INFO] [stdout] 493 | js_newsyntaxerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()); [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:501:75 [INFO] [stdout] | [INFO] [stdout] 501 | js_newtypeerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()); [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:509:74 [INFO] [stdout] | [INFO] [stdout] 509 | js_newurierror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()); [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:622:75 [INFO] [stdout] | [INFO] [stdout] 622 | unsafe { js_newstring((*self.ptr).state, value.to_cstr().unwrap().as_ptr()) }; [INFO] [stdout] | ------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:648:77 [INFO] [stdout] | [INFO] [stdout] 648 | unsafe { js_newregexp((*self.ptr).state, pattern.to_cstr().unwrap().as_ptr(), flags.bits) }; [INFO] [stdout] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:684:76 [INFO] [stdout] | [INFO] [stdout] 684 | unsafe { js_pushstring((*self.ptr).state, value.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | ------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:704:87 [INFO] [stdout] | [INFO] [stdout] 704 | match unsafe { js_hasproperty((*self.ptr).state, idx, name.to_cstr().unwrap().as_ptr()) } { [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:712:81 [INFO] [stdout] | [INFO] [stdout] 712 | unsafe { js_setproperty((*self.ptr).state, idx, name.to_cstr().unwrap().as_ptr()) }; [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:717:81 [INFO] [stdout] | [INFO] [stdout] 717 | unsafe { js_getproperty((*self.ptr).state, idx, name.to_cstr().unwrap().as_ptr()) }; [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:735:81 [INFO] [stdout] | [INFO] [stdout] 735 | unsafe { js_defproperty((*self.ptr).state, idx, name.to_cstr().unwrap().as_ptr(), attrs.bits) }; [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:744:81 [INFO] [stdout] | [INFO] [stdout] 744 | unsafe { js_defaccessor((*self.ptr).state, idx, name.to_cstr().unwrap().as_ptr(), attrs.bits) }; [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:749:81 [INFO] [stdout] | [INFO] [stdout] 749 | unsafe { js_delproperty((*self.ptr).state, idx, name.to_cstr().unwrap().as_ptr()) }; [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:807:74 [INFO] [stdout] | [INFO] [stdout] 807 | unsafe { js_getglobal((*self.ptr).state, name.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:812:74 [INFO] [stdout] | [INFO] [stdout] 812 | unsafe { js_setglobal((*self.ptr).state, name.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:817:74 [INFO] [stdout] | [INFO] [stdout] 817 | unsafe { js_defglobal((*self.ptr).state, name.to_cstr().unwrap().as_ptr(), attrs.bits) } [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:827:67 [INFO] [stdout] | [INFO] [stdout] 827 | js_getproperty(js, -1, CLOSURE_TAG.to_cstr().unwrap().as_ptr()); [INFO] [stdout] | ------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:828:66 [INFO] [stdout] | [INFO] [stdout] 828 | js_touserdata(js, -1, CLOSURE_TAG.to_cstr().unwrap().as_ptr()) [INFO] [stdout] | ------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:864:53 [INFO] [stdout] | [INFO] [stdout] 864 | ... name.to_cstr().unwrap().as_ptr(),length); [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:866:77 [INFO] [stdout] | [INFO] [stdout] 866 | js_newuserdata((*self.ptr).state,CLOSURE_TAG.to_cstr().unwrap().as_ptr(), [INFO] [stdout] | ------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:868:82 [INFO] [stdout] | [INFO] [stdout] 868 | js_defproperty((*self.ptr).state, -2, CLOSURE_TAG.to_cstr().unwrap().as_ptr(), [INFO] [stdout] | ------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:976:76 [INFO] [stdout] | [INFO] [stdout] 976 | unsafe { js_getregistry((*self.ptr).state, name.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:981:76 [INFO] [stdout] | [INFO] [stdout] 981 | unsafe { js_setregistry((*self.ptr).state, name.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/lib.rs:986:76 [INFO] [stdout] | [INFO] [stdout] 986 | unsafe { js_delregistry((*self.ptr).state, name.to_cstr().unwrap().as_ptr()) } [INFO] [stdout] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 51 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.06s [INFO] running `Command { std: "docker" "inspect" "10d8ca8b2bb9479c86a8b5a56ab00cafc6cf2bee4e76820eb537be7e84dde702", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "10d8ca8b2bb9479c86a8b5a56ab00cafc6cf2bee4e76820eb537be7e84dde702", kill_on_drop: false }` [INFO] [stdout] 10d8ca8b2bb9479c86a8b5a56ab00cafc6cf2bee4e76820eb537be7e84dde702 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+9c1665de5d324fe858dc15371578d6f928bfc123" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 013fc7b1c13fc4b26ae7bcde1f1b1764572ffce827f713f2c1c7116e3250c021 [INFO] running `Command { std: "docker" "start" "-a" "013fc7b1c13fc4b26ae7bcde1f1b1764572ffce827f713f2c1c7116e3250c021", kill_on_drop: false }` [INFO] [stderr] warning: use of deprecated function `gcc::compile_library`: crate has been renamed to `cc`, the `gcc` name is not maintained [INFO] [stderr] --> build.rs:4:10 [INFO] [stderr] | [INFO] [stderr] 4 | gcc::compile_library("libmujs.a", &["mujs/one.c"]); [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `mujs` (build script) generated 1 warning [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:4: [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c: In function 'findlocal': [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:9:22: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 9 | #define JF js_State *J, js_Function *F [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:166:22: note: in expansion of macro 'JF' [INFO] [stderr] warning: mujs@0.0.3: 166 | static int findlocal(JF, const char *name) [INFO] [stderr] warning: mujs@0.0.3: | ^~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c: In function 'here': [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:9:22: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 9 | #define JF js_State *J, js_Function *F [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:228:17: note: in expansion of macro 'JF' [INFO] [stderr] warning: mujs@0.0.3: 228 | static int here(JF) [INFO] [stderr] warning: mujs@0.0.3: | ^~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c: In function 'checkdup': [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:9:38: warning: unused parameter 'F' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 9 | #define JF js_State *J, js_Function *F [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:301:22: note: in expansion of macro 'JF' [INFO] [stderr] warning: mujs@0.0.3: 301 | static void checkdup(JF, js_Ast *list, js_Ast *end) [INFO] [stderr] warning: mujs@0.0.3: | ^~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c: In function 'ceval': [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:509:31: warning: unused parameter 'fun' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 509 | static void ceval(JF, js_Ast *fun, js_Ast *args) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~^~~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c: In function 'addjump': [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:9:38: warning: unused parameter 'F' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 9 | #define JF js_State *J, js_Function *F [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:730:21: note: in expansion of macro 'JF' [INFO] [stderr] warning: mujs@0.0.3: 730 | static void addjump(JF, enum js_AstType type, js_Ast *target, int inst) [INFO] [stderr] warning: mujs@0.0.3: | ^~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c: In function 'breaktarget': [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:9:22: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 9 | #define JF js_State *J, js_Function *F [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:772:28: note: in expansion of macro 'JF' [INFO] [stderr] warning: mujs@0.0.3: 772 | static js_Ast *breaktarget(JF, js_Ast *node, const char *label) [INFO] [stderr] warning: mujs@0.0.3: | ^~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:9:38: warning: unused parameter 'F' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 9 | #define JF js_State *J, js_Function *F [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:772:28: note: in expansion of macro 'JF' [INFO] [stderr] warning: mujs@0.0.3: 772 | static js_Ast *breaktarget(JF, js_Ast *node, const char *label) [INFO] [stderr] warning: mujs@0.0.3: | ^~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c: In function 'continuetarget': [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:9:22: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 9 | #define JF js_State *J, js_Function *F [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:789:31: note: in expansion of macro 'JF' [INFO] [stderr] warning: mujs@0.0.3: 789 | static js_Ast *continuetarget(JF, js_Ast *node, const char *label) [INFO] [stderr] warning: mujs@0.0.3: | ^~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:9:38: warning: unused parameter 'F' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 9 | #define JF js_State *J, js_Function *F [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:789:31: note: in expansion of macro 'JF' [INFO] [stderr] warning: mujs@0.0.3: 789 | static js_Ast *continuetarget(JF, js_Ast *node, const char *label) [INFO] [stderr] warning: mujs@0.0.3: | ^~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c: In function 'returntarget': [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:9:22: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 9 | #define JF js_State *J, js_Function *F [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:805:29: note: in expansion of macro 'JF' [INFO] [stderr] warning: mujs@0.0.3: 805 | static js_Ast *returntarget(JF, js_Ast *node) [INFO] [stderr] warning: mujs@0.0.3: | ^~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:9:38: warning: unused parameter 'F' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 9 | #define JF js_State *J, js_Function *F [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jscompile.c:805:29: note: in expansion of macro 'JF' [INFO] [stderr] warning: mujs@0.0.3: 805 | static js_Ast *returntarget(JF, js_Ast *node) [INFO] [stderr] warning: mujs@0.0.3: | ^~ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:5: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsdate.c: In function 'DaylightSavingTA': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsdate.c:44:39: warning: unused parameter 't' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 44 | static double DaylightSavingTA(double t) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:6: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsdtoa.c: In function 'k_comp': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsdtoa.c:378:41: warning: unused parameter 'gamma' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 378 | static int k_comp(int e, int alpha, int gamma) { [INFO] [stderr] warning: mujs@0.0.3: | ~~~~^~~~~ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:7: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsdump.c: In function 'jsP_dumpsyntax': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsdump.c:624:31: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 624 | void jsP_dumpsyntax(js_State *J, js_Ast *prog) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jsdump.c: In function 'jsP_dumplist': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsdump.c:705:29: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 705 | void jsP_dumplist(js_State *J, js_Ast *prog) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:16: [INFO] [stderr] warning: mujs@0.0.3: mujs/json.c: In function 'fmtobject': [INFO] [stderr] warning: mujs@0.0.3: mujs/json.c:209:63: warning: unused parameter 'obj' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 209 | static void fmtobject(js_State *J, js_Buffer **sb, js_Object *obj, const char *gap, int level) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~~^~~ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:18: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsproperty.c: In function 'jsV_getownproperty': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsproperty.c:165:43: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 165 | js_Property *jsV_getownproperty(js_State *J, js_Object *obj, const char *name) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jsproperty.c: In function 'jsV_getpropertyx': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsproperty.c:170:41: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 170 | js_Property *jsV_getpropertyx(js_State *J, js_Object *obj, const char *name, int *own) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jsproperty.c: In function 'jsV_getproperty': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsproperty.c:183:40: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 183 | js_Property *jsV_getproperty(js_State *J, js_Object *obj, const char *name) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jsproperty.c: In function 'jsV_getenumproperty': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsproperty.c:194:51: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 194 | static js_Property *jsV_getenumproperty(js_State *J, js_Object *obj, const char *name) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:20: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsrun.c: In function 'js_insert': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsrun.c:350:33: warning: unused parameter 'idx' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 350 | void js_insert(js_State *J, int idx) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~^~~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jsrun.c: In function 'js_isarrayindex': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsrun.c:437:31: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 437 | int js_isarrayindex(js_State *J, const char *p, int *idx) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:21: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstate.c: In function 'js_defaultalloc': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstate.c:10:36: warning: unused parameter 'actx' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 10 | static void *js_defaultalloc(void *actx, void *ptr, int size) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~^~~~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstate.c: In function 'js_defaultreport': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstate.c:19:40: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 19 | static void js_defaultreport(js_State *J, const char *message) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:22: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstring.c: In function 'js_runeat': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstring.c:14:25: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 14 | int js_runeat(js_State *J, const char *s, int i) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:23: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsvalue.c: In function 'jsV_toboolean': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsvalue.c:116:29: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 116 | int jsV_toboolean(js_State *J, js_Value *v) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jsvalue.c: At top level: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsvalue.c:131:27: warning: argument 1 of type 'char *' declared as a pointer [-Warray-parameter=] [INFO] [stderr] warning: mujs@0.0.3: 131 | const char *js_itoa(char *out, int v) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~^~~ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/jsarray.c:2, [INFO] [stderr] warning: mujs@0.0.3: from mujs/one.c:1: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsvalue.h:157:26: note: previously declared as an array 'char[32]' [INFO] [stderr] warning: mujs@0.0.3: 157 | const char *js_itoa(char buf[32], int a); [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~^~~~~~~ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:23: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsvalue.c: In function 'jsV_stringtonumber': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsvalue.c:183:37: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 183 | double jsV_stringtonumber(js_State *J, const char *s) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: mujs/jsvalue.c: In function 'jsV_numbertostring': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsvalue.c:227:42: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 227 | const char *jsV_numbertostring(js_State *J, char buf[32], double f) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:24: [INFO] [stderr] warning: mujs@0.0.3: mujs/regexp.c: In function 'default_alloc': [INFO] [stderr] warning: mujs@0.0.3: mujs/regexp.c:896:34: warning: unused parameter 'ctx' [-Wunused-parameter] [INFO] [stderr] warning: mujs@0.0.3: 896 | static void *default_alloc(void *ctx, void *p, int n) [INFO] [stderr] warning: mujs@0.0.3: | ~~~~~~^~~ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:22: [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstring.c: In function 'Sp_replace_regexp': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstring.c:424:41: warning: this statement may fall through [-Wimplicit-fallthrough=] [INFO] [stderr] warning: mujs@0.0.3: 424 | case 0: --r; /* end of string; back up and fall through */ [INFO] [stderr] warning: mujs@0.0.3: | ^~~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstring.c:425:33: note: here [INFO] [stderr] warning: mujs@0.0.3: 425 | case '$': js_putc(J, &sb, '$'); break; [INFO] [stderr] warning: mujs@0.0.3: | ^~~~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstring.c: In function 'Sp_replace_string': [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstring.c:520:41: warning: this statement may fall through [-Wimplicit-fallthrough=] [INFO] [stderr] warning: mujs@0.0.3: 520 | case 0: --r; /* end of string; back up and fall through */ [INFO] [stderr] warning: mujs@0.0.3: | ^~~ [INFO] [stderr] warning: mujs@0.0.3: mujs/jsstring.c:521:33: note: here [INFO] [stderr] warning: mujs@0.0.3: 521 | case '$': js_putc(J, &sb, '$'); break; [INFO] [stderr] warning: mujs@0.0.3: | ^~~~ [INFO] [stderr] warning: mujs@0.0.3: In file included from mujs/one.c:24: [INFO] [stderr] warning: mujs@0.0.3: mujs/regexp.c: In function 'nextrune': [INFO] [stderr] warning: mujs@0.0.3: mujs/regexp.c:114:25: warning: this statement may fall through [-Wimplicit-fallthrough=] [INFO] [stderr] warning: mujs@0.0.3: 114 | case 0: die(g, "unterminated escape sequence"); [INFO] [stderr] warning: mujs@0.0.3: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stderr] warning: mujs@0.0.3: mujs/regexp.c:115:17: note: here [INFO] [stderr] warning: mujs@0.0.3: 115 | case 'f': g->yychar = '\f'; return 0; [INFO] [stderr] warning: mujs@0.0.3: | ^~~~ [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/lib.rs:141:1 [INFO] [stderr] | [INFO] [stderr] 141 | / bitflags! { [INFO] [stderr] 142 | | pub struct PropertyAttributes: c_int { [INFO] [stderr] 143 | | /// Read only property attribute [INFO] [stderr] 144 | | /// [INFO] [stderr] ... | [INFO] [stderr] 164 | | } [INFO] [stderr] 165 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/lib.rs:141:1 [INFO] [stderr] | [INFO] [stderr] 141 | / bitflags! { [INFO] [stderr] 142 | | pub struct PropertyAttributes: c_int { [INFO] [stderr] 143 | | /// Read only property attribute [INFO] [stderr] 144 | | /// [INFO] [stderr] ... | [INFO] [stderr] 164 | | } [INFO] [stderr] 165 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/lib.rs:167:1 [INFO] [stderr] | [INFO] [stderr] 167 | / bitflags! { [INFO] [stderr] 168 | | pub struct StateFlags: c_int { [INFO] [stderr] 169 | | /// Compile and run code using ES5 strict mode. [INFO] [stderr] 170 | | const JS_STRICT = 1; [INFO] [stderr] 171 | | } [INFO] [stderr] 172 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/lib.rs:174:1 [INFO] [stderr] | [INFO] [stderr] 174 | / bitflags! { [INFO] [stderr] 175 | | /// Regular expression (RegExp) flags [INFO] [stderr] 176 | | pub struct RegExpFlags: c_int { [INFO] [stderr] 177 | | /// Global match [INFO] [stderr] ... | [INFO] [stderr] 190 | | } [INFO] [stderr] 191 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: attribute should be applied to an `extern` block with non-Rust ABI [INFO] [stderr] --> src/lib.rs:28:1 [INFO] [stderr] | [INFO] [stderr] 28 | #[link(name = "mujs", kind="static")] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 29 | use std::ffi::{CStr, CString}; [INFO] [stderr] | ------------------------------ not an `extern` block [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: `#[warn(unused_attributes)]` on by default [INFO] [stderr] [INFO] [stderr] warning: attribute should be applied to an `extern` block with non-Rust ABI [INFO] [stderr] --> src/lib.rs:28:1 [INFO] [stderr] | [INFO] [stderr] 28 | #[link(name = "mujs", kind="static")] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 29 | use std::ffi::{CStr, CString}; [INFO] [stderr] | ---- not an `extern` block [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] [INFO] [stderr] warning: attribute should be applied to an `extern` block with non-Rust ABI [INFO] [stderr] --> src/lib.rs:28:1 [INFO] [stderr] | [INFO] [stderr] 28 | #[link(name = "mujs", kind="static")] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 29 | use std::ffi::{CStr, CString}; [INFO] [stderr] | ------- not an `extern` block [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/lib.rs:831:28 [INFO] [stderr] | [INFO] [stderr] 831 | let func: &mut Box = unsafe { std::mem::transmute(cb_ptr) }; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 831 | let func: &mut Box = unsafe { std::mem::transmute(cb_ptr) }; [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/lib.rs:860:25 [INFO] [stderr] | [INFO] [stderr] 860 | let cb: Box> = Box::new(Box::new(func)); [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 860 | let cb: Box> = Box::new(Box::new(func)); [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: function `js_call` is never used [INFO] [stderr] --> src/lib.rs:62:8 [INFO] [stderr] | [INFO] [stderr] 62 | fn js_call(J: *const c_void, n: c_int) -> c_int; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:295:56 [INFO] [stderr] | [INFO] [stderr] 295 | ... filename.to_cstr().unwrap().as_ptr(), [INFO] [stderr] | --------------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:296:54 [INFO] [stderr] | [INFO] [stderr] 296 | ... source.to_cstr().unwrap().as_ptr()) [INFO] [stderr] | ------------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:394:80 [INFO] [stderr] | [INFO] [stderr] 394 | match unsafe {js_dostring((*self.ptr).state, source.to_cstr().unwrap().as_ptr()) } { [INFO] [stderr] | ------------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:425:76 [INFO] [stderr] | [INFO] [stderr] 425 | unsafe { js_newerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()) }; [INFO] [stderr] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:430:80 [INFO] [stderr] | [INFO] [stderr] 430 | unsafe { js_newevalerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()) } [INFO] [stderr] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:435:81 [INFO] [stderr] | [INFO] [stderr] 435 | unsafe { js_newrangeerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()) } [INFO] [stderr] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:440:85 [INFO] [stderr] | [INFO] [stderr] 440 | unsafe { js_newreferenceerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()) } [INFO] [stderr] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:445:82 [INFO] [stderr] | [INFO] [stderr] 445 | unsafe { js_newsyntaxerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()) } [INFO] [stderr] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:450:80 [INFO] [stderr] | [INFO] [stderr] 450 | unsafe { js_newtypeerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()) } [INFO] [stderr] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:455:79 [INFO] [stderr] | [INFO] [stderr] 455 | unsafe { js_newurierror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()) } [INFO] [stderr] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:461:71 [INFO] [stderr] | [INFO] [stderr] 461 | js_newerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()); [INFO] [stderr] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:469:75 [INFO] [stderr] | [INFO] [stderr] 469 | js_newevalerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()); [INFO] [stderr] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:477:76 [INFO] [stderr] | [INFO] [stderr] 477 | js_newrangeerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()); [INFO] [stderr] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:485:80 [INFO] [stderr] | [INFO] [stderr] 485 | js_newreferenceerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()); [INFO] [stderr] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:493:77 [INFO] [stderr] | [INFO] [stderr] 493 | js_newsyntaxerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()); [INFO] [stderr] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:501:75 [INFO] [stderr] | [INFO] [stderr] 501 | js_newtypeerror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()); [INFO] [stderr] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:509:74 [INFO] [stderr] | [INFO] [stderr] 509 | js_newurierror((*self.ptr).state, message.to_cstr().unwrap().as_ptr()); [INFO] [stderr] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:622:75 [INFO] [stderr] | [INFO] [stderr] 622 | unsafe { js_newstring((*self.ptr).state, value.to_cstr().unwrap().as_ptr()) }; [INFO] [stderr] | ------------------------ ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:648:77 [INFO] [stderr] | [INFO] [stderr] 648 | unsafe { js_newregexp((*self.ptr).state, pattern.to_cstr().unwrap().as_ptr(), flags.bits) }; [INFO] [stderr] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:684:76 [INFO] [stderr] | [INFO] [stderr] 684 | unsafe { js_pushstring((*self.ptr).state, value.to_cstr().unwrap().as_ptr()) } [INFO] [stderr] | ------------------------ ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:704:87 [INFO] [stderr] | [INFO] [stderr] 704 | match unsafe { js_hasproperty((*self.ptr).state, idx, name.to_cstr().unwrap().as_ptr()) } { [INFO] [stderr] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:712:81 [INFO] [stderr] | [INFO] [stderr] 712 | unsafe { js_setproperty((*self.ptr).state, idx, name.to_cstr().unwrap().as_ptr()) }; [INFO] [stderr] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:717:81 [INFO] [stderr] | [INFO] [stderr] 717 | unsafe { js_getproperty((*self.ptr).state, idx, name.to_cstr().unwrap().as_ptr()) }; [INFO] [stderr] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:735:81 [INFO] [stderr] | [INFO] [stderr] 735 | unsafe { js_defproperty((*self.ptr).state, idx, name.to_cstr().unwrap().as_ptr(), attrs.bits) }; [INFO] [stderr] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:744:81 [INFO] [stderr] | [INFO] [stderr] 744 | unsafe { js_defaccessor((*self.ptr).state, idx, name.to_cstr().unwrap().as_ptr(), attrs.bits) }; [INFO] [stderr] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:749:81 [INFO] [stderr] | [INFO] [stderr] 749 | unsafe { js_delproperty((*self.ptr).state, idx, name.to_cstr().unwrap().as_ptr()) }; [INFO] [stderr] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:807:74 [INFO] [stderr] | [INFO] [stderr] 807 | unsafe { js_getglobal((*self.ptr).state, name.to_cstr().unwrap().as_ptr()) } [INFO] [stderr] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:812:74 [INFO] [stderr] | [INFO] [stderr] 812 | unsafe { js_setglobal((*self.ptr).state, name.to_cstr().unwrap().as_ptr()) } [INFO] [stderr] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:817:74 [INFO] [stderr] | [INFO] [stderr] 817 | unsafe { js_defglobal((*self.ptr).state, name.to_cstr().unwrap().as_ptr(), attrs.bits) } [INFO] [stderr] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:827:67 [INFO] [stderr] | [INFO] [stderr] 827 | js_getproperty(js, -1, CLOSURE_TAG.to_cstr().unwrap().as_ptr()); [INFO] [stderr] | ------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:828:66 [INFO] [stderr] | [INFO] [stderr] 828 | js_touserdata(js, -1, CLOSURE_TAG.to_cstr().unwrap().as_ptr()) [INFO] [stderr] | ------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:864:53 [INFO] [stderr] | [INFO] [stderr] 864 | ... name.to_cstr().unwrap().as_ptr(),length); [INFO] [stderr] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:866:77 [INFO] [stderr] | [INFO] [stderr] 866 | js_newuserdata((*self.ptr).state,CLOSURE_TAG.to_cstr().unwrap().as_ptr(), [INFO] [stderr] | ------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:868:82 [INFO] [stderr] | [INFO] [stderr] 868 | js_defproperty((*self.ptr).state, -2, CLOSURE_TAG.to_cstr().unwrap().as_ptr(), [INFO] [stderr] | ------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:976:76 [INFO] [stderr] | [INFO] [stderr] 976 | unsafe { js_getregistry((*self.ptr).state, name.to_cstr().unwrap().as_ptr()) } [INFO] [stderr] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:981:76 [INFO] [stderr] | [INFO] [stderr] 981 | unsafe { js_setregistry((*self.ptr).state, name.to_cstr().unwrap().as_ptr()) } [INFO] [stderr] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/lib.rs:986:76 [INFO] [stderr] | [INFO] [stderr] 986 | unsafe { js_delregistry((*self.ptr).state, name.to_cstr().unwrap().as_ptr()) } [INFO] [stderr] | ----------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: `mujs` (lib) generated 52 warnings (5 duplicates) (run `cargo fix --lib -p mujs` to apply 2 suggestions) [INFO] [stderr] warning: `mujs` (lib test) generated 51 warnings (51 duplicates) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.06s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/mujs-0f1a582a1a799057) [INFO] [stdout] [INFO] [stdout] running 108 tests [INFO] [stdout] test tests::call_garbage_collector ... ok [INFO] [stdout] test tests::call_with_runtime_error ... ok [INFO] [stdout] test tests::construct_with_success ... ok [INFO] [stdout] test tests::defproperty_on_object ... ok [INFO] [stdout] test tests::defproperty_read_only_on_object ... ok [INFO] [stdout] test tests::delindex_on_non_empty_array ... ok [INFO] [stdout] test tests::defglobal_on_state_is_writeable ... ok [INFO] [stdout] test tests::create_new_state ... ok [INFO] [stderr] SyntaxError: [string]:1: unexpected token: (identifier) (expected ';') [INFO] [stdout] test tests::delproperty_on_configurable_property ... ok [INFO] [stdout] test tests::delindex_on_empty_array ... ok [INFO] [stdout] test tests::dostring_with_broken_script ... ok [INFO] [stdout] test tests::getlength_on_non_empty_array ... ok [INFO] [stdout] test tests::copy_of_item_copies_on_stack ... ok [INFO] [stdout] test tests::copy_one_item_on_stack ... ok [INFO] [stdout] test tests::delproperty_on_not_configurable_property ... ok [INFO] [stdout] test tests::getlength_on_empty_array ... ok [INFO] [stdout] test tests::getproperty_on_object_with_non_existing_property ... ok [INFO] [stderr] ReferenceError: 'mystic' is not defined [INFO] [stdout] test tests::getindex_on_existing_index ... ok [INFO] [stdout] test tests::getproperty_on_object_with_existing_property ... ok [INFO] [stdout] test tests::dostring_with_success ... ok [INFO] [stdout] test tests::dostring_with_runtime_error ... ok [INFO] [stdout] test tests::getregistry_with_existing_name ... ok [INFO] [stdout] test tests::getindex_on_empty_array ... ok [INFO] [stdout] test tests::hasindex_on_non_existing_index ... ok [INFO] [stdout] test tests::hasindex_on_non_array ... ok [INFO] [stdout] test tests::isboolean_on_number_is_false ... ok [INFO] [stdout] test tests::hasproperty_on_object_with_non_existing_property ... ok [INFO] [stdout] test tests::isboolean_on_boolean_is_true ... ok [INFO] [stdout] test tests::isdefined_on_undefined_is_false ... ok [INFO] [stdout] test tests::isnull_on_null_is_true ... ok [INFO] [stdout] test tests::isdefined_on_number_is_true ... ok [INFO] [stdout] test tests::isnull_on_undefined_is_false ... ok [INFO] [stdout] test tests::hasindex_on_existing_index ... ok [INFO] [stdout] test tests::hasproperty_on_object_with_existing_property ... ok [INFO] [stdout] test tests::gettop_with_one_item_on_stack ... ok [INFO] [stdout] test tests::gettop_with_empty_stack ... ok [INFO] [stdout] test tests::getregistry_unknown_name ... ok [INFO] [stdout] test tests::hasindex_on_empty_array ... ok [INFO] [stdout] test tests::call_with_success ... ok [INFO] [stdout] test tests::isobject_on_number_is_false ... ok [INFO] [stdout] test tests::isnumber_on_number_is_true ... ok [INFO] [stdout] test tests::isobject_on_object_is_true ... ok [INFO] [stdout] test tests::gettop_with_five_items_on_stack ... ok [INFO] [stdout] test tests::isundefined_on_undefined_is_true ... ok [INFO] [stdout] test tests::isstring_on_string_is_true ... ok [INFO] [stdout] test tests::isprimitive_on_undefined_is_true ... ok [INFO] [stdout] test tests::isstring_on_boolean_is_false ... ok [INFO] [stdout] test tests::isprimitive_on_object_is_false ... ok [INFO] [stdout] test tests::defglobal_on_state_readonly ... ok [INFO] [stdout] test tests::isnumber_on_boolean_is_false ... ok [INFO] [stdout] test tests::getglobal_from_script ... ok [INFO] [stdout] test tests::isundefined_on_number_is_false ... ok [INFO] [stdout] test tests::loadstring_with_broken_script ... ok [INFO] [stdout] test tests::newboolean_validate_as_string ... ok [INFO] [stdout] test tests::newarray_with_three_items ... ok [INFO] [stdout] test tests::loadstring_with_complete_script ... ok [INFO] [stdout] test tests::newevalerror_verify_as_string ... ok [INFO] [stdout] test tests::newerror_verify_as_string ... ok [INFO] [stdout] test tests::newrangeerror_verify_as_string ... ok [INFO] [stdout] test tests::newurierror_verify_as_string ... ok [INFO] [stdout] test tests::newfunction_closure_is_called ... ok [INFO] [stdout] test tests::newreferenceerror_verify_as_string ... ok [INFO] [stdout] test tests::pushboolean_verify_as_string ... ok [INFO] [stdout] test tests::newregexp_test_matching_string ... ok [INFO] [stdout] test tests::newnumber_validate_as_string ... ok [INFO] [stdout] test tests::pushnull_verify_as_string ... ok [INFO] [stdout] test tests::newstring_validate_as_string ... ok [INFO] [stdout] test tests::newsyntaxerror_verify_as_string ... ok [INFO] [stdout] test tests::newtypeerror_verify_as_string ... ok [INFO] [stdout] test tests::pushundefined_verify_as_string ... ok [INFO] [stdout] test tests::pushstring_ascii ... ok [INFO] [stdout] test tests::pushstring_utf8 ... ok [INFO] [stdout] test tests::pushnumber_verify_as_string ... ok [INFO] [stdout] test tests::pop_one_of_two_items_on_stack ... ok [INFO] [stdout] test tests::pop_with_empty_stack ... ok [INFO] [stdout] test tests::remove_bottom_item_with_two_items_on_stack ... ok [INFO] [stdout] test tests::remove_top_item_with_two_items_on_stack ... ok [INFO] [stdout] test tests::setproperty_on_object_as_number_value ... ok [INFO] [stdout] test tests::rot_of_one_item_on_stack ... ok [INFO] [stdout] test tests::rot_of_item_of_two_items_on_stack ... ok [INFO] [stdout] test tests::rot_of_two_items_on_stack ... ok [INFO] [stdout] test tests::setglobal_on_state ... ok [INFO] [stdout] test tests::newregexp_test_non_matching_string ... ok [INFO] [stdout] test tests::pop_one_and_only_item_on_stack ... ok [INFO] [stdout] test tests::setproperty_on_object_non_existing_property ... ok [INFO] [stdout] test tests::setproperty_on_object_changing_to_number_value ... ok [INFO] [stdout] test tests::toboolean_with_null_on_stack ... ok [INFO] [stdout] test tests::toboolean_with_positive_number_on_stack ... ok [INFO] [stdout] test tests::toboolean_with_zero_number_on_stack ... ok [INFO] [stdout] test tests::toboolean_with_true_on_stack ... ok [INFO] [stdout] test tests::toboolean_with_false_on_stack ... ok [INFO] [stdout] test tests::tonumber_with_invalid_string_on_stack ... ok [INFO] [stdout] test tests::tonumber_with_negative_number_on_stack ... ok [INFO] [stdout] test tests::tostring_with_number_on_stack ... ok [INFO] [stdout] test tests::tonumber_with_positive_number_on_stack ... ok [INFO] [stdout] test tests::tostring_utf8 ... ok [INFO] [stdout] test tests::tostring_ascii ... ok [INFO] [stdout] test tests::toboolean_with_undefined_on_stack ... ok [INFO] [stderr] thread 'tests::error_should_panic' panicked at library/core/src/panicking.rs:155:5: [INFO] [stdout] thread 'tests::error_should_panic' panicked at src/lib.rs:242:9: [INFO] [stderr] panic in a function that cannot unwind [INFO] [stdout] "Error: This is an error" [INFO] [stderr] stack backtrace: [INFO] [stdout] stack backtrace: [INFO] [stderr] 0: 0x55ff84c370f6 - std::backtrace_rs::backtrace::libunwind::trace::h91c8d54ed99a4c55 [INFO] [stdout] 0: 0x55ff84c370f6 - std::backtrace_rs::backtrace::libunwind::trace::h91c8d54ed99a4c55 [INFO] [stderr] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/std/src/../../backtrace/src/backtrace/libunwind.rs:104:5 [INFO] [stdout] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/std/src/../../backtrace/src/backtrace/libunwind.rs:104:5 [INFO] [stderr] 1: 0x55ff84c370f6 - std::backtrace_rs::backtrace::trace_unsynchronized::h715a9230a8fcfb93 [INFO] [stdout] 1: 0x55ff84c370f6 - std::backtrace_rs::backtrace::trace_unsynchronized::h715a9230a8fcfb93 [INFO] [stderr] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stderr] 2: 0x55ff84c370f6 - std::sys_common::backtrace::_print_fmt::hbab9610f7b3c51a4 [INFO] [stdout] 2: 0x55ff84c370f6 - std::sys_common::backtrace::_print_fmt::hbab9610f7b3c51a4 [INFO] [stderr] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/std/src/sys_common/backtrace.rs:68:5 [INFO] [stdout] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/std/src/sys_common/backtrace.rs:68:5 [INFO] [stderr] 3: 0x55ff84c370f6 - ::fmt::h56c55e88977fc622 [INFO] [stdout] 3: 0x55ff84c370f6 - ::fmt::h56c55e88977fc622 [INFO] [stderr] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/std/src/sys_common/backtrace.rs:44:22 [INFO] [stdout] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/std/src/sys_common/backtrace.rs:44:22 [INFO] [stderr] 4: 0x55ff84c60450 - core::fmt::rt::Argument::fmt::heebe33f1e8c6d0f8 [INFO] [stdout] 4: 0x55ff84c60450 - core::fmt::rt::Argument::fmt::heebe33f1e8c6d0f8 [INFO] [stderr] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/core/src/fmt/rt.rs:142:9 [INFO] [stdout] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/core/src/fmt/rt.rs:142:9 [INFO] [stderr] 5: 0x55ff84c60450 - core::fmt::write::h73e5b8b14759e609 [INFO] [stdout] 5: 0x55ff84c60450 - core::fmt::write::h73e5b8b14759e609 [INFO] [stderr] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/core/src/fmt/mod.rs:1120:17 [INFO] [stdout] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/core/src/fmt/mod.rs:1120:17 [INFO] [stderr] 6: 0x55ff84c34c8f - std::io::Write::write_fmt::h2d62662cee8637a9 [INFO] [stdout] 6: 0x55ff84c34d1f - std::io::Write::write_fmt::hc6810e91f58091ef [INFO] [stderr] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/std/src/io/mod.rs:1810:15 [INFO] [stdout] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/std/src/io/mod.rs:1810:15 [INFO] [stderr] 7: 0x55ff84c36ed4 - std::sys_common::backtrace::_print::h835c23092b2371d8 [INFO] [stdout] 7: 0x55ff84c36ed4 - std::sys_common::backtrace::_print::h835c23092b2371d8 [INFO] [stderr] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/std/src/sys_common/backtrace.rs:47:5 [INFO] [stdout] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/std/src/sys_common/backtrace.rs:47:5 [INFO] [stderr] 8: 0x55ff84c36ed4 - std::sys_common::backtrace::print::h220bc735ac93468b [INFO] [stdout] 8: 0x55ff84c36ed4 - std::sys_common::backtrace::print::h220bc735ac93468b [INFO] [stderr] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/std/src/sys_common/backtrace.rs:34:9 [INFO] [stdout] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/std/src/sys_common/backtrace.rs:34:9 [INFO] [stderr] 9: 0x55ff84c38c47 - std::panicking::default_hook::{{closure}}::h13e5c81c71823f66 [INFO] [stdout] 9: 0x55ff84c38c47 - std::panicking::default_hook::{{closure}}::h13e5c81c71823f66 [INFO] [stderr] 10: 0x55ff84c389a9 - std::panicking::default_hook::h49decadd8f3385a7 [INFO] [stdout] 10: 0x55ff84c3892d - std::panicking::default_hook::h49decadd8f3385a7 [INFO] [stderr] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/std/src/panicking.rs:292:9 [INFO] [stdout] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/std/src/panicking.rs:289:9 [INFO] [stderr] 11: 0x55ff84c08c37 - as core::ops::function::Fn>::call::h948fb53b8b08f768 [INFO] [stdout] 11: 0x55ff84c08c37 - as core::ops::function::Fn>::call::h948fb53b8b08f768 [INFO] [stderr] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/alloc/src/boxed.rs:2029:9 [INFO] [stdout] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/alloc/src/boxed.rs:2029:9 [INFO] [stderr] 12: 0x55ff84c08c37 - test::test_main::{{closure}}::hb4f3e5071c7080f1 [INFO] [stdout] 12: 0x55ff84c08c37 - test::test_main::{{closure}}::hb4f3e5071c7080f1 [INFO] [stderr] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/test/src/lib.rs:138:21 [INFO] [stdout] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/test/src/lib.rs:138:21 [INFO] [stderr] 13: 0x55ff84c39266 - as core::ops::function::Fn>::call::hcd5802f61674126e [INFO] [stdout] 13: 0x55ff84c39266 - as core::ops::function::Fn>::call::hcd5802f61674126e [INFO] [stderr] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/alloc/src/boxed.rs:2029:9 [INFO] [stdout] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/alloc/src/boxed.rs:2029:9 [INFO] [stderr] 14: 0x55ff84c39266 - std::panicking::rust_panic_with_hook::hd27f6b49984c37db [INFO] [stdout] 14: 0x55ff84c39266 - std::panicking::rust_panic_with_hook::hd27f6b49984c37db [INFO] [stderr] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/std/src/panicking.rs:783:13 [INFO] [stdout] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/std/src/panicking.rs:783:13 [INFO] [stderr] 15: 0x55ff84c38f79 - std::panicking::begin_panic_handler::{{closure}}::h3cbc731df9d96e4d [INFO] [stdout] 15: 0x55ff84c38fb2 - std::panicking::begin_panic_handler::{{closure}}::h3cbc731df9d96e4d [INFO] [stderr] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/std/src/panicking.rs:649:13 [INFO] [stdout] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/std/src/panicking.rs:657:13 [INFO] [stderr] 16: 0x55ff84c375f6 - std::sys_common::backtrace::__rust_end_short_backtrace::hc27809f103d211f0 [INFO] [stdout] 16: 0x55ff84c375f6 - std::sys_common::backtrace::__rust_end_short_backtrace::hc27809f103d211f0 [INFO] [stderr] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/std/src/sys_common/backtrace.rs:171:18 [INFO] [stdout] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/std/src/sys_common/backtrace.rs:171:18 [INFO] [stderr] 17: 0x55ff84c38d10 - rust_begin_unwind [INFO] [stdout] 17: 0x55ff84c38d10 - rust_begin_unwind [INFO] [stderr] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/std/src/panicking.rs:645:5 [INFO] [stdout] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/std/src/panicking.rs:645:5 [INFO] [stderr] 18: 0x55ff84b8ffea - core::panicking::panic_nounwind_fmt::runtime::h79433d7a9371a1fb [INFO] [stdout] 18: 0x55ff84b8ff85 - core::panicking::panic_fmt::ha729e53058547cad [INFO] [stderr] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/core/src/panicking.rs:110:18 [INFO] [stdout] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/core/src/panicking.rs:72:14 [INFO] [stderr] 19: 0x55ff84b8ffea - core::panicking::panic_nounwind_fmt::heb1777ffb282f734 [INFO] [stdout] 19: 0x55ff84ba2777 - mujs::State::_panic::h3fc2a8e941685f4f [INFO] [stderr] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/core/src/panicking.rs:122:9 [INFO] [stdout] at /opt/rustwide/workdir/src/lib.rs:242:9 [INFO] [stderr] 20: 0x55ff84b90099 - core::panicking::panic_nounwind::h2a8e48c64804e2e1 [INFO] [stdout] 20: 0x55ff84bc9584 - js_throw [INFO] [stderr] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/core/src/panicking.rs:155:5 [INFO] [stdout] at /opt/rustwide/workdir/mujs/jsrun.c:1221:3 [INFO] [stderr] 21: 0x55ff84b90273 - core::panicking::panic_cannot_unwind::ha70d7e329091b963 [INFO] [stdout] 21: 0x55ff84ba3b09 - mujs::State::error::h25b43f032c68b4dc [INFO] [stderr] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/core/src/panicking.rs:241:5 [INFO] [stdout] at /opt/rustwide/workdir/src/lib.rs:462:13 [INFO] [stderr] 22: 0x55ff84ba26b3 - mujs::State::_panic::h3fc2a8e941685f4f [INFO] [stdout] 22: 0x55ff84b95ef2 - mujs::tests::error_should_panic::h9cb1c99b0a7285a0 [INFO] [stderr] at /opt/rustwide/workdir/src/lib.rs:238:5 [INFO] [stdout] at /opt/rustwide/workdir/src/lib.rs:1358:9 [INFO] [stderr] 23: 0x55ff84bc9584 - js_throw [INFO] [stdout] 23: 0x55ff84b95ea7 - mujs::tests::error_should_panic::{{closure}}::hcb9bc9090a250566 [INFO] [stderr] at /opt/rustwide/workdir/mujs/jsrun.c:1221:3 [INFO] [stdout] at /opt/rustwide/workdir/src/lib.rs:1356:28 [INFO] [stderr] 24: 0x55ff84ba3b09 - mujs::State::error::h25b43f032c68b4dc [INFO] [stdout] 24: 0x55ff84b9f9e6 - core::ops::function::FnOnce::call_once::he728a48743a7ce82 [INFO] [stderr] at /opt/rustwide/workdir/src/lib.rs:462:13 [INFO] [stdout] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/core/src/ops/function.rs:250:5 [INFO] [stderr] 25: 0x55ff84b95ef2 - mujs::tests::error_should_panic::h9cb1c99b0a7285a0 [INFO] [stdout] 25: 0x55ff84c0e50f - core::ops::function::FnOnce::call_once::hc0fe9d49e29a8147 [INFO] [stderr] at /opt/rustwide/workdir/src/lib.rs:1358:9 [INFO] [stdout] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/core/src/ops/function.rs:250:5 [INFO] [stderr] 26: 0x55ff84b95ea7 - mujs::tests::error_should_panic::{{closure}}::hcb9bc9090a250566 [INFO] [stdout] 26: 0x55ff84c0e50f - test::__rust_begin_short_backtrace::haa61ceb70470fb3e [INFO] [stderr] at /opt/rustwide/workdir/src/lib.rs:1356:28 [INFO] [stdout] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/test/src/lib.rs:627:18 [INFO] [stderr] 27: 0x55ff84b9f9e6 - core::ops::function::FnOnce::call_once::he728a48743a7ce82 [INFO] [stdout] 27: 0x55ff84c0d291 - test::run_test_in_process::{{closure}}::h8585fae9636dddb2 [INFO] [stderr] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/core/src/ops/function.rs:250:5 [INFO] [stdout] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/test/src/lib.rs:650:60 [INFO] [stderr] 28: 0x55ff84c0e50f - core::ops::function::FnOnce::call_once::hc0fe9d49e29a8147 [INFO] [stdout] 28: 0x55ff84c0d291 - as core::ops::function::FnOnce<()>>::call_once::hb7a42bf7326d90ad [INFO] [stderr] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/core/src/ops/function.rs:250:5 [INFO] [stdout] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stderr] 29: 0x55ff84c0e50f - test::__rust_begin_short_backtrace::haa61ceb70470fb3e [INFO] [stdout] 29: 0x55ff84c0d291 - std::panicking::try::do_call::h9063f39381e190d5 [INFO] [stderr] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/test/src/lib.rs:627:18 [INFO] [stdout] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/std/src/panicking.rs:552:40 [INFO] [stderr] 30: 0x55ff84c0d291 - test::run_test_in_process::{{closure}}::h8585fae9636dddb2 [INFO] [stdout] 30: 0x55ff84c0d291 - std::panicking::try::h1e696c55679552ba [INFO] [stderr] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/test/src/lib.rs:650:60 [INFO] [stdout] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/std/src/panicking.rs:516:19 [INFO] [stderr] 31: 0x55ff84c0d291 - as core::ops::function::FnOnce<()>>::call_once::hb7a42bf7326d90ad [INFO] [stdout] 31: 0x55ff84c0d291 - std::panic::catch_unwind::ha638c57cde7bcebd [INFO] [stderr] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/std/src/panic.rs:142:14 [INFO] [stderr] 32: 0x55ff84c0d291 - std::panicking::try::do_call::h9063f39381e190d5 [INFO] [stdout] 32: 0x55ff84c0d291 - test::run_test_in_process::h87d13783dd3d2492 [INFO] [stderr] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/std/src/panicking.rs:552:40 [INFO] [stdout] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/test/src/lib.rs:650:27 [INFO] [stderr] 33: 0x55ff84c0d291 - std::panicking::try::h1e696c55679552ba [INFO] [stdout] 33: 0x55ff84c0d291 - test::run_test::{{closure}}::hbfb7402b4584e0f1 [INFO] [stderr] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/std/src/panicking.rs:516:19 [INFO] [stdout] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/test/src/lib.rs:573:43 [INFO] [stderr] 34: 0x55ff84c0d291 - std::panic::catch_unwind::ha638c57cde7bcebd [INFO] [stdout] 34: 0x55ff84bd4736 - test::run_test::{{closure}}::h6b5a8e7824747db3 [INFO] [stderr] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/std/src/panic.rs:142:14 [INFO] [stdout] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/test/src/lib.rs:601:41 [INFO] [stderr] 35: 0x55ff84c0d291 - test::run_test_in_process::h87d13783dd3d2492 [INFO] [stdout] 35: 0x55ff84bd4736 - std::sys_common::backtrace::__rust_begin_short_backtrace::hd4768720b288897d [INFO] [stderr] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/test/src/lib.rs:650:27 [INFO] [stdout] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/std/src/sys_common/backtrace.rs:155:18 [INFO] [stderr] 36: 0x55ff84c0d291 - test::run_test::{{closure}}::hbfb7402b4584e0f1 [INFO] [stdout] 36: 0x55ff84bd9797 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::ha03eb79d3e2ff5a3 [INFO] [stderr] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/test/src/lib.rs:573:43 [INFO] [stdout] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/std/src/thread/mod.rs:529:17 [INFO] [stderr] 37: 0x55ff84bd4736 - test::run_test::{{closure}}::h6b5a8e7824747db3 [INFO] [stdout] 37: 0x55ff84bd9797 - as core::ops::function::FnOnce<()>>::call_once::hec8051eee7bc5c29 [INFO] [stderr] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/test/src/lib.rs:601:41 [INFO] [stdout] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stderr] 38: 0x55ff84bd4736 - std::sys_common::backtrace::__rust_begin_short_backtrace::hd4768720b288897d [INFO] [stdout] 38: 0x55ff84bd9797 - std::panicking::try::do_call::ha639d9c4a070100b [INFO] [stderr] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/std/src/sys_common/backtrace.rs:155:18 [INFO] [stdout] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/std/src/panicking.rs:552:40 [INFO] [stderr] 39: 0x55ff84bd9797 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::ha03eb79d3e2ff5a3 [INFO] [stdout] 39: 0x55ff84bd9797 - std::panicking::try::ha45df3d3f6ed1370 [INFO] [stderr] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/std/src/thread/mod.rs:529:17 [INFO] [stdout] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/std/src/panicking.rs:516:19 [INFO] [stderr] 40: 0x55ff84bd9797 - as core::ops::function::FnOnce<()>>::call_once::hec8051eee7bc5c29 [INFO] [stdout] 40: 0x55ff84bd9797 - std::panic::catch_unwind::hac44f4c50a87c82d [INFO] [stderr] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/std/src/panic.rs:142:14 [INFO] [stderr] 41: 0x55ff84bd9797 - std::panicking::try::do_call::ha639d9c4a070100b [INFO] [stdout] 41: 0x55ff84bd9797 - std::thread::Builder::spawn_unchecked_::{{closure}}::hfecb7080eaed2a35 [INFO] [stderr] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/std/src/panicking.rs:552:40 [INFO] [stdout] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/std/src/thread/mod.rs:528:30 [INFO] [stderr] 42: 0x55ff84bd9797 - std::panicking::try::ha45df3d3f6ed1370 [INFO] [stdout] 42: 0x55ff84bd9797 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h4739d9410aed0b36 [INFO] [stderr] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/std/src/panicking.rs:516:19 [INFO] [stdout] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/core/src/ops/function.rs:250:5 [INFO] [stderr] 43: 0x55ff84bd9797 - std::panic::catch_unwind::hac44f4c50a87c82d [INFO] [stdout] 43: 0x55ff84c3dd15 - as core::ops::function::FnOnce>::call_once::hf07182c172025753 [INFO] [stderr] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/std/src/panic.rs:142:14 [INFO] [stdout] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/alloc/src/boxed.rs:2015:9 [INFO] [stderr] 44: 0x55ff84bd9797 - std::thread::Builder::spawn_unchecked_::{{closure}}::hfecb7080eaed2a35 [INFO] [stdout] 44: 0x55ff84c3dd15 - as core::ops::function::FnOnce>::call_once::hffcc280980d6bb6c [INFO] [stderr] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/std/src/thread/mod.rs:528:30 [INFO] [stdout] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/alloc/src/boxed.rs:2015:9 [INFO] [stderr] 45: 0x55ff84bd9797 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h4739d9410aed0b36 [INFO] [stdout] 45: 0x55ff84c3dd15 - std::sys::unix::thread::Thread::new::thread_start::h35e8c1dabb0282bb [INFO] [stderr] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/core/src/ops/function.rs:250:5 [INFO] [stdout] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/std/src/sys/unix/thread.rs:108:17 [INFO] [stderr] 46: 0x55ff84c3dd15 - as core::ops::function::FnOnce>::call_once::hf07182c172025753 [INFO] [stdout] 46: 0x7efceaf46ac3 - [INFO] [stderr] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/alloc/src/boxed.rs:2015:9 [INFO] [stdout] 47: 0x7efceafd7bf4 - __clone [INFO] [stderr] 47: 0x55ff84c3dd15 - as core::ops::function::FnOnce>::call_once::hffcc280980d6bb6c [INFO] [stdout] 48: 0x0 - [INFO] [stderr] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/alloc/src/boxed.rs:2015:9 [INFO] [stderr] 48: 0x55ff84c3dd15 - std::sys::unix::thread::Thread::new::thread_start::h35e8c1dabb0282bb [INFO] [stderr] at /rustc/9c1665de5d324fe858dc15371578d6f928bfc123/library/std/src/sys/unix/thread.rs:108:17 [INFO] [stderr] 49: 0x7efceaf46ac3 - [INFO] [stderr] 50: 0x7efceafd7bf4 - __clone [INFO] [stderr] 51: 0x0 - [INFO] [stderr] thread caused non-unwinding panic. aborting. [INFO] [stderr] error: test failed, to rerun pass `--lib` [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `/opt/rustwide/target/debug/deps/mujs-0f1a582a1a799057` (signal: 6, SIGABRT: process abort signal) [INFO] running `Command { std: "docker" "inspect" "013fc7b1c13fc4b26ae7bcde1f1b1764572ffce827f713f2c1c7116e3250c021", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "013fc7b1c13fc4b26ae7bcde1f1b1764572ffce827f713f2c1c7116e3250c021", kill_on_drop: false }` [INFO] [stdout] 013fc7b1c13fc4b26ae7bcde1f1b1764572ffce827f713f2c1c7116e3250c021