[INFO] updating cached repository ehsanul/brick [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/ehsanul/brick [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/ehsanul/brick" "work/ex/pr-63376/sources/master#60960a260f7b5c695fd0717311d72ce62dd4eb43/gh/ehsanul/brick"` [INFO] [stderr] Cloning into 'work/ex/pr-63376/sources/master#60960a260f7b5c695fd0717311d72ce62dd4eb43/gh/ehsanul/brick'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/ehsanul/brick" "work/ex/pr-63376/sources/try#266783e4e09e4e9d5307c1c8e695659c58bbcac7/gh/ehsanul/brick"` [INFO] [stderr] Cloning into 'work/ex/pr-63376/sources/try#266783e4e09e4e9d5307c1c8e695659c58bbcac7/gh/ehsanul/brick'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 0acda04ba2510eb4417b82548fad6ba009831b97 [INFO] sha for GitHub repo ehsanul/brick: 0acda04ba2510eb4417b82548fad6ba009831b97 [INFO] validating manifest of ehsanul/brick on toolchain master#60960a260f7b5c695fd0717311d72ce62dd4eb43 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+60960a260f7b5c695fd0717311d72ce62dd4eb43-alt" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] validating manifest of ehsanul/brick on toolchain try#266783e4e09e4e9d5307c1c8e695659c58bbcac7 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+266783e4e09e4e9d5307c1c8e695659c58bbcac7-alt" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started frobbing ehsanul/brick [INFO] removed path dependency rlbot from ehsanul/brick [INFO] removed path dependency state from ehsanul/brick [INFO] finished frobbing ehsanul/brick [INFO] frobbed toml for ehsanul/brick written to work/ex/pr-63376/sources/master#60960a260f7b5c695fd0717311d72ce62dd4eb43/gh/ehsanul/brick/Cargo.toml [INFO] started frobbing ehsanul/brick [INFO] removed path dependency rlbot from ehsanul/brick [INFO] removed path dependency state from ehsanul/brick [INFO] finished frobbing ehsanul/brick [INFO] frobbed toml for ehsanul/brick written to work/ex/pr-63376/sources/try#266783e4e09e4e9d5307c1c8e695659c58bbcac7/gh/ehsanul/brick/Cargo.toml [INFO] crate ehsanul/brick already has a lockfile, it will not be regenerated [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+60960a260f7b5c695fd0717311d72ce62dd4eb43-alt" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] Updating crates.io index [INFO] [stderr] error: the lock file /mnt/big/crater/work/ex/pr-63376/sources/master#60960a260f7b5c695fd0717311d72ce62dd4eb43/gh/ehsanul/brick/Cargo.lock needs to be updated but --locked was passed to prevent this [INFO] the lockfile is outdated, regenerating it [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+60960a260f7b5c695fd0717311d72ce62dd4eb43-alt" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+266783e4e09e4e9d5307c1c8e695659c58bbcac7-alt" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+60960a260f7b5c695fd0717311d72ce62dd4eb43-alt" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+266783e4e09e4e9d5307c1c8e695659c58bbcac7-alt" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] checking ehsanul/brick against try#266783e4e09e4e9d5307c1c8e695659c58bbcac7 for pr-63376 [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/pr-63376/worker-7/try#266783e4e09e4e9d5307c1c8e695659c58bbcac7:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/pr-63376/sources/try#266783e4e09e4e9d5307c1c8e695659c58bbcac7/gh/ehsanul/brick:/opt/crater/workdir:ro,Z" "-v" "/mnt/big/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/big/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+266783e4e09e4e9d5307c1c8e695659c58bbcac7-alt" "check" "--frozen" "--all" "--all-targets"` [INFO] [stdout] 3a5b73ed17aabc039acc2eb99bfeb9e489231d46b6065f092c77c5f97adbf874 [INFO] running `"docker" "start" "-a" "3a5b73ed17aabc039acc2eb99bfeb9e489231d46b6065f092c77c5f97adbf874"` [INFO] [stderr] warning: dependency (rlbot) specified without providing a local path, Git repository, or version to use. This will be considered an error in future versions [INFO] [stderr] warning: dependency (state) specified without providing a local path, Git repository, or version to use. This will be considered an error in future versions [INFO] [stderr] Compiling dynamic_reload v0.3.0 [INFO] [stderr] Compiling brick v0.1.0 (/opt/crater/workdir) [INFO] [stderr] Checking ratelimit v0.4.4 [INFO] [stderr] Checking flatbuffers v0.5.0 [INFO] [stderr] Checking net2 v0.2.33 [INFO] [stderr] Checking nix v0.5.1 [INFO] [stderr] Checking filetime v0.1.15 [INFO] [stderr] Checking inotify v0.2.3 [INFO] [stderr] Checking crossbeam-epoch v0.5.2 [INFO] [stderr] Checking crossbeam-epoch v0.6.1 [INFO] [stderr] Checking tempdir v0.3.7 [INFO] [stderr] Compiling phf_generator v0.7.24 [INFO] [stderr] Checking alga v0.5.4 [INFO] [stderr] Checking parking_lot_core v0.3.1 [INFO] [stderr] Checking freetype v0.3.0 [INFO] [stderr] Checking miow v0.1.5 [INFO] [stderr] Checking png v0.11.0 [INFO] [stderr] Checking nalgebra v0.18.0 [INFO] [stderr] Checking crossbeam-deque v0.5.2 [INFO] [stderr] Compiling phf_codegen v0.7.24 [INFO] [stderr] Checking glfw v0.19.0 [INFO] [stderr] Checking parking_lot v0.6.4 [INFO] [stderr] Checking jpeg-decoder v0.1.15 [INFO] [stderr] Compiling target_build_utils v0.3.1 [INFO] [stderr] Checking crossbeam-channel v0.2.6 [INFO] [stderr] Checking mio v0.5.1 [INFO] [stderr] Checking image v0.17.0 [INFO] [stderr] Checking crossbeam v0.4.1 [INFO] [stderr] Checking notify v2.6.3 [INFO] [stderr] Checking nalgebra v0.14.4 [INFO] [stderr] Compiling libloading v0.3.4 [INFO] [stderr] warning[E0502]: cannot borrow `*self` as immutable because it is also borrowed as mutable [INFO] [stderr] --> /opt/crater/cargo-home/registry/src/github.com-1ecc6299db9ec823/nalgebra-0.14.4/src/core/cg.rs:292:44 [INFO] [stderr] | [INFO] [stderr] 292 | self[(j, i)] += shift[j] * self[(D::dim() - 1, i)]; [INFO] [stderr] | ---------------------------^^^^------------------- [INFO] [stderr] | | | [INFO] [stderr] | | immutable borrow occurs here [INFO] [stderr] | mutable borrow occurs here [INFO] [stderr] | mutable borrow later used here [INFO] [stderr] | [INFO] [stderr] = warning: this error has been downgraded to a warning for backwards compatibility with previous releases [INFO] [stderr] = warning: this represents potential undefined behavior in your code and this warning will become a hard error in the future [INFO] [stderr] = note: for more information, try `rustc --explain E0729` [INFO] [stderr] [INFO] [stderr] Checking ncollide_math v0.9.1 [INFO] [stderr] Checking ncollide_utils v0.9.1 [INFO] [stderr] Checking ncollide_procedural v0.9.1 [INFO] [stderr] Checking kiss3d v0.13.0 [INFO] [stderr] Checking rlbot v0.5.0 [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `GameState` [INFO] [stderr] --> src/main.rs:36:21 [INFO] [stderr] | [INFO] [stderr] 36 | RwLock::new(GameState::default()) [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `GameState` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `LiveDataPacket` in `rlbot` [INFO] [stderr] --> src/main.rs:200:29 [INFO] [stderr] | [INFO] [stderr] 200 | let mut packet = rlbot::LiveDataPacket::default(); [INFO] [stderr] | ^^^^^^^^^^^^^^ could not find `LiveDataPacket` in `rlbot` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `PlanResult` [INFO] [stderr] --> src/main.rs:201:35 [INFO] [stderr] | [INFO] [stderr] 201 | let mut current_plan_result = PlanResult::default(); [INFO] [stderr] | ^^^^^^^^^^ use of undeclared type or module `PlanResult` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `GameState` [INFO] [stderr] --> src/main.rs:36:21 [INFO] [stderr] | [INFO] [stderr] 36 | RwLock::new(GameState::default()) [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `GameState` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Team` [INFO] [stderr] --> src/main.rs:302:14 [INFO] [stderr] | [INFO] [stderr] 302 | 0 => Team::Blue, [INFO] [stderr] | ^^^^ use of undeclared type or module `Team` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Team` [INFO] [stderr] --> src/main.rs:303:14 [INFO] [stderr] | [INFO] [stderr] 303 | 1 => Team::Orange, [INFO] [stderr] | ^^^^ use of undeclared type or module `Team` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `GameState` in this scope [INFO] [stderr] --> src/main.rs:35:35 [INFO] [stderr] | [INFO] [stderr] 35 | static ref GAME_STATE: RwLock = { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `BALL_RADIUS` in this scope [INFO] [stderr] --> src/main.rs:131:40 [INFO] [stderr] | [INFO] [stderr] 131 | let mut sphere = window.add_sphere(BALL_RADIUS / 1000.0); [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `CAR_DIMENSIONS` in this scope [INFO] [stderr] --> src/main.rs:132:35 [INFO] [stderr] | [INFO] [stderr] 132 | let mut car = window.add_cube(CAR_DIMENSIONS.x/1000.0, CAR_DIMENSIONS.y/1000.0, CAR_DIMENSIONS.z/1000.0); [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `CAR_DIMENSIONS` in this scope [INFO] [stderr] --> src/main.rs:132:60 [INFO] [stderr] | [INFO] [stderr] 132 | let mut car = window.add_cube(CAR_DIMENSIONS.x/1000.0, CAR_DIMENSIONS.y/1000.0, CAR_DIMENSIONS.z/1000.0); [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `CAR_DIMENSIONS` in this scope [INFO] [stderr] --> src/main.rs:132:85 [INFO] [stderr] | [INFO] [stderr] 132 | let mut car = window.add_cube(CAR_DIMENSIONS.x/1000.0, CAR_DIMENSIONS.y/1000.0, CAR_DIMENSIONS.z/1000.0); [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `PIVOT_OFFSET` in this scope [INFO] [stderr] --> src/main.rs:162:80 [INFO] [stderr] | [INFO] [stderr] 162 | let hitbox_position = game_state.player.position.map(|c| c / 1000.0) + PIVOT_OFFSET.map(|c| c / 1000.0); [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `GameState` in this scope [INFO] [stderr] --> src/main.rs:179:49 [INFO] [stderr] | [INFO] [stderr] 179 | let (state_sender, state_receiver): (Sender, Receiver) = mpsc::channel(); [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `GameState` in this scope [INFO] [stderr] --> src/main.rs:179:70 [INFO] [stderr] | [INFO] [stderr] 179 | let (state_sender, state_receiver): (Sender, Receiver) = mpsc::channel(); [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `PlanResult` in this scope [INFO] [stderr] --> src/main.rs:180:47 [INFO] [stderr] | [INFO] [stderr] 180 | let (plan_sender, plan_receiver): (Sender, Receiver) = mpsc::channel(); [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `PlanResult` in this scope [INFO] [stderr] --> src/main.rs:180:69 [INFO] [stderr] | [INFO] [stderr] 180 | let (plan_sender, plan_receiver): (Sender, Receiver) = mpsc::channel(); [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `PlanResult` in this scope [INFO] [stderr] --> src/main.rs:187:34 [INFO] [stderr] | [INFO] [stderr] 187 | fn bot_logic_loop(sender: Sender, receiver: Receiver) { [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `GameState` in this scope [INFO] [stderr] --> src/main.rs:187:66 [INFO] [stderr] | [INFO] [stderr] 187 | fn bot_logic_loop(sender: Sender, receiver: Receiver) { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `GameState` in this scope [INFO] [stderr] --> src/main.rs:199:31 [INFO] [stderr] | [INFO] [stderr] 199 | fn bot_io_loop(sender: Sender, receiver: Receiver) { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `PlanResult` in this scope [INFO] [stderr] --> src/main.rs:199:62 [INFO] [stderr] | [INFO] [stderr] 199 | fn bot_io_loop(sender: Sender, receiver: Receiver) { [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `update_live_data_packet` in crate `rlbot` [INFO] [stderr] --> src/main.rs:214:16 [INFO] [stderr] | [INFO] [stderr] 214 | rlbot::update_live_data_packet(&mut packet); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in `rlbot` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `update_player_input` in crate `rlbot` [INFO] [stderr] --> src/main.rs:228:16 [INFO] [stderr] | [INFO] [stderr] 228 | rlbot::update_player_input(input, player_index as i32); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `build_update_player_input` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `PlanResult` in this scope [INFO] [stderr] --> src/main.rs:232:39 [INFO] [stderr] | [INFO] [stderr] 232 | fn update_visualization(plan_result: &PlanResult) { [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `PlanResult` in this scope [INFO] [stderr] --> src/main.rs:234:9 [INFO] [stderr] | [INFO] [stderr] 234 | let PlanResult { plan, desired, visualization_lines: lines, visualization_points: points } = plan_result; [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `GameState` in this scope [INFO] [stderr] --> src/main.rs:264:38 [INFO] [stderr] | [INFO] [stderr] 264 | fn send_to_bot_logic(sender: &Sender) { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `GameState` in this scope [INFO] [stderr] --> src/main.rs:286:39 [INFO] [stderr] | [INFO] [stderr] 286 | fn update_game_state(game_state: &mut GameState, packet: &rlbot::LiveDataPacket, player_index: usize) { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LiveDataPacket` in crate `rlbot` [INFO] [stderr] --> src/main.rs:286:66 [INFO] [stderr] | [INFO] [stderr] 286 | fn update_game_state(game_state: &mut GameState, packet: &rlbot::LiveDataPacket, player_index: usize) { [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in `rlbot` [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 10 | use rlbot::ffi::LiveDataPacket; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `PlayerState` in this scope [INFO] [stderr] --> src/main.rs:308:42 [INFO] [stderr] | [INFO] [stderr] 308 | type NextInputFunc = extern fn (player: &PlayerState, plan_result: &PlanResult, errors: &mut VecDeque) -> rlbot::PlayerInput; [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `PlanResult` in this scope [INFO] [stderr] --> src/main.rs:308:69 [INFO] [stderr] | [INFO] [stderr] 308 | type NextInputFunc = extern fn (player: &PlayerState, plan_result: &PlanResult, errors: &mut VecDeque) -> rlbot::PlayerInput; [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `PlayerInput` in crate `rlbot` [INFO] [stderr] --> src/main.rs:308:119 [INFO] [stderr] | [INFO] [stderr] 308 | type NextInputFunc = extern fn (player: &PlayerState, plan_result: &PlanResult, errors: &mut VecDeque) -> rlbot::PlayerInput; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] help: a struct with a similar name exists [INFO] [stderr] | [INFO] [stderr] 308 | type NextInputFunc = extern fn (player: &PlayerState, plan_result: &PlanResult, errors: &mut VecDeque) -> rlbot::PlayerInfo; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 10 | use rlbot::ffi::PlayerInput; [INFO] [stderr] | [INFO] [stderr] 10 | use rlbot::flat::PlayerInput; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `PlanResult` in this scope [INFO] [stderr] --> src/main.rs:310:35 [INFO] [stderr] | [INFO] [stderr] 310 | fn next_rlbot_input(plan_result: &PlanResult, errors: &mut VecDeque) -> rlbot::PlayerInput { [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `PlayerInput` in crate `rlbot` [INFO] [stderr] --> src/main.rs:310:85 [INFO] [stderr] | [INFO] [stderr] 310 | fn next_rlbot_input(plan_result: &PlanResult, errors: &mut VecDeque) -> rlbot::PlayerInput { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] help: a struct with a similar name exists [INFO] [stderr] | [INFO] [stderr] 310 | fn next_rlbot_input(plan_result: &PlanResult, errors: &mut VecDeque) -> rlbot::PlayerInfo { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 10 | use rlbot::ffi::PlayerInput; [INFO] [stderr] | [INFO] [stderr] 10 | use rlbot::flat::PlayerInput; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `GameState` in this scope [INFO] [stderr] --> src/main.rs:334:35 [INFO] [stderr] | [INFO] [stderr] 334 | type PlayFunc = extern fn (game: &GameState) -> PlanResult; [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `PlanResult` in this scope [INFO] [stderr] --> src/main.rs:334:49 [INFO] [stderr] | [INFO] [stderr] 334 | type PlayFunc = extern fn (game: &GameState) -> PlanResult; [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `GameState` in this scope [INFO] [stderr] --> src/main.rs:336:33 [INFO] [stderr] | [INFO] [stderr] 336 | fn get_plan_result(game_state: &GameState) -> PlanResult { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `PlanResult` in this scope [INFO] [stderr] --> src/main.rs:336:47 [INFO] [stderr] | [INFO] [stderr] 336 | fn get_plan_result(game_state: &GameState) -> PlanResult { [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::f32::consts::PI` [INFO] [stderr] --> src/main.rs:18:5 [INFO] [stderr] | [INFO] [stderr] 18 | use std::f32::consts::PI; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `state::*` [INFO] [stderr] --> src/main.rs:22:5 [INFO] [stderr] | [INFO] [stderr] 22 | use state::*; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Rotation3`, `Unit` [INFO] [stderr] --> src/main.rs:24:11 [INFO] [stderr] | [INFO] [stderr] 24 | use na::{ Unit, Vector3, Point3, Translation3, UnitQuaternion, Rotation3}; [INFO] [stderr] | ^^^^ ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `LiveDataPacket` in `rlbot` [INFO] [stderr] --> src/main.rs:200:29 [INFO] [stderr] | [INFO] [stderr] 200 | let mut packet = rlbot::LiveDataPacket::default(); [INFO] [stderr] | ^^^^^^^^^^^^^^ could not find `LiveDataPacket` in `rlbot` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `PlanResult` [INFO] [stderr] --> src/main.rs:201:35 [INFO] [stderr] | [INFO] [stderr] 201 | let mut current_plan_result = PlanResult::default(); [INFO] [stderr] | ^^^^^^^^^^ use of undeclared type or module `PlanResult` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::thread::sleep_ms': replaced by `std::thread::sleep` [INFO] [stderr] --> src/main.rs:209:17 [INFO] [stderr] | [INFO] [stderr] 209 | thread::sleep_ms(1000); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::thread::sleep_ms': replaced by `std::thread::sleep` [INFO] [stderr] --> src/main.rs:219:9 [INFO] [stderr] | [INFO] [stderr] 219 | thread::sleep_ms(1000 / 121); // TODO measure time taken and do a diff [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::thread::sleep_ms': replaced by `std::thread::sleep` [INFO] [stderr] --> src/main.rs:412:13 [INFO] [stderr] | [INFO] [stderr] 412 | thread::sleep_ms(1000); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Team` [INFO] [stderr] --> src/main.rs:302:14 [INFO] [stderr] | [INFO] [stderr] 302 | 0 => Team::Blue, [INFO] [stderr] | ^^^^ use of undeclared type or module `Team` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Team` [INFO] [stderr] --> src/main.rs:303:14 [INFO] [stderr] | [INFO] [stderr] 303 | 1 => Team::Orange, [INFO] [stderr] | ^^^^ use of undeclared type or module `Team` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `GameState` in this scope [INFO] [stderr] --> src/main.rs:35:35 [INFO] [stderr] | [INFO] [stderr] 35 | static ref GAME_STATE: RwLock = { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `BALL_RADIUS` in this scope [INFO] [stderr] --> src/main.rs:131:40 [INFO] [stderr] | [INFO] [stderr] 131 | let mut sphere = window.add_sphere(BALL_RADIUS / 1000.0); [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `CAR_DIMENSIONS` in this scope [INFO] [stderr] --> src/main.rs:132:35 [INFO] [stderr] | [INFO] [stderr] 132 | let mut car = window.add_cube(CAR_DIMENSIONS.x/1000.0, CAR_DIMENSIONS.y/1000.0, CAR_DIMENSIONS.z/1000.0); [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `CAR_DIMENSIONS` in this scope [INFO] [stderr] --> src/main.rs:132:60 [INFO] [stderr] | [INFO] [stderr] 132 | let mut car = window.add_cube(CAR_DIMENSIONS.x/1000.0, CAR_DIMENSIONS.y/1000.0, CAR_DIMENSIONS.z/1000.0); [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `CAR_DIMENSIONS` in this scope [INFO] [stderr] --> src/main.rs:132:85 [INFO] [stderr] | [INFO] [stderr] 132 | let mut car = window.add_cube(CAR_DIMENSIONS.x/1000.0, CAR_DIMENSIONS.y/1000.0, CAR_DIMENSIONS.z/1000.0); [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `PIVOT_OFFSET` in this scope [INFO] [stderr] --> src/main.rs:162:80 [INFO] [stderr] | [INFO] [stderr] 162 | let hitbox_position = game_state.player.position.map(|c| c / 1000.0) + PIVOT_OFFSET.map(|c| c / 1000.0); [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `GameState` in this scope [INFO] [stderr] --> src/main.rs:179:49 [INFO] [stderr] | [INFO] [stderr] 179 | let (state_sender, state_receiver): (Sender, Receiver) = mpsc::channel(); [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `GameState` in this scope [INFO] [stderr] --> src/main.rs:179:70 [INFO] [stderr] | [INFO] [stderr] 179 | let (state_sender, state_receiver): (Sender, Receiver) = mpsc::channel(); [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `PlanResult` in this scope [INFO] [stderr] --> src/main.rs:180:47 [INFO] [stderr] | [INFO] [stderr] 180 | let (plan_sender, plan_receiver): (Sender, Receiver) = mpsc::channel(); [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `PlanResult` in this scope [INFO] [stderr] --> src/main.rs:180:69 [INFO] [stderr] | [INFO] [stderr] 180 | let (plan_sender, plan_receiver): (Sender, Receiver) = mpsc::channel(); [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `PlanResult` in this scope [INFO] [stderr] --> src/main.rs:187:34 [INFO] [stderr] | [INFO] [stderr] 187 | fn bot_logic_loop(sender: Sender, receiver: Receiver) { [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `GameState` in this scope [INFO] [stderr] --> src/main.rs:187:66 [INFO] [stderr] | [INFO] [stderr] 187 | fn bot_logic_loop(sender: Sender, receiver: Receiver) { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `GameState` in this scope [INFO] [stderr] --> src/main.rs:199:31 [INFO] [stderr] | [INFO] [stderr] 199 | fn bot_io_loop(sender: Sender, receiver: Receiver) { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `PlanResult` in this scope [INFO] [stderr] --> src/main.rs:199:62 [INFO] [stderr] | [INFO] [stderr] 199 | fn bot_io_loop(sender: Sender, receiver: Receiver) { [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `update_live_data_packet` in crate `rlbot` [INFO] [stderr] --> src/main.rs:214:16 [INFO] [stderr] | [INFO] [stderr] 214 | rlbot::update_live_data_packet(&mut packet); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in `rlbot` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `update_player_input` in crate `rlbot` [INFO] [stderr] --> src/main.rs:228:16 [INFO] [stderr] | [INFO] [stderr] 228 | rlbot::update_player_input(input, player_index as i32); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `build_update_player_input` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `PlanResult` in this scope [INFO] [stderr] --> src/main.rs:232:39 [INFO] [stderr] | [INFO] [stderr] 232 | fn update_visualization(plan_result: &PlanResult) { [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `PlanResult` in this scope [INFO] [stderr] --> src/main.rs:234:9 [INFO] [stderr] | [INFO] [stderr] 234 | let PlanResult { plan, desired, visualization_lines: lines, visualization_points: points } = plan_result; [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `GameState` in this scope [INFO] [stderr] --> src/main.rs:264:38 [INFO] [stderr] | [INFO] [stderr] 264 | fn send_to_bot_logic(sender: &Sender) { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `GameState` in this scope [INFO] [stderr] --> src/main.rs:286:39 [INFO] [stderr] | [INFO] [stderr] 286 | fn update_game_state(game_state: &mut GameState, packet: &rlbot::LiveDataPacket, player_index: usize) { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LiveDataPacket` in crate `rlbot` [INFO] [stderr] --> src/main.rs:286:66 [INFO] [stderr] | [INFO] [stderr] 286 | fn update_game_state(game_state: &mut GameState, packet: &rlbot::LiveDataPacket, player_index: usize) { [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in `rlbot` [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 10 | use rlbot::ffi::LiveDataPacket; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `PlayerState` in this scope [INFO] [stderr] --> src/main.rs:308:42 [INFO] [stderr] | [INFO] [stderr] 308 | type NextInputFunc = extern fn (player: &PlayerState, plan_result: &PlanResult, errors: &mut VecDeque) -> rlbot::PlayerInput; [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `PlanResult` in this scope [INFO] [stderr] --> src/main.rs:308:69 [INFO] [stderr] | [INFO] [stderr] 308 | type NextInputFunc = extern fn (player: &PlayerState, plan_result: &PlanResult, errors: &mut VecDeque) -> rlbot::PlayerInput; [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `PlayerInput` in crate `rlbot` [INFO] [stderr] --> src/main.rs:308:119 [INFO] [stderr] | [INFO] [stderr] 308 | type NextInputFunc = extern fn (player: &PlayerState, plan_result: &PlanResult, errors: &mut VecDeque) -> rlbot::PlayerInput; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] help: a struct with a similar name exists [INFO] [stderr] | [INFO] [stderr] 308 | type NextInputFunc = extern fn (player: &PlayerState, plan_result: &PlanResult, errors: &mut VecDeque) -> rlbot::PlayerInfo; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 10 | use rlbot::ffi::PlayerInput; [INFO] [stderr] | [INFO] [stderr] 10 | use rlbot::flat::PlayerInput; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `PlanResult` in this scope [INFO] [stderr] --> src/main.rs:310:35 [INFO] [stderr] | [INFO] [stderr] 310 | fn next_rlbot_input(plan_result: &PlanResult, errors: &mut VecDeque) -> rlbot::PlayerInput { [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `PlayerInput` in crate `rlbot` [INFO] [stderr] --> src/main.rs:310:85 [INFO] [stderr] | [INFO] [stderr] 310 | fn next_rlbot_input(plan_result: &PlanResult, errors: &mut VecDeque) -> rlbot::PlayerInput { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] help: a struct with a similar name exists [INFO] [stderr] | [INFO] [stderr] 310 | fn next_rlbot_input(plan_result: &PlanResult, errors: &mut VecDeque) -> rlbot::PlayerInfo { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 10 | use rlbot::ffi::PlayerInput; [INFO] [stderr] | [INFO] [stderr] 10 | use rlbot::flat::PlayerInput; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `GameState` in this scope [INFO] [stderr] --> src/main.rs:334:35 [INFO] [stderr] | [INFO] [stderr] 334 | type PlayFunc = extern fn (game: &GameState) -> PlanResult; [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `PlanResult` in this scope [INFO] [stderr] --> src/main.rs:334:49 [INFO] [stderr] | [INFO] [stderr] 334 | type PlayFunc = extern fn (game: &GameState) -> PlanResult; [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `GameState` in this scope [INFO] [stderr] --> src/main.rs:336:33 [INFO] [stderr] | [INFO] [stderr] 336 | fn get_plan_result(game_state: &GameState) -> PlanResult { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `PlanResult` in this scope [INFO] [stderr] --> src/main.rs:336:47 [INFO] [stderr] | [INFO] [stderr] 336 | fn get_plan_result(game_state: &GameState) -> PlanResult { [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::f32::consts::PI` [INFO] [stderr] --> src/main.rs:18:5 [INFO] [stderr] | [INFO] [stderr] 18 | use std::f32::consts::PI; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `state::*` [INFO] [stderr] --> src/main.rs:22:5 [INFO] [stderr] | [INFO] [stderr] 22 | use state::*; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Rotation3`, `Unit` [INFO] [stderr] --> src/main.rs:24:11 [INFO] [stderr] | [INFO] [stderr] 24 | use na::{ Unit, Vector3, Point3, Translation3, UnitQuaternion, Rotation3}; [INFO] [stderr] | ^^^^ ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::thread::sleep_ms': replaced by `std::thread::sleep` [INFO] [stderr] --> src/main.rs:209:17 [INFO] [stderr] | [INFO] [stderr] 209 | thread::sleep_ms(1000); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::thread::sleep_ms': replaced by `std::thread::sleep` [INFO] [stderr] --> src/main.rs:219:9 [INFO] [stderr] | [INFO] [stderr] 219 | thread::sleep_ms(1000 / 121); // TODO measure time taken and do a diff [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::thread::sleep_ms': replaced by `std::thread::sleep` [INFO] [stderr] --> src/main.rs:412:13 [INFO] [stderr] | [INFO] [stderr] 412 | thread::sleep_ms(1000); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `read` found for type `GAME_STATE` in the current scope [INFO] [stderr] --> src/main.rs:154:38 [INFO] [stderr] | [INFO] [stderr] 32 | / lazy_static! { [INFO] [stderr] 33 | | static ref PLAYER_INDEX: Mutex> = Mutex::new(None); [INFO] [stderr] 34 | | [INFO] [stderr] 35 | | static ref GAME_STATE: RwLock = { [INFO] [stderr] ... | [INFO] [stderr] 81 | | }; [INFO] [stderr] 82 | | } [INFO] [stderr] | |_- method `read` not found for this [INFO] [stderr] ... [INFO] [stderr] 154 | let game_state = &GAME_STATE.read().unwrap(); [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following traits define an item `read`, perhaps you need to implement one of them: [INFO] [stderr] candidate #1: `std::io::Read` [INFO] [stderr] candidate #2: `bytes::buf::BufExt` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `write` found for type `GAME_STATE` in the current scope [INFO] [stderr] --> src/main.rs:215:43 [INFO] [stderr] | [INFO] [stderr] 32 | / lazy_static! { [INFO] [stderr] 33 | | static ref PLAYER_INDEX: Mutex> = Mutex::new(None); [INFO] [stderr] 34 | | [INFO] [stderr] 35 | | static ref GAME_STATE: RwLock = { [INFO] [stderr] ... | [INFO] [stderr] 81 | | }; [INFO] [stderr] 82 | | } [INFO] [stderr] | |_- method `write` not found for this [INFO] [stderr] ... [INFO] [stderr] 215 | update_game_state(&mut GAME_STATE.write().unwrap(), &packet, player_index); [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following traits define an item `write`, perhaps you need to implement one of them: [INFO] [stderr] candidate #1: `std::io::Write` [INFO] [stderr] candidate #2: `std::hash::Hasher` [INFO] [stderr] candidate #3: `bytes::buf::MutBufExt` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `read` found for type `GAME_STATE` in the current scope [INFO] [stderr] --> src/main.rs:233:33 [INFO] [stderr] | [INFO] [stderr] 32 | / lazy_static! { [INFO] [stderr] 33 | | static ref PLAYER_INDEX: Mutex> = Mutex::new(None); [INFO] [stderr] 34 | | [INFO] [stderr] 35 | | static ref GAME_STATE: RwLock = { [INFO] [stderr] ... | [INFO] [stderr] 81 | | }; [INFO] [stderr] 82 | | } [INFO] [stderr] | |_- method `read` not found for this [INFO] [stderr] ... [INFO] [stderr] 233 | let game_state = GAME_STATE.read().unwrap(); [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following traits define an item `read`, perhaps you need to implement one of them: [INFO] [stderr] candidate #1: `std::io::Read` [INFO] [stderr] candidate #2: `bytes::buf::BufExt` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `read` found for type `GAME_STATE` in the current scope [INFO] [stderr] --> src/main.rs:154:38 [INFO] [stderr] | [INFO] [stderr] 32 | / lazy_static! { [INFO] [stderr] 33 | | static ref PLAYER_INDEX: Mutex> = Mutex::new(None); [INFO] [stderr] 34 | | [INFO] [stderr] 35 | | static ref GAME_STATE: RwLock = { [INFO] [stderr] ... | [INFO] [stderr] 81 | | }; [INFO] [stderr] 82 | | } [INFO] [stderr] | |_- method `read` not found for this [INFO] [stderr] ... [INFO] [stderr] 154 | let game_state = &GAME_STATE.read().unwrap(); [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following traits define an item `read`, perhaps you need to implement one of them: [INFO] [stderr] candidate #1: `std::io::Read` [INFO] [stderr] candidate #2: `bytes::buf::BufExt` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `read` found for type `GAME_STATE` in the current scope [INFO] [stderr] --> src/main.rs:265:33 [INFO] [stderr] | [INFO] [stderr] 32 | / lazy_static! { [INFO] [stderr] 33 | | static ref PLAYER_INDEX: Mutex> = Mutex::new(None); [INFO] [stderr] 34 | | [INFO] [stderr] 35 | | static ref GAME_STATE: RwLock = { [INFO] [stderr] ... | [INFO] [stderr] 81 | | }; [INFO] [stderr] 82 | | } [INFO] [stderr] | |_- method `read` not found for this [INFO] [stderr] ... [INFO] [stderr] 265 | let game_state = GAME_STATE.read().unwrap(); [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following traits define an item `read`, perhaps you need to implement one of them: [INFO] [stderr] candidate #1: `std::io::Read` [INFO] [stderr] candidate #2: `bytes::buf::BufExt` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `write` found for type `GAME_STATE` in the current scope [INFO] [stderr] --> src/main.rs:215:43 [INFO] [stderr] | [INFO] [stderr] 32 | / lazy_static! { [INFO] [stderr] 33 | | static ref PLAYER_INDEX: Mutex> = Mutex::new(None); [INFO] [stderr] 34 | | [INFO] [stderr] 35 | | static ref GAME_STATE: RwLock = { [INFO] [stderr] ... | [INFO] [stderr] 81 | | }; [INFO] [stderr] 82 | | } [INFO] [stderr] | |_- method `write` not found for this [INFO] [stderr] ... [INFO] [stderr] 215 | update_game_state(&mut GAME_STATE.write().unwrap(), &packet, player_index); [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following traits define an item `write`, perhaps you need to implement one of them: [INFO] [stderr] candidate #1: `std::io::Write` [INFO] [stderr] candidate #2: `std::hash::Hasher` [INFO] [stderr] candidate #3: `bytes::buf::MutBufExt` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `read` found for type `GAME_STATE` in the current scope [INFO] [stderr] --> src/main.rs:233:33 [INFO] [stderr] | [INFO] [stderr] 32 | / lazy_static! { [INFO] [stderr] 33 | | static ref PLAYER_INDEX: Mutex> = Mutex::new(None); [INFO] [stderr] 34 | | [INFO] [stderr] 35 | | static ref GAME_STATE: RwLock = { [INFO] [stderr] ... | [INFO] [stderr] 81 | | }; [INFO] [stderr] 82 | | } [INFO] [stderr] | |_- method `read` not found for this [INFO] [stderr] ... [INFO] [stderr] 233 | let game_state = GAME_STATE.read().unwrap(); [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following traits define an item `read`, perhaps you need to implement one of them: [INFO] [stderr] candidate #1: `std::io::Read` [INFO] [stderr] candidate #2: `bytes::buf::BufExt` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `read` found for type `GAME_STATE` in the current scope [INFO] [stderr] --> src/main.rs:265:33 [INFO] [stderr] | [INFO] [stderr] 32 | / lazy_static! { [INFO] [stderr] 33 | | static ref PLAYER_INDEX: Mutex> = Mutex::new(None); [INFO] [stderr] 34 | | [INFO] [stderr] 35 | | static ref GAME_STATE: RwLock = { [INFO] [stderr] ... | [INFO] [stderr] 81 | | }; [INFO] [stderr] 82 | | } [INFO] [stderr] | |_- method `read` not found for this [INFO] [stderr] ... [INFO] [stderr] 265 | let game_state = GAME_STATE.read().unwrap(); [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following traits define an item `read`, perhaps you need to implement one of them: [INFO] [stderr] candidate #1: `std::io::Read` [INFO] [stderr] candidate #2: `bytes::buf::BufExt` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `read` found for type `GAME_STATE` in the current scope [INFO] [stderr] --> src/main.rs:325:37 [INFO] [stderr] | [INFO] [stderr] 32 | / lazy_static! { [INFO] [stderr] 33 | | static ref PLAYER_INDEX: Mutex> = Mutex::new(None); [INFO] [stderr] 34 | | [INFO] [stderr] 35 | | static ref GAME_STATE: RwLock = { [INFO] [stderr] ... | [INFO] [stderr] 81 | | }; [INFO] [stderr] 82 | | } [INFO] [stderr] | |_- method `read` not found for this [INFO] [stderr] ... [INFO] [stderr] 325 | let game_state = GAME_STATE.read().unwrap(); [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following traits define an item `read`, perhaps you need to implement one of them: [INFO] [stderr] candidate #1: `std::io::Read` [INFO] [stderr] candidate #2: `bytes::buf::BufExt` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `read` found for type `GAME_STATE` in the current scope [INFO] [stderr] --> src/main.rs:325:37 [INFO] [stderr] | [INFO] [stderr] 32 | / lazy_static! { [INFO] [stderr] 33 | | static ref PLAYER_INDEX: Mutex> = Mutex::new(None); [INFO] [stderr] 34 | | [INFO] [stderr] 35 | | static ref GAME_STATE: RwLock = { [INFO] [stderr] ... | [INFO] [stderr] 81 | | }; [INFO] [stderr] 82 | | } [INFO] [stderr] | |_- method `read` not found for this [INFO] [stderr] ... [INFO] [stderr] 325 | let game_state = GAME_STATE.read().unwrap(); [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following traits define an item `read`, perhaps you need to implement one of them: [INFO] [stderr] candidate #1: `std::io::Read` [INFO] [stderr] candidate #2: `bytes::buf::BufExt` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: aborting due to 40 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0412, E0422, E0425, E0433, E0599. [INFO] [stderr] For more information about an error, try `rustc --explain E0412`. [INFO] [stderr] error: Could not compile `brick`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: aborting due to 40 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0412, E0422, E0425, E0433, E0599. [INFO] [stderr] For more information about an error, try `rustc --explain E0412`. [INFO] [stderr] error: Could not compile `brick`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "3a5b73ed17aabc039acc2eb99bfeb9e489231d46b6065f092c77c5f97adbf874"` [INFO] running `"docker" "rm" "-f" "3a5b73ed17aabc039acc2eb99bfeb9e489231d46b6065f092c77c5f97adbf874"` [INFO] [stdout] 3a5b73ed17aabc039acc2eb99bfeb9e489231d46b6065f092c77c5f97adbf874