[INFO] fetching crate vial 0.1.9... [INFO] testing vial-0.1.9 against 1.91.0 for beta-1.92-2 [INFO] extracting crate vial 0.1.9 into /workspace/builds/worker-7-tc1/source [INFO] started tweaking crates.io crate vial 0.1.9 [INFO] removed 6 missing examples [INFO] finished tweaking crates.io crate vial 0.1.9 [INFO] tweaked toml for crates.io crate vial 0.1.9 written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate vial 0.1.9 on toolchain 1.91.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.91.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate vial 0.1.9 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" "+1.91.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded hatter v0.1.4 [INFO] [stderr] Downloaded cookie2 v0.12.0 [INFO] [stderr] Downloaded horrorshow v0.8.3 [INFO] [stderr] Downloaded libc-strftime v0.2.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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" "+1.91.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 441714a9318e1d572e18fde35915694db90a2787884e8f48469fe4fad53e5782 [INFO] running `Command { std: "docker" "start" "-a" "441714a9318e1d572e18fde35915694db90a2787884e8f48469fe4fad53e5782", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "441714a9318e1d572e18fde35915694db90a2787884e8f48469fe4fad53e5782", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "441714a9318e1d572e18fde35915694db90a2787884e8f48469fe4fad53e5782", kill_on_drop: false }` [INFO] [stdout] 441714a9318e1d572e18fde35915694db90a2787884e8f48469fe4fad53e5782 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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" "+1.91.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3275f767edaa08917164f30030cf13e8107dea3179d334da6eed64c5bf11eefa [INFO] running `Command { std: "docker" "start" "-a" "3275f767edaa08917164f30030cf13e8107dea3179d334da6eed64c5bf11eefa", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.80 [INFO] [stderr] Compiling vial v0.1.9 (/opt/rustwide/workdir) [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling libc-strftime v0.2.0 [INFO] [stderr] Compiling threadpool v1.8.1 [INFO] [stdout] warning: unknown `doc` attribute `Hidden` [INFO] [stdout] --> src/request.rs:303:11 [INFO] [stdout] | [INFO] [stdout] 303 | #[doc(Hidden)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(invalid_doc_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::sync::atomic::AtomicUsize::compare_and_swap`: Use `compare_exchange` or `compare_exchange_weak` instead [INFO] [stdout] --> src/cache.rs:70:26 [INFO] [stdout] | [INFO] [stdout] 70 | while self.mutex.compare_and_swap(0, 1, Ordering::SeqCst) != 0 {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::sync::atomic::AtomicUsize::compare_and_swap`: Use `compare_exchange` or `compare_exchange_weak` instead [INFO] [stdout] --> src/cache.rs:75:28 [INFO] [stdout] | [INFO] [stdout] 75 | assert!(self.mutex.compare_and_swap(1, 0, Ordering::SeqCst) == 1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/asset.rs:73:19 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn etag(path: &str) -> Cow { [INFO] [stdout] | ^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 73 | pub fn etag(path: &str) -> Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/asset.rs:123:14 [INFO] [stdout] | [INFO] [stdout] 123 | unsafe { crate::BUNDLED_ASSETS.as_ref() } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/asset.rs:151:14 [INFO] [stdout] | [INFO] [stdout] 151 | unsafe { crate::ASSET_DIR.as_ref() } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/request.rs:267:19 [INFO] [stdout] | [INFO] [stdout] 267 | pub fn header(&self, name: &str) -> Option> { [INFO] [stdout] | ^^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 267 | pub fn header(&self, name: &str) -> Option> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/storage.rs:12:14 [INFO] [stdout] | [INFO] [stdout] 12 | unsafe { STORAGE.as_ref().unwrap().get::().as_ref().unwrap() } [INFO] [stdout] | ^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/storage.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | STORAGE.as_ref().unwrap().set(o); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.94s [INFO] running `Command { std: "docker" "inspect" "3275f767edaa08917164f30030cf13e8107dea3179d334da6eed64c5bf11eefa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3275f767edaa08917164f30030cf13e8107dea3179d334da6eed64c5bf11eefa", kill_on_drop: false }` [INFO] [stdout] 3275f767edaa08917164f30030cf13e8107dea3179d334da6eed64c5bf11eefa [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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" "+1.91.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d16630fb83319de43f657bab862bfed019e5685c47f079501824e5844c3a7336 [INFO] running `Command { std: "docker" "start" "-a" "d16630fb83319de43f657bab862bfed019e5685c47f079501824e5844c3a7336", kill_on_drop: false }` [INFO] [stdout] warning: unknown `doc` attribute `Hidden` [INFO] [stdout] --> src/request.rs:303:11 [INFO] [stdout] | [INFO] [stdout] 303 | #[doc(Hidden)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(invalid_doc_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::sync::atomic::AtomicUsize::compare_and_swap`: Use `compare_exchange` or `compare_exchange_weak` instead [INFO] [stdout] --> src/cache.rs:70:26 [INFO] [stdout] | [INFO] [stdout] 70 | while self.mutex.compare_and_swap(0, 1, Ordering::SeqCst) != 0 {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::sync::atomic::AtomicUsize::compare_and_swap`: Use `compare_exchange` or `compare_exchange_weak` instead [INFO] [stdout] --> src/cache.rs:75:28 [INFO] [stdout] | [INFO] [stdout] 75 | assert!(self.mutex.compare_and_swap(1, 0, Ordering::SeqCst) == 1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/asset.rs:73:19 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn etag(path: &str) -> Cow { [INFO] [stdout] | ^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 73 | pub fn etag(path: &str) -> Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/asset.rs:123:14 [INFO] [stdout] | [INFO] [stdout] 123 | unsafe { crate::BUNDLED_ASSETS.as_ref() } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/asset.rs:151:14 [INFO] [stdout] | [INFO] [stdout] 151 | unsafe { crate::ASSET_DIR.as_ref() } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/request.rs:267:19 [INFO] [stdout] | [INFO] [stdout] 267 | pub fn header(&self, name: &str) -> Option> { [INFO] [stdout] | ^^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 267 | pub fn header(&self, name: &str) -> Option> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/storage.rs:12:14 [INFO] [stdout] | [INFO] [stdout] 12 | unsafe { STORAGE.as_ref().unwrap().get::().as_ref().unwrap() } [INFO] [stdout] | ^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/storage.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | STORAGE.as_ref().unwrap().set(o); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling vial v0.1.9 (/opt/rustwide/workdir) [INFO] [stdout] warning: unknown `doc` attribute `Hidden` [INFO] [stdout] --> src/request.rs:303:11 [INFO] [stdout] | [INFO] [stdout] 303 | #[doc(Hidden)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(invalid_doc_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::sync::atomic::AtomicUsize::compare_and_swap`: Use `compare_exchange` or `compare_exchange_weak` instead [INFO] [stdout] --> src/cache.rs:70:26 [INFO] [stdout] | [INFO] [stdout] 70 | while self.mutex.compare_and_swap(0, 1, Ordering::SeqCst) != 0 {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::sync::atomic::AtomicUsize::compare_and_swap`: Use `compare_exchange` or `compare_exchange_weak` instead [INFO] [stdout] --> src/cache.rs:75:28 [INFO] [stdout] | [INFO] [stdout] 75 | assert!(self.mutex.compare_and_swap(1, 0, Ordering::SeqCst) == 1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/asset.rs:73:19 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn etag(path: &str) -> Cow { [INFO] [stdout] | ^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 73 | pub fn etag(path: &str) -> Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/asset.rs:123:14 [INFO] [stdout] | [INFO] [stdout] 123 | unsafe { crate::BUNDLED_ASSETS.as_ref() } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/asset.rs:151:14 [INFO] [stdout] | [INFO] [stdout] 151 | unsafe { crate::ASSET_DIR.as_ref() } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/request.rs:267:19 [INFO] [stdout] | [INFO] [stdout] 267 | pub fn header(&self, name: &str) -> Option> { [INFO] [stdout] | ^^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 267 | pub fn header(&self, name: &str) -> Option> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/storage.rs:12:14 [INFO] [stdout] | [INFO] [stdout] 12 | unsafe { STORAGE.as_ref().unwrap().get::().as_ref().unwrap() } [INFO] [stdout] | ^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/storage.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | STORAGE.as_ref().unwrap().set(o); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.67s [INFO] running `Command { std: "docker" "inspect" "d16630fb83319de43f657bab862bfed019e5685c47f079501824e5844c3a7336", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d16630fb83319de43f657bab862bfed019e5685c47f079501824e5844c3a7336", kill_on_drop: false }` [INFO] [stdout] d16630fb83319de43f657bab862bfed019e5685c47f079501824e5844c3a7336 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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" "+1.91.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] f249769927ff47203acdcf3999d167933dc5e1018cc736164ddac8c5d8622b26 [INFO] running `Command { std: "docker" "start" "-a" "f249769927ff47203acdcf3999d167933dc5e1018cc736164ddac8c5d8622b26", kill_on_drop: false }` [INFO] [stderr] warning: unknown `doc` attribute `Hidden` [INFO] [stderr] --> src/request.rs:303:11 [INFO] [stderr] | [INFO] [stderr] 303 | #[doc(Hidden)] [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(invalid_doc_attributes)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `std::sync::atomic::AtomicUsize::compare_and_swap`: Use `compare_exchange` or `compare_exchange_weak` instead [INFO] [stderr] --> src/cache.rs:70:26 [INFO] [stderr] | [INFO] [stderr] 70 | while self.mutex.compare_and_swap(0, 1, Ordering::SeqCst) != 0 {} [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `std::sync::atomic::AtomicUsize::compare_and_swap`: Use `compare_exchange` or `compare_exchange_weak` instead [INFO] [stderr] --> src/cache.rs:75:28 [INFO] [stderr] | [INFO] [stderr] 75 | assert!(self.mutex.compare_and_swap(1, 0, Ordering::SeqCst) == 1); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/asset.rs:73:19 [INFO] [stderr] | [INFO] [stderr] 73 | pub fn etag(path: &str) -> Cow { [INFO] [stderr] | ^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 73 | pub fn etag(path: &str) -> Cow<'_, str> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/asset.rs:123:14 [INFO] [stderr] | [INFO] [stderr] 123 | unsafe { crate::BUNDLED_ASSETS.as_ref() } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stderr] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/asset.rs:151:14 [INFO] [stderr] | [INFO] [stderr] 151 | unsafe { crate::ASSET_DIR.as_ref() } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/request.rs:267:19 [INFO] [stderr] | [INFO] [stderr] 267 | pub fn header(&self, name: &str) -> Option> { [INFO] [stderr] | ^^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 267 | pub fn header(&self, name: &str) -> Option> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/storage.rs:12:14 [INFO] [stderr] | [INFO] [stderr] 12 | unsafe { STORAGE.as_ref().unwrap().get::().as_ref().unwrap() } [INFO] [stderr] | ^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/storage.rs:17:9 [INFO] [stderr] | [INFO] [stderr] 17 | STORAGE.as_ref().unwrap().set(o); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stderr] [INFO] [stderr] warning: `vial` (lib) generated 9 warnings (run `cargo fix --lib -p vial` to apply 2 suggestions) [INFO] [stderr] warning: `vial` (lib test) generated 9 warnings (9 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.04s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/vial-f7393e4ac563a619) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests vial [INFO] [stdout] [INFO] [stdout] running 21 tests [INFO] [stdout] test src/lib.rs - (line 146) ... ignored [INFO] [stdout] test src/lib.rs - (line 72) - compile ... ok [INFO] [stdout] test src/macros.rs - macros::bundle_assets (line 262) - compile ... ok [INFO] [stdout] test src/macros.rs - macros::routes (line 323) - compile ... ok [INFO] [stdout] test src/macros.rs - macros::asset_dir (line 212) - compile ... ok [INFO] [stdout] test src/asset.rs - asset (line 45) - compile ... ok [INFO] [stdout] test src/macros.rs - macros::run_with_banner (line 78) ... ignored [INFO] [stdout] test src/macros.rs - macros::run_with_banner (line 86) ... ignored [INFO] [stdout] test src/macros.rs - macros::run_with_banner (line 92) ... ignored [INFO] [stdout] test src/macros.rs - macros::routes (line 348) - compile ... ok [INFO] [stdout] test src/macros.rs - macros::run (line 46) - compile ... ok [INFO] [stdout] test src/lib.rs - (line 114) - compile ... ok [INFO] [stdout] test src/request.rs - request::Request::state (line 423) ... ignored [INFO] [stdout] test src/lib.rs - (line 84) - compile ... ok [INFO] [stdout] test src/response.rs - response::Response (line 50) - compile ... ok [INFO] [stdout] test src/macros.rs - macros::use_state (line 126) - compile ... ok [INFO] [stdout] test src/cache.rs - cache::TypeCache (line 17) ... ok [INFO] [stdout] test src/request.rs - request::Request::cache (line 354) - compile ... ok [INFO] [stdout] test src/macros.rs - macros::run (line 20) - compile ... ok [INFO] [stdout] test src/request.rs - request::Request::cache (line 347) ... ok [INFO] [stdout] test src/macros.rs - macros::routes (line 375) ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 16 passed; 0 failed; 5 ignored; 0 measured; 0 filtered out; finished in 0.94s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "f249769927ff47203acdcf3999d167933dc5e1018cc736164ddac8c5d8622b26", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f249769927ff47203acdcf3999d167933dc5e1018cc736164ddac8c5d8622b26", kill_on_drop: false }` [INFO] [stdout] f249769927ff47203acdcf3999d167933dc5e1018cc736164ddac8c5d8622b26