[INFO] fetching crate gl_object 0.0.5... [INFO] checking gl_object-0.0.5 against try#a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d for pr-145342-1 [INFO] extracting crate gl_object 0.0.5 into /workspace/builds/worker-0-tc2/source [INFO] started tweaking crates.io crate gl_object 0.0.5 [INFO] finished tweaking crates.io crate gl_object 0.0.5 [INFO] tweaked toml for crates.io crate gl_object 0.0.5 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate gl_object 0.0.5 on toolchain a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate gl_object 0.0.5 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" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2e815ae946b1c9caf511c219209d7336ed730446939a3e2a2aef510d8debe8b2 [INFO] running `Command { std: "docker" "start" "-a" "2e815ae946b1c9caf511c219209d7336ed730446939a3e2a2aef510d8debe8b2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2e815ae946b1c9caf511c219209d7336ed730446939a3e2a2aef510d8debe8b2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2e815ae946b1c9caf511c219209d7336ed730446939a3e2a2aef510d8debe8b2", kill_on_drop: false }` [INFO] [stdout] 2e815ae946b1c9caf511c219209d7336ed730446939a3e2a2aef510d8debe8b2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fdc352e886b3f7b5dff3908af31034a1e29a9b7a8cef0fd184719b1ebe6abe7c [INFO] running `Command { std: "docker" "start" "-a" "fdc352e886b3f7b5dff3908af31034a1e29a9b7a8cef0fd184719b1ebe6abe7c", kill_on_drop: false }` [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling libc v0.2.134 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling khronos_api v3.1.0 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling version-compare v0.1.0 [INFO] [stderr] Compiling xml-rs v0.8.4 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Checking smallvec v1.9.0 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking chlorine v1.0.10 [INFO] [stderr] Checking cty v0.2.2 [INFO] [stderr] Compiling sdl2 v0.35.2 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking instant v0.1.12 [INFO] [stderr] Checking auto_ops v0.3.0 [INFO] [stderr] Checking raw-window-handle v0.4.3 [INFO] [stderr] Checking gfx-maths v0.2.8 [INFO] [stderr] Checking glow v0.11.2 [INFO] [stderr] Compiling sdl2-sys v0.35.2 [INFO] [stderr] Compiling lock_api v0.4.9 [INFO] [stderr] Compiling gl_generator v0.14.0 [INFO] [stderr] Checking parking_lot v0.11.2 [INFO] [stderr] Compiling cmake v0.1.48 [INFO] [stderr] Compiling imgui-sys v0.8.2 [INFO] [stderr] Compiling glfw-sys v4.0.0+3.3.5 [INFO] [stderr] Compiling imgui-opengl-renderer v0.11.1 [INFO] [stderr] Checking glfw v0.45.0 [INFO] [stderr] Checking imgui v0.8.2 [INFO] [stderr] Checking gl_object v0.0.5 (/opt/rustwide/workdir) [INFO] [stdout] warning: method `load_with` is never used [INFO] [stdout] --> src/window.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub trait WindowTrait { [INFO] [stdout] | ----------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 35 | fn load_with(&mut self, s: &str) -> *const std::ffi::c_void; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/imgui_ctx/mod.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | drop(&self.imgui_ctx); [INFO] [stdout] | ^^^^^---------------^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&imgui::Context` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dropping_references)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 54 - drop(&self.imgui_ctx); [INFO] [stdout] 54 + let _ = &self.imgui_ctx; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `gl_object::sdl2_example` [INFO] [stdout] --> examples/sdl2.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use gl_object::sdl2_example; [INFO] [stdout] | ^^^^^^^^^^^------------ [INFO] [stdout] | | | [INFO] [stdout] | | help: a similar name exists in the module: `glfw_example` [INFO] [stdout] | no `sdl2_example` in the root [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 21 | #[cfg(feature = "sdl2")] [INFO] [stdout] | ---------------- the item is gated behind the `sdl2` feature [INFO] [stdout] 22 | pub fn sdl2_example() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `sdl2` [INFO] [stdout] --> examples/sdl2.rs:6:2 [INFO] [stdout] | [INFO] [stdout] 6 | } [INFO] [stdout] | ^ consider adding a `main` function to `examples/sdl2.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0601. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `gl_object` (example "sdl2") due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: method `load_with` is never used [INFO] [stdout] --> src/window.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub trait WindowTrait { [INFO] [stdout] | ----------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 35 | fn load_with(&mut self, s: &str) -> *const std::ffi::c_void; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/imgui_ctx/mod.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | drop(&self.imgui_ctx); [INFO] [stdout] | ^^^^^---------------^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&imgui::Context` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dropping_references)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 54 - drop(&self.imgui_ctx); [INFO] [stdout] 54 + let _ = &self.imgui_ctx; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `vbo`, `vao`, and `ibo` are never read [INFO] [stdout] --> src/object.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct BufferData { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 7 | pub vbo: glow::NativeBuffer, [INFO] [stdout] | ^^^ [INFO] [stdout] 8 | pub vao: glow::NativeVertexArray, [INFO] [stdout] | ^^^ [INFO] [stdout] 9 | pub ibo: glow::NativeBuffer, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BufferData` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TestSize` is never constructed [INFO] [stdout] --> src/object.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct TestSize { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `get_movement_model`, `move_model`, and `set_model` are never used [INFO] [stdout] --> src/object.rs:62:8 [INFO] [stdout] | [INFO] [stdout] 57 | pub trait OpenGLObjectTrait { [INFO] [stdout] | ----------------- associated items in this trait [INFO] [stdout] ... [INFO] [stdout] 62 | fn get_movement_model(movement_x: f32, movement_y: f32, movement_z: f32) -> Mat4 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | fn move_model(&mut self, movement_x: f32, movement_y: f32, movement_z: f32); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | fn set_model(&mut self, movement_x: f32, movement_y: f32, movement_z: f32); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_in_bounding_box` is never used [INFO] [stdout] --> src/primitives/rectangle.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 32 | impl Rectangle { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 33 | pub fn is_in_bounding_box(&self, x: i32, y: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/imgui_ctx/mod.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | drop(&self.imgui_ctx); [INFO] [stdout] | ^^^^^---------------^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&imgui::Context` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dropping_references)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 54 - drop(&self.imgui_ctx); [INFO] [stdout] 54 + let _ = &self.imgui_ctx; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `vbo`, `vao`, and `ibo` are never read [INFO] [stdout] --> src/object.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct BufferData { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 7 | pub vbo: glow::NativeBuffer, [INFO] [stdout] | ^^^ [INFO] [stdout] 8 | pub vao: glow::NativeVertexArray, [INFO] [stdout] | ^^^ [INFO] [stdout] 9 | pub ibo: glow::NativeBuffer, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BufferData` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TestSize` is never constructed [INFO] [stdout] --> src/object.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct TestSize { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `get_movement_model`, `move_model`, and `set_model` are never used [INFO] [stdout] --> src/object.rs:62:8 [INFO] [stdout] | [INFO] [stdout] 57 | pub trait OpenGLObjectTrait { [INFO] [stdout] | ----------------- associated items in this trait [INFO] [stdout] ... [INFO] [stdout] 62 | fn get_movement_model(movement_x: f32, movement_y: f32, movement_z: f32) -> Mat4 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | fn move_model(&mut self, movement_x: f32, movement_y: f32, movement_z: f32); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | fn set_model(&mut self, movement_x: f32, movement_y: f32, movement_z: f32); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_in_bounding_box` is never used [INFO] [stdout] --> src/primitives/rectangle.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 32 | impl Rectangle { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 33 | pub fn is_in_bounding_box(&self, x: i32, y: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/imgui_ctx/mod.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | drop(&self.imgui_ctx); [INFO] [stdout] | ^^^^^---------------^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&imgui::Context` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dropping_references)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 54 - drop(&self.imgui_ctx); [INFO] [stdout] 54 + let _ = &self.imgui_ctx; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "fdc352e886b3f7b5dff3908af31034a1e29a9b7a8cef0fd184719b1ebe6abe7c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fdc352e886b3f7b5dff3908af31034a1e29a9b7a8cef0fd184719b1ebe6abe7c", kill_on_drop: false }` [INFO] [stdout] fdc352e886b3f7b5dff3908af31034a1e29a9b7a8cef0fd184719b1ebe6abe7c