[INFO] fetching crate mujs 0.0.3... [INFO] checking mujs-0.0.3 against master#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] extracting crate mujs 0.0.3 into /workspace/builds/worker-0/source [INFO] validating manifest of crates.io crate mujs 0.0.3 on toolchain a609fb45efad59dfd459c76e50899be9f0583b5a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "read-manifest" "--manifest-path" "Cargo.toml", 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-0/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "rustops/crates-build-env@sha256:c8ac004eab7d63a0ad09a2dde3d3353ba464f767bee4de425dc8f74c46a1905e" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 13783f888349a4df108d79b7a5113ab3d2ea93601204b4f676d04b2a9353ddee [INFO] running `Command { std: "docker" "start" "-a" "13783f888349a4df108d79b7a5113ab3d2ea93601204b4f676d04b2a9353ddee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "13783f888349a4df108d79b7a5113ab3d2ea93601204b4f676d04b2a9353ddee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "13783f888349a4df108d79b7a5113ab3d2ea93601204b4f676d04b2a9353ddee", kill_on_drop: false }` [INFO] [stdout] 13783f888349a4df108d79b7a5113ab3d2ea93601204b4f676d04b2a9353ddee [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:c8ac004eab7d63a0ad09a2dde3d3353ba464f767bee4de425dc8f74c46a1905e" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 8c784e884f9cb259b1ed582359c81457e1a43836be99584b6d94e009bb65ca30 [INFO] running `Command { std: "docker" "start" "-a" "8c784e884f9cb259b1ed582359c81457e1a43836be99584b6d94e009bb65ca30", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [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:5 [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: In file included from mujs/one.c:4: [INFO] [stderr] warning: mujs/jscompile.c: In function 'findlocal': [INFO] [stderr] warning: mujs/jscompile.c:9:22: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: 9 | #define JF js_State *J, js_Function *F [INFO] [stderr] warning: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs/jscompile.c:166:22: note: in expansion of macro 'JF' [INFO] [stderr] warning: 166 | static int findlocal(JF, const char *name) [INFO] [stderr] warning: | ^~ [INFO] [stderr] warning: mujs/jscompile.c: In function 'here': [INFO] [stderr] warning: mujs/jscompile.c:9:22: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: 9 | #define JF js_State *J, js_Function *F [INFO] [stderr] warning: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs/jscompile.c:228:17: note: in expansion of macro 'JF' [INFO] [stderr] warning: 228 | static int here(JF) [INFO] [stderr] warning: | ^~ [INFO] [stderr] warning: mujs/jscompile.c: In function 'checkdup': [INFO] [stderr] warning: mujs/jscompile.c:9:38: warning: unused parameter 'F' [-Wunused-parameter] [INFO] [stderr] warning: 9 | #define JF js_State *J, js_Function *F [INFO] [stderr] warning: | ~~~~~~~~~~~~~^ [INFO] [stderr] warning: mujs/jscompile.c:301:22: note: in expansion of macro 'JF' [INFO] [stderr] warning: 301 | static void checkdup(JF, js_Ast *list, js_Ast *end) [INFO] [stderr] warning: | ^~ [INFO] [stderr] warning: mujs/jscompile.c: In function 'ceval': [INFO] [stderr] warning: mujs/jscompile.c:509:31: warning: unused parameter 'fun' [-Wunused-parameter] [INFO] [stderr] warning: 509 | static void ceval(JF, js_Ast *fun, js_Ast *args) [INFO] [stderr] warning: | ~~~~~~~~^~~ [INFO] [stderr] warning: mujs/jscompile.c: In function 'addjump': [INFO] [stderr] warning: mujs/jscompile.c:9:38: warning: unused parameter 'F' [-Wunused-parameter] [INFO] [stderr] warning: 9 | #define JF js_State *J, js_Function *F [INFO] [stderr] warning: | ~~~~~~~~~~~~~^ [INFO] [stderr] warning: mujs/jscompile.c:730:21: note: in expansion of macro 'JF' [INFO] [stderr] warning: 730 | static void addjump(JF, enum js_AstType type, js_Ast *target, int inst) [INFO] [stderr] warning: | ^~ [INFO] [stderr] warning: mujs/jscompile.c: In function 'breaktarget': [INFO] [stderr] warning: mujs/jscompile.c:9:22: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: 9 | #define JF js_State *J, js_Function *F [INFO] [stderr] warning: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs/jscompile.c:772:28: note: in expansion of macro 'JF' [INFO] [stderr] warning: 772 | static js_Ast *breaktarget(JF, js_Ast *node, const char *label) [INFO] [stderr] warning: | ^~ [INFO] [stderr] warning: mujs/jscompile.c:9:38: warning: unused parameter 'F' [-Wunused-parameter] [INFO] [stderr] warning: 9 | #define JF js_State *J, js_Function *F [INFO] [stderr] warning: | ~~~~~~~~~~~~~^ [INFO] [stderr] warning: mujs/jscompile.c:772:28: note: in expansion of macro 'JF' [INFO] [stderr] warning: 772 | static js_Ast *breaktarget(JF, js_Ast *node, const char *label) [INFO] [stderr] warning: | ^~ [INFO] [stderr] warning: mujs/jscompile.c: In function 'continuetarget': [INFO] [stderr] warning: mujs/jscompile.c:9:22: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: 9 | #define JF js_State *J, js_Function *F [INFO] [stderr] warning: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs/jscompile.c:789:31: note: in expansion of macro 'JF' [INFO] [stderr] warning: 789 | static js_Ast *continuetarget(JF, js_Ast *node, const char *label) [INFO] [stderr] warning: | ^~ [INFO] [stderr] warning: mujs/jscompile.c:9:38: warning: unused parameter 'F' [-Wunused-parameter] [INFO] [stderr] warning: 9 | #define JF js_State *J, js_Function *F [INFO] [stderr] warning: | ~~~~~~~~~~~~~^ [INFO] [stderr] warning: mujs/jscompile.c:789:31: note: in expansion of macro 'JF' [INFO] [stderr] warning: 789 | static js_Ast *continuetarget(JF, js_Ast *node, const char *label) [INFO] [stderr] warning: | ^~ [INFO] [stderr] warning: mujs/jscompile.c: In function 'returntarget': [INFO] [stderr] warning: mujs/jscompile.c:9:22: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: 9 | #define JF js_State *J, js_Function *F [INFO] [stderr] warning: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs/jscompile.c:805:29: note: in expansion of macro 'JF' [INFO] [stderr] warning: 805 | static js_Ast *returntarget(JF, js_Ast *node) [INFO] [stderr] warning: | ^~ [INFO] [stderr] warning: mujs/jscompile.c:9:38: warning: unused parameter 'F' [-Wunused-parameter] [INFO] [stderr] warning: 9 | #define JF js_State *J, js_Function *F [INFO] [stderr] warning: | ~~~~~~~~~~~~~^ [INFO] [stderr] warning: mujs/jscompile.c:805:29: note: in expansion of macro 'JF' [INFO] [stderr] warning: 805 | static js_Ast *returntarget(JF, js_Ast *node) [INFO] [stderr] warning: | ^~ [INFO] [stderr] warning: In file included from mujs/one.c:5: [INFO] [stderr] warning: mujs/jsdate.c: In function 'DaylightSavingTA': [INFO] [stderr] warning: mujs/jsdate.c:44:39: warning: unused parameter 't' [-Wunused-parameter] [INFO] [stderr] warning: 44 | static double DaylightSavingTA(double t) [INFO] [stderr] warning: | ~~~~~~~^ [INFO] [stderr] warning: In file included from mujs/one.c:6: [INFO] [stderr] warning: mujs/jsdtoa.c: In function 'k_comp': [INFO] [stderr] warning: mujs/jsdtoa.c:378:41: warning: unused parameter 'gamma' [-Wunused-parameter] [INFO] [stderr] warning: 378 | static int k_comp(int e, int alpha, int gamma) { [INFO] [stderr] warning: | ~~~~^~~~~ [INFO] [stderr] warning: In file included from mujs/one.c:7: [INFO] [stderr] warning: mujs/jsdump.c: In function 'jsP_dumpsyntax': [INFO] [stderr] warning: mujs/jsdump.c:624:31: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: 624 | void jsP_dumpsyntax(js_State *J, js_Ast *prog) [INFO] [stderr] warning: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs/jsdump.c: In function 'jsP_dumplist': [INFO] [stderr] warning: mujs/jsdump.c:705:29: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: 705 | void jsP_dumplist(js_State *J, js_Ast *prog) [INFO] [stderr] warning: | ~~~~~~~~~~^ [INFO] [stderr] warning: In file included from mujs/one.c:16: [INFO] [stderr] warning: mujs/json.c: In function 'fmtobject': [INFO] [stderr] warning: mujs/json.c:209:63: warning: unused parameter 'obj' [-Wunused-parameter] [INFO] [stderr] warning: 209 | static void fmtobject(js_State *J, js_Buffer **sb, js_Object *obj, const char *gap, int level) [INFO] [stderr] warning: | ~~~~~~~~~~~^~~ [INFO] [stderr] warning: In file included from mujs/one.c:18: [INFO] [stderr] warning: mujs/jsproperty.c: In function 'jsV_getownproperty': [INFO] [stderr] warning: mujs/jsproperty.c:165:43: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: 165 | js_Property *jsV_getownproperty(js_State *J, js_Object *obj, const char *name) [INFO] [stderr] warning: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs/jsproperty.c: In function 'jsV_getpropertyx': [INFO] [stderr] warning: mujs/jsproperty.c:170:41: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: 170 | js_Property *jsV_getpropertyx(js_State *J, js_Object *obj, const char *name, int *own) [INFO] [stderr] warning: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs/jsproperty.c: In function 'jsV_getproperty': [INFO] [stderr] warning: mujs/jsproperty.c:183:40: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: 183 | js_Property *jsV_getproperty(js_State *J, js_Object *obj, const char *name) [INFO] [stderr] warning: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs/jsproperty.c: In function 'jsV_getenumproperty': [INFO] [stderr] warning: mujs/jsproperty.c:194:51: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: 194 | static js_Property *jsV_getenumproperty(js_State *J, js_Object *obj, const char *name) [INFO] [stderr] warning: | ~~~~~~~~~~^ [INFO] [stderr] warning: In file included from mujs/one.c:20: [INFO] [stderr] warning: mujs/jsrun.c: In function 'js_insert': [INFO] [stderr] warning: mujs/jsrun.c:350:33: warning: unused parameter 'idx' [-Wunused-parameter] [INFO] [stderr] warning: 350 | void js_insert(js_State *J, int idx) [INFO] [stderr] warning: | ~~~~^~~ [INFO] [stderr] warning: mujs/jsrun.c: In function 'js_isarrayindex': [INFO] [stderr] warning: mujs/jsrun.c:437:31: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: 437 | int js_isarrayindex(js_State *J, const char *p, int *idx) [INFO] [stderr] warning: | ~~~~~~~~~~^ [INFO] [stderr] warning: In file included from mujs/one.c:21: [INFO] [stderr] warning: mujs/jsstate.c: In function 'js_defaultalloc': [INFO] [stderr] warning: mujs/jsstate.c:10:36: warning: unused parameter 'actx' [-Wunused-parameter] [INFO] [stderr] warning: 10 | static void *js_defaultalloc(void *actx, void *ptr, int size) [INFO] [stderr] warning: | ~~~~~~^~~~ [INFO] [stderr] warning: mujs/jsstate.c: In function 'js_defaultreport': [INFO] [stderr] warning: mujs/jsstate.c:19:40: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: 19 | static void js_defaultreport(js_State *J, const char *message) [INFO] [stderr] warning: | ~~~~~~~~~~^ [INFO] [stderr] warning: In file included from mujs/one.c:22: [INFO] [stderr] warning: mujs/jsstring.c: In function 'js_runeat': [INFO] [stderr] warning: mujs/jsstring.c:14:25: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: 14 | int js_runeat(js_State *J, const char *s, int i) [INFO] [stderr] warning: | ~~~~~~~~~~^ [INFO] [stderr] warning: In file included from mujs/one.c:23: [INFO] [stderr] warning: mujs/jsvalue.c: In function 'jsV_toboolean': [INFO] [stderr] warning: mujs/jsvalue.c:116:29: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: 116 | int jsV_toboolean(js_State *J, js_Value *v) [INFO] [stderr] warning: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs/jsvalue.c: In function 'jsV_stringtonumber': [INFO] [stderr] warning: mujs/jsvalue.c:183:37: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: 183 | double jsV_stringtonumber(js_State *J, const char *s) [INFO] [stderr] warning: | ~~~~~~~~~~^ [INFO] [stderr] warning: mujs/jsvalue.c: In function 'jsV_numbertostring': [INFO] [stderr] warning: mujs/jsvalue.c:227:42: warning: unused parameter 'J' [-Wunused-parameter] [INFO] [stderr] warning: 227 | const char *jsV_numbertostring(js_State *J, char buf[32], double f) [INFO] [stderr] warning: | ~~~~~~~~~~^ [INFO] [stderr] warning: In file included from mujs/one.c:24: [INFO] [stderr] warning: mujs/regexp.c: In function 'default_alloc': [INFO] [stderr] warning: mujs/regexp.c:896:34: warning: unused parameter 'ctx' [-Wunused-parameter] [INFO] [stderr] warning: 896 | static void *default_alloc(void *ctx, void *p, int n) [INFO] [stderr] warning: | ~~~~~~^~~ [INFO] [stderr] warning: In file included from mujs/one.c:22: [INFO] [stderr] warning: mujs/jsstring.c: In function 'Sp_replace_regexp': [INFO] [stderr] warning: mujs/jsstring.c:424:13: warning: this statement may fall through [-Wimplicit-fallthrough=] [INFO] [stderr] warning: 424 | case 0: --r; /* end of string; back up and fall through */ [INFO] [stderr] warning: | ^~~ [INFO] [stderr] warning: mujs/jsstring.c:425:5: note: here [INFO] [stderr] warning: 425 | case '$': js_putc(J, &sb, '$'); break; [INFO] [stderr] warning: | ^~~~ [INFO] [stderr] warning: mujs/jsstring.c: In function 'Sp_replace_string': [INFO] [stderr] warning: mujs/jsstring.c:520:13: warning: this statement may fall through [-Wimplicit-fallthrough=] [INFO] [stderr] warning: 520 | case 0: --r; /* end of string; back up and fall through */ [INFO] [stderr] warning: | ^~~ [INFO] [stderr] warning: mujs/jsstring.c:521:5: note: here [INFO] [stderr] warning: 521 | case '$': js_putc(J, &sb, '$'); break; [INFO] [stderr] warning: | ^~~~ [INFO] [stderr] warning: In file included from mujs/one.c:24: [INFO] [stderr] warning: mujs/regexp.c: In function 'nextrune': [INFO] [stderr] warning: mujs/regexp.c:114:11: warning: this statement may fall through [-Wimplicit-fallthrough=] [INFO] [stderr] warning: 114 | case 0: die(g, "unterminated escape sequence"); [INFO] [stderr] warning: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stderr] warning: mujs/regexp.c:115:3: note: here [INFO] [stderr] warning: 115 | case 'f': g->yychar = '\f'; return 0; [INFO] [stderr] warning: | ^~~~ [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 a macro (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 a macro (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 a macro (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 a macro (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 a macro (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 a macro (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 a macro (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 a macro (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 a macro (in Nightly builds, run with -Z macro-backtrace for more info) [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] | ^^^^^^^^^^^^^ help: use `dyn`: `dyn FnMut(&State)` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [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] | ^^^^^^^^^^^^^ help: use `dyn`: `dyn FnMut(&State)` [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 a macro (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 a macro (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 a macro (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 a macro (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 a macro (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 a macro (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 a macro (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 a macro (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 a macro (in Nightly builds, run with -Z macro-backtrace for more info) [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] | ^^^^^^^^^^^^^ help: use `dyn`: `dyn FnMut(&State)` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [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] | ^^^^^^^^^^^^^ help: use `dyn`: `dyn FnMut(&State)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `js_call` [INFO] [stdout] --> src/lib.rs:62:5 [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: `#[warn(temporary_cstring_as_ptr)]` on by default [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: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: 49 warnings emitted [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: `#[warn(temporary_cstring_as_ptr)]` on by default [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: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: 48 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 4.32s [INFO] running `Command { std: "docker" "inspect" "8c784e884f9cb259b1ed582359c81457e1a43836be99584b6d94e009bb65ca30", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8c784e884f9cb259b1ed582359c81457e1a43836be99584b6d94e009bb65ca30", kill_on_drop: false }` [INFO] [stdout] 8c784e884f9cb259b1ed582359c81457e1a43836be99584b6d94e009bb65ca30