[INFO] fetching crate rust-native-obf 0.1.1... [INFO] testing rust-native-obf-0.1.1 against master#c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 for pr-146098-8 [INFO] extracting crate rust-native-obf 0.1.1 into /workspace/builds/worker-4-tc1/source [INFO] started tweaking crates.io crate rust-native-obf 0.1.1 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate rust-native-obf 0.1.1 [INFO] tweaked toml for crates.io crate rust-native-obf 0.1.1 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate rust-native-obf 0.1.1 on toolchain c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate rust-native-obf 0.1.1 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e7fedc1145d7ce0fdbd6f32eaae100a6049c58cbb91d5692341e8acf3d3f82a5 [INFO] running `Command { std: "docker" "start" "-a" "e7fedc1145d7ce0fdbd6f32eaae100a6049c58cbb91d5692341e8acf3d3f82a5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e7fedc1145d7ce0fdbd6f32eaae100a6049c58cbb91d5692341e8acf3d3f82a5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e7fedc1145d7ce0fdbd6f32eaae100a6049c58cbb91d5692341e8acf3d3f82a5", kill_on_drop: false }` [INFO] [stdout] e7fedc1145d7ce0fdbd6f32eaae100a6049c58cbb91d5692341e8acf3d3f82a5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 203ee216d4450560666e1773b71e85a41db81a08f1e33f25cb81080be8727161 [INFO] running `Command { std: "docker" "start" "-a" "203ee216d4450560666e1773b71e85a41db81a08f1e33f25cb81080be8727161", kill_on_drop: false }` [INFO] [stderr] Compiling rust-native-obf v0.1.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.23s [INFO] running `Command { std: "docker" "inspect" "203ee216d4450560666e1773b71e85a41db81a08f1e33f25cb81080be8727161", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "203ee216d4450560666e1773b71e85a41db81a08f1e33f25cb81080be8727161", kill_on_drop: false }` [INFO] [stdout] 203ee216d4450560666e1773b71e85a41db81a08f1e33f25cb81080be8727161 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6842a9c965085b21d183b1898bfe2e1438343d01c75c4c855ecb0dd4f7744f13 [INFO] running `Command { std: "docker" "start" "-a" "6842a9c965085b21d183b1898bfe2e1438343d01c75c4c855ecb0dd4f7744f13", kill_on_drop: false }` [INFO] [stderr] Compiling rust-native-obf v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: could not find `cast_rand` in `rng` [INFO] [stdout] --> examples/basic.rs:5:18 [INFO] [stdout] | [INFO] [stdout] 5 | let secret = obf_str!("super secret password"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ could not find `cast_rand` in `rng` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::ct_rand` which comes from the expansion of the macro `obf_str` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `cast_rand` in `rng` [INFO] [stdout] --> examples/basic.rs:15:14 [INFO] [stdout] | [INFO] [stdout] 15 | let r1 = ct_rand!(u32); [INFO] [stdout] | ^^^^^^^^^^^^^ could not find `cast_rand` in `rng` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `ct_rand` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `cast_rand` in `rng` [INFO] [stdout] --> examples/basic.rs:16:14 [INFO] [stdout] | [INFO] [stdout] 16 | let r2 = ct_rand!(u64, "seed1"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ could not find `cast_rand` in `rng` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `ct_rand` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `cast_rand` in `rng` [INFO] [stdout] --> examples/basic.rs:21:23 [INFO] [stdout] | [INFO] [stdout] 21 | let encoded_val = obf_const!(42069, u32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ could not find `cast_rand` in `rng` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::ct_rand` which comes from the expansion of the macro `obf_const` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `cast_rand` in `rng` [INFO] [stdout] --> examples/basic.rs:49:17 [INFO] [stdout] | [INFO] [stdout] 49 | let bytes = obf_bytes!(b"secret bytes"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ could not find `cast_rand` in `rng` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::ct_rand` which comes from the expansion of the macro `obf_bytes` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `cast_rand` in `rng` [INFO] [stdout] --> examples/basic.rs:56:17 [INFO] [stdout] | [INFO] [stdout] 56 | let obf_w = obf_wide!("Wide String"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ could not find `cast_rand` in `rng` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::ct_rand` which comes from the expansion of the macro `obf_wide` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `cast_rand` in `rng` [INFO] [stdout] --> examples/basic.rs:61:19 [INFO] [stdout] | [INFO] [stdout] 61 | let obf_ref = obf_static_ref!(&TEST_DATA); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ could not find `cast_rand` in `rng` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::ct_rand` which comes from the expansion of the macro `obf_static_ref` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `cast_rand` in `rng` [INFO] [stdout] --> examples/basic.rs:61:19 [INFO] [stdout] | [INFO] [stdout] 61 | let obf_ref = obf_static_ref!(&TEST_DATA); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ could not find `cast_rand` in `rng` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::ct_rand` which comes from the expansion of the macro `obf_static_ref` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `cast_rand` in `rng` [INFO] [stdout] --> examples/advanced.rs:7:14 [INFO] [stdout] | [INFO] [stdout] 7 | let s1 = obf_str!("first secret"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ could not find `cast_rand` in `rng` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::ct_rand` which comes from the expansion of the macro `obf_str` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `cast_rand` in `rng` [INFO] [stdout] --> examples/advanced.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | let s2 = obf_str!("second secret"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ could not find `cast_rand` in `rng` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::ct_rand` which comes from the expansion of the macro `obf_str` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `cast_rand` in `rng` [INFO] [stdout] --> examples/advanced.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | let s3 = obf_str!("third secret"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ could not find `cast_rand` in `rng` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::ct_rand` which comes from the expansion of the macro `obf_str` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `cast_rand` in `rng` [INFO] [stdout] --> examples/advanced.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 13 | let result = obf_block!({ [INFO] [stdout] | __________________^ [INFO] [stdout] 14 | | let mut sum = 0; [INFO] [stdout] 15 | | for i in 0..10 { [INFO] [stdout] 16 | | sum += i; [INFO] [stdout] 17 | | } [INFO] [stdout] 18 | | sum [INFO] [stdout] 19 | | }); [INFO] [stdout] | |______^ could not find `cast_rand` in `rng` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::ct_rand` which comes from the expansion of the macro `obf_block` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `cast_rand` in `rng` [INFO] [stdout] --> examples/advanced.rs:49:14 [INFO] [stdout] | [INFO] [stdout] 49 | let c1 = obf_const!(0xdeadbeef, u32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ could not find `cast_rand` in `rng` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::ct_rand` which comes from the expansion of the macro `obf_const` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `cast_rand` in `rng` [INFO] [stdout] --> examples/advanced.rs:50:14 [INFO] [stdout] | [INFO] [stdout] 50 | let c2 = obf_const!(0xcafebabe12345678, u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ could not find `cast_rand` in `rng` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::ct_rand` which comes from the expansion of the macro `obf_const` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `cast_rand` in `rng` [INFO] [stdout] --> examples/advanced.rs:63:18 [INFO] [stdout] | [INFO] [stdout] 63 | let obf_w1 = obf_wide!("Obfuscated Wide"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ could not find `cast_rand` in `rng` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::ct_rand` which comes from the expansion of the macro `obf_wide` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `cast_rand` in `rng` [INFO] [stdout] --> examples/advanced.rs:68:17 [INFO] [stdout] | [INFO] [stdout] 68 | let r = ct_rand!(u32, stringify!(i)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ could not find `cast_rand` in `rng` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `ct_rand` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `cast_rand` in `rng` [INFO] [stdout] --> examples/advanced.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | / obf_block!({ [INFO] [stdout] 107 | | let s = obf_str!("nested secret"); [INFO] [stdout] 108 | | s.len() * 2 [INFO] [stdout] 109 | | }) [INFO] [stdout] | |__________^ could not find `cast_rand` in `rng` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::ct_rand` which comes from the expansion of the macro `obf_block` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `cast_rand` in `rng` [INFO] [stdout] --> examples/advanced.rs:107:21 [INFO] [stdout] | [INFO] [stdout] 107 | let s = obf_str!("nested secret"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ could not find `cast_rand` in `rng` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::ct_rand` which comes from the expansion of the macro `obf_str` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `cast_rand` in `rng` [INFO] [stdout] --> examples/advanced.rs:107:21 [INFO] [stdout] | [INFO] [stdout] 107 | let s = obf_str!("nested secret"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ could not find `cast_rand` in `rng` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::ct_rand` which comes from the expansion of the macro `obf_str` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `cast_rand` in `rng` [INFO] [stdout] --> examples/advanced.rs:107:21 [INFO] [stdout] | [INFO] [stdout] 107 | let s = obf_str!("nested secret"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ could not find `cast_rand` in `rng` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::ct_rand` which comes from the expansion of the macro `obf_str` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0435]: attempt to use a non-constant value in a constant [INFO] [stdout] --> examples/advanced.rs:76:25 [INFO] [stdout] | [INFO] [stdout] 76 | let h1 = ct_xxhash!(data1); [INFO] [stdout] | ^^^^^ non-constant value [INFO] [stdout] | [INFO] [stdout] help: consider using `let` instead of `const` [INFO] [stdout] --> /opt/rustwide/workdir/src/hash.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 - const _H: u32 = $crate::hash::xxhash32($data, 0); [INFO] [stdout] 50 + let _H: u32 = $crate::hash::xxhash32($data, 0); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0435]: attempt to use a non-constant value in a constant [INFO] [stdout] --> examples/advanced.rs:77:25 [INFO] [stdout] | [INFO] [stdout] 77 | let h2 = ct_xxhash!(data2); [INFO] [stdout] | ^^^^^ non-constant value [INFO] [stdout] | [INFO] [stdout] help: consider using `let` instead of `const` [INFO] [stdout] --> /opt/rustwide/workdir/src/hash.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 - const _H: u32 = $crate::hash::xxhash32($data, 0); [INFO] [stdout] 50 + let _H: u32 = $crate::hash::xxhash32($data, 0); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-native-obf` (example "basic") due to 8 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> examples/advanced.rs:7:14 [INFO] [stdout] | [INFO] [stdout] 7 | let s1 = obf_str!("first secret"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^- temporary value is freed at the end of this statement [INFO] [stdout] | | [INFO] [stdout] | creates a temporary value which is freed while still in use [INFO] [stdout] ... [INFO] [stdout] 10 | println!("{} | {} | {}", s1, s2, s3); [INFO] [stdout] | -- borrow later used here [INFO] [stdout] | [INFO] [stdout] = note: consider using a `let` binding to create a longer lived value [INFO] [stdout] = note: this error originates in the macro `obf_str` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> examples/advanced.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | let s2 = obf_str!("second secret"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^- temporary value is freed at the end of this statement [INFO] [stdout] | | [INFO] [stdout] | creates a temporary value which is freed while still in use [INFO] [stdout] 9 | let s3 = obf_str!("third secret"); [INFO] [stdout] 10 | println!("{} | {} | {}", s1, s2, s3); [INFO] [stdout] | -- borrow later used here [INFO] [stdout] | [INFO] [stdout] = note: consider using a `let` binding to create a longer lived value [INFO] [stdout] = note: this error originates in the macro `obf_str` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> examples/advanced.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | let s3 = obf_str!("third secret"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^- temporary value is freed at the end of this statement [INFO] [stdout] | | [INFO] [stdout] | creates a temporary value which is freed while still in use [INFO] [stdout] 10 | println!("{} | {} | {}", s1, s2, s3); [INFO] [stdout] | -- borrow later used here [INFO] [stdout] | [INFO] [stdout] = note: consider using a `let` binding to create a longer lived value [INFO] [stdout] = note: this error originates in the macro `obf_str` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> examples/advanced.rs:107:21 [INFO] [stdout] | [INFO] [stdout] 107 | let s = obf_str!("nested secret"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^- temporary value is freed at the end of this statement [INFO] [stdout] | | [INFO] [stdout] | creates a temporary value which is freed while still in use [INFO] [stdout] 108 | s.len() * 2 [INFO] [stdout] | - borrow later used here [INFO] [stdout] | [INFO] [stdout] = note: consider using a `let` binding to create a longer lived value [INFO] [stdout] = note: this error originates in the macro `obf_str` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> examples/advanced.rs:107:21 [INFO] [stdout] | [INFO] [stdout] 107 | let s = obf_str!("nested secret"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^- temporary value is freed at the end of this statement [INFO] [stdout] | | [INFO] [stdout] | creates a temporary value which is freed while still in use [INFO] [stdout] 108 | s.len() * 2 [INFO] [stdout] | - borrow later used here [INFO] [stdout] | [INFO] [stdout] = note: consider using a `let` binding to create a longer lived value [INFO] [stdout] = note: this error originates in the macro `obf_str` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> examples/advanced.rs:107:21 [INFO] [stdout] | [INFO] [stdout] 107 | let s = obf_str!("nested secret"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^- temporary value is freed at the end of this statement [INFO] [stdout] | | [INFO] [stdout] | creates a temporary value which is freed while still in use [INFO] [stdout] 108 | s.len() * 2 [INFO] [stdout] | - borrow later used here [INFO] [stdout] | [INFO] [stdout] = note: consider using a `let` binding to create a longer lived value [INFO] [stdout] = note: this error originates in the macro `obf_str` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data1` [INFO] [stdout] --> examples/advanced.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | let data1 = b"test data 1"; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_data1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data2` [INFO] [stdout] --> examples/advanced.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 74 | let data2 = b"test data 2"; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_data2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0435, E0716. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-native-obf` (example "advanced") due to 20 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "6842a9c965085b21d183b1898bfe2e1438343d01c75c4c855ecb0dd4f7744f13", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6842a9c965085b21d183b1898bfe2e1438343d01c75c4c855ecb0dd4f7744f13", kill_on_drop: false }` [INFO] [stdout] 6842a9c965085b21d183b1898bfe2e1438343d01c75c4c855ecb0dd4f7744f13