[INFO] fetching crate zekin_data_structure 1.0.0... [INFO] testing zekin_data_structure-1.0.0 against try#2440211fe03bc45c89b6dc1a3df18382ce91e32b for pr-146098-1 [INFO] extracting crate zekin_data_structure 1.0.0 into /workspace/builds/worker-4-tc2/source [INFO] started tweaking crates.io crate zekin_data_structure 1.0.0 [INFO] finished tweaking crates.io crate zekin_data_structure 1.0.0 [INFO] tweaked toml for crates.io crate zekin_data_structure 1.0.0 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate zekin_data_structure 1.0.0 on toolchain 2440211fe03bc45c89b6dc1a3df18382ce91e32b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 43 packages to latest compatible versions [INFO] [stderr] Adding float-cmp v0.8.0 (available: v0.10.0) [INFO] [stderr] Adding itertools v0.9.0 (available: v0.14.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6e6892a4c604ec623ccb524361a5f1a1d2be6c419318387d3f35326a78c63e6f [INFO] running `Command { std: "docker" "start" "-a" "6e6892a4c604ec623ccb524361a5f1a1d2be6c419318387d3f35326a78c63e6f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6e6892a4c604ec623ccb524361a5f1a1d2be6c419318387d3f35326a78c63e6f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6e6892a4c604ec623ccb524361a5f1a1d2be6c419318387d3f35326a78c63e6f", kill_on_drop: false }` [INFO] [stdout] 6e6892a4c604ec623ccb524361a5f1a1d2be6c419318387d3f35326a78c63e6f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c30d2f3ee9ffe7810e1ef792d01abafa157908c67ea44ae319fd858866397d1e [INFO] running `Command { std: "docker" "start" "-a" "c30d2f3ee9ffe7810e1ef792d01abafa157908c67ea44ae319fd858866397d1e", kill_on_drop: false }` [INFO] [stderr] Compiling unicode-ident v1.0.19 [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling quote v1.0.41 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.104 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling rustversion v1.0.22 [INFO] [stderr] Compiling log v0.4.28 [INFO] [stderr] Compiling bumpalo v3.19.0 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling ryu v1.0.20 [INFO] [stderr] Compiling memchr v2.7.6 [INFO] [stderr] Compiling itoa v1.0.15 [INFO] [stderr] Compiling cfg-if v1.0.3 [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling itertools v0.9.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling wasm-bindgen v0.2.104 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling proc-macro-error-attr2 v2.0.0 [INFO] [stderr] Compiling float-cmp v0.8.0 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.104 [INFO] [stderr] Compiling proc-macro-error2 v2.0.1 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling wasm-bindgen-test-macro v0.3.54 [INFO] [stderr] Compiling getset v0.1.6 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.104 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.104 [INFO] [stderr] Compiling js-sys v0.3.81 [INFO] [stderr] Compiling wasm-bindgen-futures v0.4.54 [INFO] [stderr] Compiling wasm-bindgen-test v0.3.54 [INFO] [stderr] Compiling zekin_data_structure v1.0.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 19.43s [INFO] running `Command { std: "docker" "inspect" "c30d2f3ee9ffe7810e1ef792d01abafa157908c67ea44ae319fd858866397d1e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c30d2f3ee9ffe7810e1ef792d01abafa157908c67ea44ae319fd858866397d1e", kill_on_drop: false }` [INFO] [stdout] c30d2f3ee9ffe7810e1ef792d01abafa157908c67ea44ae319fd858866397d1e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 53ab6cca9c0a6b8809a3cb56890637fc5880b5407b5f8e32d3f953ec69a37cb7 [INFO] running `Command { std: "docker" "start" "-a" "53ab6cca9c0a6b8809a3cb56890637fc5880b5407b5f8e32d3f953ec69a37cb7", kill_on_drop: false }` [INFO] [stderr] Compiling zekin_data_structure v1.0.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.80s [INFO] running `Command { std: "docker" "inspect" "53ab6cca9c0a6b8809a3cb56890637fc5880b5407b5f8e32d3f953ec69a37cb7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "53ab6cca9c0a6b8809a3cb56890637fc5880b5407b5f8e32d3f953ec69a37cb7", kill_on_drop: false }` [INFO] [stdout] 53ab6cca9c0a6b8809a3cb56890637fc5880b5407b5f8e32d3f953ec69a37cb7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] f7e2164aa9aa8bc2ac0d5ecabdbe379f11e0a64a8a1ecc27bb76ae9688b01fdd [INFO] running `Command { std: "docker" "start" "-a" "f7e2164aa9aa8bc2ac0d5ecabdbe379f11e0a64a8a1ecc27bb76ae9688b01fdd", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.08s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/zekin_data_structure-1b474c668a2b4189) [INFO] [stdout] [INFO] [stdout] running 22 tests [INFO] [stdout] test algorithm::tests::calculate_road_1 ... ok [INFO] [stdout] test city::tests::get_high_risk ... ok [INFO] [stdout] test algorithm::tests::calculate_time_from_down_to ... ok [INFO] [stdout] test algorithm::tests::calculate_road_1_no_way_because_of_time_out ... ok [INFO] [stdout] test algorithm::tests::calculate_road ... ok [INFO] [stdout] test person::tests::new_person ... ok [INFO] [stdout] test person::tests::calculate_time_from_up_to ... ok [INFO] [stdout] test person::tests::step ... ok [INFO] [stdout] test tests::add_city ... ok [INFO] [stdout] test city::tests::get_medium_risk ... ok [INFO] [stdout] test tests::add_way ... ok [INFO] [stdout] test tests::add_way_failed ... ok [INFO] [stdout] test algorithm::tests::calculate_time_from_up_to ... ok [INFO] [stdout] test way::tests::get_air_risk ... ok [INFO] [stdout] test algorithm::tests::calculate_road_2_no_way ... ok [INFO] [stdout] test algorithm::tests::calculate_road_1_with_time_limit ... ok [INFO] [stdout] test tests::add_person ... ok [INFO] [stdout] test person::tests::calculate_time_from_down_to ... ok [INFO] [stdout] test city::tests::get_low_risk ... ok [INFO] [stdout] test way::tests::get_car_risk ... ok [INFO] [stdout] test city::tests::add_way ... ok [INFO] [stdout] test way::tests::get_train_risk ... ok [INFO] [stderr] Doc-tests zekin_data_structure [INFO] [stdout] [INFO] [stdout] test result: ok. 22 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 3 tests [INFO] [stdout] test src/city.rs - city (line 4) ... FAILED [INFO] [stdout] test src/way.rs - way (line 4) ... FAILED [INFO] [stdout] test src/person.rs - person (line 4) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/city.rs - city (line 4) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `data_structure` [INFO] [stdout] --> src/city.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 3 | use data_structure::city::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `data_structure` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `data_structure`, use `cargo add data_structure` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RiskLevel` [INFO] [stdout] --> src/city.rs:7:25 [INFO] [stdout] | [INFO] [stdout] 5 | let city = city::new(1, RiskLevel::High); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `RiskLevel` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use zekin_data_structure::city::RiskLevel; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `city` [INFO] [stdout] --> src/city.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 5 | let city = city::new(1, RiskLevel::High); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `city` [INFO] [stdout] | [INFO] [stdout] help: to make use of source file src/city.rs, use `mod city` in this file to declare the module [INFO] [stdout] | [INFO] [stdout] 2 + mod city; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/way.rs - way (line 4) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `data_structure` [INFO] [stdout] --> src/way.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 4 | use data_structure::city::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `data_structure` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `data_structure`, use `cargo add data_structure` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `data_structure` [INFO] [stdout] --> src/way.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 5 | use data_structure::way::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `data_structure` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `data_structure`, use `cargo add data_structure` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `data_structure::city::*`, `data_structure::way::*` [INFO] [stdout] --> src/way.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 4 | use data_structure::city::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 5 | use data_structure::way::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `City` [INFO] [stdout] --> src/way.rs:9:22 [INFO] [stdout] | [INFO] [stdout] 7 | let city_0 = Rc::new(City::new(0, RiskLevel::Low)); [INFO] [stdout] | ^^^^ use of undeclared type `City` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use zekin_data_structure::city::City; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RiskLevel` [INFO] [stdout] --> src/way.rs:9:35 [INFO] [stdout] | [INFO] [stdout] 7 | let city_0 = Rc::new(City::new(0, RiskLevel::Low)); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `RiskLevel` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use zekin_data_structure::city::RiskLevel; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `City` [INFO] [stdout] --> src/way.rs:10:22 [INFO] [stdout] | [INFO] [stdout] 8 | let city_1 = Rc::new(City::new(1, RiskLevel::Low)); [INFO] [stdout] | ^^^^ use of undeclared type `City` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use zekin_data_structure::city::City; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RiskLevel` [INFO] [stdout] --> src/way.rs:10:35 [INFO] [stdout] | [INFO] [stdout] 8 | let city_1 = Rc::new(City::new(1, RiskLevel::Low)); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `RiskLevel` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use zekin_data_structure::city::RiskLevel; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Way` [INFO] [stdout] --> src/way.rs:11:21 [INFO] [stdout] | [INFO] [stdout] 9 | let way_0 = Rc::new(Way::new(0, Type::Air, city_0.clone(), city_1.clone(), 3, 4)); [INFO] [stdout] | ^^^ use of undeclared type `Way` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use zekin_data_structure::way::Way; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Type` [INFO] [stdout] --> src/way.rs:11:33 [INFO] [stdout] | [INFO] [stdout] 9 | let way_0 = Rc::new(Way::new(0, Type::Air, city_0.clone(), city_1.clone(), 3, 4)); [INFO] [stdout] | ^^^^ use of undeclared type `Type` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use zekin_data_structure::way::Type; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/person.rs - person (line 4) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `data_structure` [INFO] [stdout] --> src/person.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 4 | use data_structure::person::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `data_structure` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `data_structure`, use `cargo add data_structure` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `data_structure` [INFO] [stdout] --> src/person.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 5 | use data_structure::city::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `data_structure` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `data_structure`, use `cargo add data_structure` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `data_structure` [INFO] [stdout] --> src/person.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 6 | use data_structure::way::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `data_structure` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `data_structure`, use `cargo add data_structure` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `data_structure::person::*`, `data_structure::city::*`, `data_structure::way::*` [INFO] [stdout] --> src/person.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 4 | use data_structure::person::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 5 | use data_structure::city::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 6 | use data_structure::way::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `City` [INFO] [stdout] --> src/person.rs:10:26 [INFO] [stdout] | [INFO] [stdout] 8 | let mut city_0 = Rc::new(City::new(0, RiskLevel::Low)); [INFO] [stdout] | ^^^^ use of undeclared type `City` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use zekin_data_structure::city::City; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RiskLevel` [INFO] [stdout] --> src/person.rs:10:39 [INFO] [stdout] | [INFO] [stdout] 8 | let mut city_0 = Rc::new(City::new(0, RiskLevel::Low)); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `RiskLevel` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use zekin_data_structure::city::RiskLevel; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `City` [INFO] [stdout] --> src/person.rs:11:22 [INFO] [stdout] | [INFO] [stdout] 9 | let city_1 = Rc::new(City::new(1, RiskLevel::Low)); [INFO] [stdout] | ^^^^ use of undeclared type `City` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use zekin_data_structure::city::City; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RiskLevel` [INFO] [stdout] --> src/person.rs:11:35 [INFO] [stdout] | [INFO] [stdout] 9 | let city_1 = Rc::new(City::new(1, RiskLevel::Low)); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `RiskLevel` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use zekin_data_structure::city::RiskLevel; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Way` [INFO] [stdout] --> src/person.rs:13:23 [INFO] [stdout] | [INFO] [stdout] 11 | let way_air = Rc::new(Way::new(1, Type::Air, city_0.clone(), city_1.clone(), 3, 4)); [INFO] [stdout] | ^^^ use of undeclared type `Way` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use zekin_data_structure::way::Way; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Type` [INFO] [stdout] --> src/person.rs:13:35 [INFO] [stdout] | [INFO] [stdout] 11 | let way_air = Rc::new(Way::new(1, Type::Air, city_0.clone(), city_1.clone(), 3, 4)); [INFO] [stdout] | ^^^^ use of undeclared type `Type` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use zekin_data_structure::way::Type; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Person` [INFO] [stdout] --> src/person.rs:19:14 [INFO] [stdout] | [INFO] [stdout] 17 | let person = Person::new(city_0.clone(), city_1, 1, None); [INFO] [stdout] | ^^^^^^ use of undeclared type `Person` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use zekin_data_structure::person::Person; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Status` [INFO] [stdout] --> src/person.rs:23:26 [INFO] [stdout] | [INFO] [stdout] 21 | assert_eq!(person.statu, Status::Waiting(city_0)); [INFO] [stdout] | ^^^^^^ use of undeclared type `Status` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use zekin_data_structure::person::Status; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature `get_mut_unchecked` [INFO] [stdout] --> src/person.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 14 | Rc::get_mut_unchecked(&mut city_0).add_way(way_air.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #63292 for more information [INFO] [stdout] = help: add `#![feature(get_mut_unchecked)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2025-09-25; consider upgrading it if it is out of date [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/person.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 14 | Rc::get_mut_unchecked(&mut city_0).add_way(way_air.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ ------- type must be known at this point [INFO] [stdout] | | [INFO] [stdout] | cannot infer type of the type parameter `T` declared on the struct `Rc` [INFO] [stdout] | [INFO] [stdout] help: consider specifying the generic arguments [INFO] [stdout] | [INFO] [stdout] 14 | Rc::::get_mut_unchecked(&mut city_0).add_way(way_air.clone()); [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 14 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0432, E0433, E0658. [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/city.rs - city (line 4) [INFO] [stdout] src/person.rs - person (line 4) [INFO] [stdout] src/way.rs - way (line 4) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 3 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.16s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "f7e2164aa9aa8bc2ac0d5ecabdbe379f11e0a64a8a1ecc27bb76ae9688b01fdd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f7e2164aa9aa8bc2ac0d5ecabdbe379f11e0a64a8a1ecc27bb76ae9688b01fdd", kill_on_drop: false }` [INFO] [stdout] f7e2164aa9aa8bc2ac0d5ecabdbe379f11e0a64a8a1ecc27bb76ae9688b01fdd