[INFO] cloning repository https://github.com/Rafaelmdcarneiro/rust-speedy2d-test [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Rafaelmdcarneiro/rust-speedy2d-test" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRafaelmdcarneiro%2Frust-speedy2d-test", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRafaelmdcarneiro%2Frust-speedy2d-test'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 401d2fb4547f8f073dbec15e03104d904f63bacb [INFO] testing Rafaelmdcarneiro/rust-speedy2d-test against try#16fbf98f22730e073c09e7b03f0eafb87a295545 for pr-145628-retry-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRafaelmdcarneiro%2Frust-speedy2d-test" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Rafaelmdcarneiro/rust-speedy2d-test [INFO] finished tweaking git repo https://github.com/Rafaelmdcarneiro/rust-speedy2d-test [INFO] tweaked toml for git repo https://github.com/Rafaelmdcarneiro/rust-speedy2d-test written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Rafaelmdcarneiro/rust-speedy2d-test on toolchain 16fbf98f22730e073c09e7b03f0eafb87a295545 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+16fbf98f22730e073c09e7b03f0eafb87a295545" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Rafaelmdcarneiro/rust-speedy2d-test 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" "+16fbf98f22730e073c09e7b03f0eafb87a295545" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+16fbf98f22730e073c09e7b03f0eafb87a295545" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4f51275207a263e2b124ed1553771facdb9e6b46adebfd6c6ec30aae924ef34f [INFO] running `Command { std: "docker" "start" "-a" "4f51275207a263e2b124ed1553771facdb9e6b46adebfd6c6ec30aae924ef34f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4f51275207a263e2b124ed1553771facdb9e6b46adebfd6c6ec30aae924ef34f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4f51275207a263e2b124ed1553771facdb9e6b46adebfd6c6ec30aae924ef34f", kill_on_drop: false }` [INFO] [stdout] 4f51275207a263e2b124ed1553771facdb9e6b46adebfd6c6ec30aae924ef34f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+16fbf98f22730e073c09e7b03f0eafb87a295545" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 314d9d3dd70073b72e26868349c7b4d01798d186af0d54af413c8cdd185c0acf [INFO] running `Command { std: "docker" "start" "-a" "314d9d3dd70073b72e26868349c7b4d01798d186af0d54af413c8cdd185c0acf", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.149 [INFO] [stderr] Compiling xml-rs v0.8.19 [INFO] [stderr] Compiling log v0.4.20 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling khronos_api v3.1.0 [INFO] [stderr] Compiling once_cell v1.18.0 [INFO] [stderr] Compiling memoffset v0.9.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.16 [INFO] [stderr] Compiling libloading v0.8.1 [INFO] [stderr] Compiling wayland-sys v0.29.5 [INFO] [stderr] Compiling crossbeam-epoch v0.9.15 [INFO] [stderr] Compiling memchr v2.6.4 [INFO] [stderr] Compiling downcast-rs v1.2.0 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling rayon-core v1.12.0 [INFO] [stderr] Compiling x11-dl v2.21.0 [INFO] [stderr] Compiling dlib v0.5.2 [INFO] [stderr] Compiling parking_lot_core v0.8.6 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling smithay-client-toolkit v0.15.4 [INFO] [stderr] Compiling instant v0.1.12 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Compiling adler32 v1.2.0 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling either v1.9.0 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Compiling weezl v0.1.7 [INFO] [stderr] Compiling cty v0.2.2 [INFO] [stderr] Compiling winit v0.26.1 [INFO] [stderr] Compiling raw-window-handle v0.4.3 [INFO] [stderr] Compiling deflate v0.8.6 [INFO] [stderr] Compiling backtrace v0.3.69 [INFO] [stderr] Compiling miniz_oxide v0.3.7 [INFO] [stderr] Compiling gimli v0.28.0 [INFO] [stderr] Compiling ttf-parser v0.15.2 [INFO] [stderr] Compiling percent-encoding v2.3.0 [INFO] [stderr] Compiling color_quant v1.1.0 [INFO] [stderr] Compiling wayland-scanner v0.29.5 [INFO] [stderr] Compiling gl_generator v0.14.0 [INFO] [stderr] Compiling gif v0.11.4 [INFO] [stderr] Compiling png v0.16.8 [INFO] [stderr] Compiling object v0.32.1 [INFO] [stderr] Compiling miniz_oxide v0.7.1 [INFO] [stderr] Compiling libloading v0.7.4 [INFO] [stderr] Compiling ab_glyph_rasterizer v0.1.8 [INFO] [stderr] Compiling scoped_threadpool v0.1.9 [INFO] [stderr] Compiling bytemuck v1.14.0 [INFO] [stderr] Compiling rustc-demangle v0.1.23 [INFO] [stderr] Compiling crossbeam-deque v0.8.3 [INFO] [stderr] Compiling glutin_egl_sys v0.1.6 [INFO] [stderr] Compiling glutin_glx_sys v0.1.8 [INFO] [stderr] Compiling gl v0.14.0 [INFO] [stderr] Compiling earcutr v0.2.0 [INFO] [stderr] Compiling glow v0.7.2 [INFO] [stderr] Compiling nix v0.24.3 [INFO] [stderr] Compiling nix v0.22.3 [INFO] [stderr] Compiling memmap2 v0.3.1 [INFO] [stderr] Compiling rayon v1.8.0 [INFO] [stderr] Compiling shared_library v0.1.9 [INFO] [stderr] Compiling wayland-client v0.29.5 [INFO] [stderr] Compiling wayland-protocols v0.29.5 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling mio v0.8.9 [INFO] [stderr] Compiling xcursor v0.3.4 [INFO] [stderr] Compiling osmesa-sys v0.1.2 [INFO] [stderr] Compiling addr2line v0.21.0 [INFO] [stderr] Compiling owned_ttf_parser v0.15.2 [INFO] [stderr] Compiling rusttype v0.9.3 [INFO] [stderr] Compiling wayland-commons v0.29.5 [INFO] [stderr] Compiling jpeg-decoder v0.1.22 [INFO] [stderr] Compiling calloop v0.9.3 [INFO] [stderr] Compiling tiff v0.6.1 [INFO] [stderr] Compiling image v0.23.14 [INFO] [stderr] Compiling wayland-cursor v0.29.5 [INFO] [stderr] Compiling wayland-egl v0.29.5 [INFO] [stderr] Compiling glutin v0.28.0 [INFO] [stderr] Compiling speedy2d v1.12.0 [INFO] [stderr] Compiling rust-win-test v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: invalid `struct` delimiters or `fn` call arguments [INFO] [stdout] --> src/main.rs:10:26 [INFO] [stdout] | [INFO] [stdout] 10 | let window: Window = Window::new_centered(title: "Pendulum", size: (800, 480)).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if `Window::new_centered` is a struct, use braces as delimiters [INFO] [stdout] | [INFO] [stdout] 10 - let window: Window = Window::new_centered(title: "Pendulum", size: (800, 480)).unwrap(); [INFO] [stdout] 10 + let window: Window = Window::new_centered { title: "Pendulum", size: (800, 480) }.unwrap(); [INFO] [stdout] | [INFO] [stdout] help: if `Window::new_centered` is a function, use the arguments directly [INFO] [stdout] | [INFO] [stdout] 10 - let window: Window = Window::new_centered(title: "Pendulum", size: (800, 480)).unwrap(); [INFO] [stdout] 10 + let window: Window = Window::new_centered("Pendulum", (800, 480)).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid `struct` delimiters or `fn` call arguments [INFO] [stdout] --> src/main.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | p: Pendulum::new(x: 400.0, y: 0.0, r: 200.0), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if `Pendulum::new` is a struct, use braces as delimiters [INFO] [stdout] | [INFO] [stdout] 13 - p: Pendulum::new(x: 400.0, y: 0.0, r: 200.0), [INFO] [stdout] 13 + p: Pendulum::new { x: 400.0, y: 0.0, r: 200.0 }, [INFO] [stdout] | [INFO] [stdout] help: if `Pendulum::new` is a function, use the arguments directly [INFO] [stdout] | [INFO] [stdout] 13 - p: Pendulum::new(x: 400.0, y: 0.0, r: 200.0), [INFO] [stdout] 13 + p: Pendulum::new(400.0, 0.0, 200.0), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found `:` [INFO] [stdout] --> src/main.rs:17:28 [INFO] [stdout] | [INFO] [stdout] 17 | window.run_loop(handler: win); [INFO] [stdout] | ^ expected identifier [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid `struct` delimiters or `fn` call arguments [INFO] [stdout] --> src/main.rs:29:31 [INFO] [stdout] | [INFO] [stdout] 29 | graphics.clear_screen(Color::from_rgb(r: 0.8, g: 0.9, b: 1.0)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if `Color::from_rgb` is a struct, use braces as delimiters [INFO] [stdout] | [INFO] [stdout] 29 - graphics.clear_screen(Color::from_rgb(r: 0.8, g: 0.9, b: 1.0)); [INFO] [stdout] 29 + graphics.clear_screen(Color::from_rgb { r: 0.8, g: 0.9, b: 1.0 }); [INFO] [stdout] | [INFO] [stdout] help: if `Color::from_rgb` is a function, use the arguments directly [INFO] [stdout] | [INFO] [stdout] 29 - graphics.clear_screen(Color::from_rgb(r: 0.8, g: 0.9, b: 1.0)); [INFO] [stdout] 29 + graphics.clear_screen(Color::from_rgb(0.8, 0.9, 1.0)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid `struct` delimiters or `fn` call arguments [INFO] [stdout] --> src/main.rs:62:27 [INFO] [stdout] | [INFO] [stdout] 62 | position: Vector::new(x: 0.0, y: 0.0), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if `Vector::new` is a struct, use braces as delimiters [INFO] [stdout] | [INFO] [stdout] 62 - position: Vector::new(x: 0.0, y: 0.0), [INFO] [stdout] 62 + position: Vector::new { x: 0.0, y: 0.0 }, [INFO] [stdout] | [INFO] [stdout] help: if `Vector::new` is a function, use the arguments directly [INFO] [stdout] | [INFO] [stdout] 62 - position: Vector::new(x: 0.0, y: 0.0), [INFO] [stdout] 62 + position: Vector::new(0.0, 0.0), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `!`, `(`, `...`, `..=`, `..`, `::`, `:`, `{`, or `|`, found `)` [INFO] [stdout] --> src/main.rs:74:24 [INFO] [stdout] | [INFO] [stdout] 74 | fn update(&mut Self) { [INFO] [stdout] | ^ expected one of 9 possible tokens [INFO] [stdout] | [INFO] [stdout] help: explicitly ignore the parameter name [INFO] [stdout] | [INFO] [stdout] 74 | fn update(_: &mut Self) { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `(`, `.`, `::`, `;`, `?`, `}`, or an operator, found `Vector` [INFO] [stdout] --> src/main.rs:85:23 [INFO] [stdout] | [INFO] [stdout] 85 | self.position Vector [INFO] [stdout] | ^^^^^^ expected one of 7 possible tokens [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `!`, `(`, `)`, `+`, `,`, `::`, or `<`, found `.` [INFO] [stdout] --> src/main.rs:98:34 [INFO] [stdout] | [INFO] [stdout] 98 | start_position: (self.origin.x, self.origin.y), [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | expected one of 7 possible tokens [INFO] [stdout] | help: missing `,` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `!`, `(`, `)`, `+`, `,`, `::`, or `<`, found `.` [INFO] [stdout] --> src/main.rs:98:41 [INFO] [stdout] | [INFO] [stdout] 98 | start_position: (self.origin.x, self.origin.y), [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | expected one of 7 possible tokens [INFO] [stdout] | help: missing `,` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `!`, `(`, `)`, `+`, `,`, `::`, or `<`, found `.` [INFO] [stdout] --> src/main.rs:98:49 [INFO] [stdout] | [INFO] [stdout] 98 | start_position: (self.origin.x, self.origin.y), [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | expected one of 7 possible tokens [INFO] [stdout] | help: missing `,` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `!`, `(`, `)`, `+`, `,`, `::`, or `<`, found `.` [INFO] [stdout] --> src/main.rs:98:56 [INFO] [stdout] | [INFO] [stdout] 98 | start_position: (self.origin.x, self.origin.y), [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | expected one of 7 possible tokens [INFO] [stdout] | help: missing `,` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `!`, `)`, `,`, `.`, `::`, `?`, `{`, or an operator, found `:` [INFO] [stdout] --> src/main.rs:98:27 [INFO] [stdout] | [INFO] [stdout] 98 | start_position: (self.origin.x, self.origin.y), [INFO] [stdout] | ^ expected one of 8 possible tokens [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0424]: expected value, found module `self` [INFO] [stdout] --> src/main.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 74 | fn update(&mut Self) { [INFO] [stdout] | ------ this function doesn't have a `self` parameter [INFO] [stdout] 75 | //We use the pendulum equation to calculate the angular acceleration. [INFO] [stdout] 76 | self.angular_acceleration = -1.0 * self.g * self.angle.sin() / self.r; [INFO] [stdout] | ^^^^ `self` value is a keyword only available in methods with a `self` parameter [INFO] [stdout] | [INFO] [stdout] help: add a `self` receiver parameter to make the associated `fn` a method [INFO] [stdout] | [INFO] [stdout] 74 | fn update(&mut &self, Self) { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0424]: expected value, found module `self` [INFO] [stdout] --> src/main.rs:76:44 [INFO] [stdout] | [INFO] [stdout] 74 | fn update(&mut Self) { [INFO] [stdout] | ------ this function doesn't have a `self` parameter [INFO] [stdout] 75 | //We use the pendulum equation to calculate the angular acceleration. [INFO] [stdout] 76 | self.angular_acceleration = -1.0 * self.g * self.angle.sin() / self.r; [INFO] [stdout] | ^^^^ `self` value is a keyword only available in methods with a `self` parameter [INFO] [stdout] | [INFO] [stdout] help: add a `self` receiver parameter to make the associated `fn` a method [INFO] [stdout] | [INFO] [stdout] 74 | fn update(&mut &self, Self) { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0424]: expected value, found module `self` [INFO] [stdout] --> src/main.rs:76:53 [INFO] [stdout] | [INFO] [stdout] 74 | fn update(&mut Self) { [INFO] [stdout] | ------ this function doesn't have a `self` parameter [INFO] [stdout] 75 | //We use the pendulum equation to calculate the angular acceleration. [INFO] [stdout] 76 | self.angular_acceleration = -1.0 * self.g * self.angle.sin() / self.r; [INFO] [stdout] | ^^^^ `self` value is a keyword only available in methods with a `self` parameter [INFO] [stdout] | [INFO] [stdout] help: add a `self` receiver parameter to make the associated `fn` a method [INFO] [stdout] | [INFO] [stdout] 74 | fn update(&mut &self, Self) { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0424]: expected value, found module `self` [INFO] [stdout] --> src/main.rs:76:72 [INFO] [stdout] | [INFO] [stdout] 74 | fn update(&mut Self) { [INFO] [stdout] | ------ this function doesn't have a `self` parameter [INFO] [stdout] 75 | //We use the pendulum equation to calculate the angular acceleration. [INFO] [stdout] 76 | self.angular_acceleration = -1.0 * self.g * self.angle.sin() / self.r; [INFO] [stdout] | ^^^^ `self` value is a keyword only available in methods with a `self` parameter [INFO] [stdout] | [INFO] [stdout] help: add a `self` receiver parameter to make the associated `fn` a method [INFO] [stdout] | [INFO] [stdout] 74 | fn update(&mut &self, Self) { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0424]: expected value, found module `self` [INFO] [stdout] --> src/main.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 74 | fn update(&mut Self) { [INFO] [stdout] | ------ this function doesn't have a `self` parameter [INFO] [stdout] ... [INFO] [stdout] 79 | self.angular_velocity += self.angular_acceleration; [INFO] [stdout] | ^^^^ `self` value is a keyword only available in methods with a `self` parameter [INFO] [stdout] | [INFO] [stdout] help: add a `self` receiver parameter to make the associated `fn` a method [INFO] [stdout] | [INFO] [stdout] 74 | fn update(&mut &self, Self) { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0424]: expected value, found module `self` [INFO] [stdout] --> src/main.rs:79:34 [INFO] [stdout] | [INFO] [stdout] 74 | fn update(&mut Self) { [INFO] [stdout] | ------ this function doesn't have a `self` parameter [INFO] [stdout] ... [INFO] [stdout] 79 | self.angular_velocity += self.angular_acceleration; [INFO] [stdout] | ^^^^ `self` value is a keyword only available in methods with a `self` parameter [INFO] [stdout] | [INFO] [stdout] help: add a `self` receiver parameter to make the associated `fn` a method [INFO] [stdout] | [INFO] [stdout] 74 | fn update(&mut &self, Self) { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0424]: expected value, found module `self` [INFO] [stdout] --> src/main.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 74 | fn update(&mut Self) { [INFO] [stdout] | ------ this function doesn't have a `self` parameter [INFO] [stdout] ... [INFO] [stdout] 82 | self.angle += self.angular_velocity; [INFO] [stdout] | ^^^^ `self` value is a keyword only available in methods with a `self` parameter [INFO] [stdout] | [INFO] [stdout] help: add a `self` receiver parameter to make the associated `fn` a method [INFO] [stdout] | [INFO] [stdout] 74 | fn update(&mut &self, Self) { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0424]: expected value, found module `self` [INFO] [stdout] --> src/main.rs:82:23 [INFO] [stdout] | [INFO] [stdout] 74 | fn update(&mut Self) { [INFO] [stdout] | ------ this function doesn't have a `self` parameter [INFO] [stdout] ... [INFO] [stdout] 82 | self.angle += self.angular_velocity; [INFO] [stdout] | ^^^^ `self` value is a keyword only available in methods with a `self` parameter [INFO] [stdout] | [INFO] [stdout] help: add a `self` receiver parameter to make the associated `fn` a method [INFO] [stdout] | [INFO] [stdout] 74 | fn update(&mut &self, Self) { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `speedy2d::color::Color` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use speedy2d::color::Color; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `update` found for struct `Pendulum` in the current scope [INFO] [stdout] --> src/main.rs:31:16 [INFO] [stdout] | [INFO] [stdout] 31 | self.p.update(); [INFO] [stdout] | -------^^^^^^-- [INFO] [stdout] | | | [INFO] [stdout] | | this is an associated function, not a method [INFO] [stdout] | help: use associated function syntax instead: `Pendulum::update()` [INFO] [stdout] ... [INFO] [stdout] 36 | struct Pendulum { [INFO] [stdout] | --------------- method `update` not found for this struct [INFO] [stdout] | [INFO] [stdout] = note: found the following associated functions; to be used as methods, functions must have a `self` parameter [INFO] [stdout] note: the candidate is defined in an impl for the type `Pendulum` [INFO] [stdout] --> src/main.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 74 | fn update(&mut Self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `update`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `deflate::checksum::RollingChecksum` [INFO] [stdout] candidate #2: `rayon::iter::ParallelIterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:119:39 [INFO] [stdout] | [INFO] [stdout] 119 | pub fn new(x: f32, y: f32) -> Vector { [INFO] [stdout] | --- ^^^^^^ expected `Vector`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] 120 | Vector { x, y }; [INFO] [stdout] | - help: remove this semicolon to return this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0424, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-win-test` (bin "rust-win-test") due to 22 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "314d9d3dd70073b72e26868349c7b4d01798d186af0d54af413c8cdd185c0acf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "314d9d3dd70073b72e26868349c7b4d01798d186af0d54af413c8cdd185c0acf", kill_on_drop: false }` [INFO] [stdout] 314d9d3dd70073b72e26868349c7b4d01798d186af0d54af413c8cdd185c0acf