[INFO] cloning repository https://github.com/nstone8/buglets [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/nstone8/buglets" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnstone8%2Fbuglets", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnstone8%2Fbuglets'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f436ee80ef2b924fa8353037db9aef23dd41f534 [INFO] checking nstone8/buglets/f436ee80ef2b924fa8353037db9aef23dd41f534 against master#cf8a95590a1b768b7711f2631d5b5e3ead464de7 for pr-149389 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnstone8%2Fbuglets" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/nstone8/buglets [INFO] finished tweaking git repo https://github.com/nstone8/buglets [INFO] tweaked toml for git repo https://github.com/nstone8/buglets written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/nstone8/buglets on toolchain cf8a95590a1b768b7711f2631d5b5e3ead464de7 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cf8a95590a1b768b7711f2631d5b5e3ead464de7" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/nstone8/buglets 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" "+cf8a95590a1b768b7711f2631d5b5e3ead464de7" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded gio-sys v0.4.0 [INFO] [stderr] Downloaded c_vec v1.2.1 [INFO] [stderr] Downloaded gdk-pixbuf-sys v0.4.0 [INFO] [stderr] Downloaded gobject-sys v0.4.0 [INFO] [stderr] Downloaded pango-sys v0.4.0 [INFO] [stderr] Downloaded cairo-sys-rs v0.4.0 [INFO] [stderr] Downloaded gdk-pixbuf v0.2.0 [INFO] [stderr] Downloaded pango v0.2.0 [INFO] [stderr] Downloaded cairo-rs v0.2.0 [INFO] [stderr] Downloaded gio v0.2.0 [INFO] [stderr] Downloaded gdk-sys v0.4.0 [INFO] [stderr] Downloaded gdk v0.6.0 [INFO] [stderr] Downloaded gtk-sys v0.4.0 [INFO] [stderr] Downloaded atk-sys v0.4.0 [INFO] [stderr] Downloaded glib-sys v0.4.0 [INFO] [stderr] Downloaded libc v0.2.33 [INFO] [stderr] Downloaded gtk v0.2.0 [INFO] [stderr] Downloaded glib v0.3.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+cf8a95590a1b768b7711f2631d5b5e3ead464de7" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 129dbf7f50565ad65c842b1c00fd0d609d82e0b9c4fe22b546688d12bcbfc2cd [INFO] running `Command { std: "docker" "start" "-a" "129dbf7f50565ad65c842b1c00fd0d609d82e0b9c4fe22b546688d12bcbfc2cd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "129dbf7f50565ad65c842b1c00fd0d609d82e0b9c4fe22b546688d12bcbfc2cd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "129dbf7f50565ad65c842b1c00fd0d609d82e0b9c4fe22b546688d12bcbfc2cd", kill_on_drop: false }` [INFO] [stdout] 129dbf7f50565ad65c842b1c00fd0d609d82e0b9c4fe22b546688d12bcbfc2cd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+cf8a95590a1b768b7711f2631d5b5e3ead464de7" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a6ac02944d95de97db82ed9dffbae1f9bd85f442d4173cca926cfd742d6264d0 [INFO] running `Command { std: "docker" "start" "-a" "a6ac02944d95de97db82ed9dffbae1f9bd85f442d4173cca926cfd742d6264d0", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling pkg-config v0.3.9 [INFO] [stderr] Checking libc v0.2.33 [INFO] [stderr] Checking bitflags v0.9.1 [INFO] [stderr] Checking lazy_static v0.2.9 [INFO] [stderr] Compiling gio v0.2.0 [INFO] [stderr] Compiling gdk-pixbuf v0.2.0 [INFO] [stderr] Compiling cairo-rs v0.2.0 [INFO] [stderr] Compiling gdk v0.6.0 [INFO] [stderr] Checking c_vec v1.2.1 [INFO] [stderr] Compiling gtk v0.2.0 [INFO] [stderr] Compiling glib-sys v0.4.0 [INFO] [stderr] Compiling gobject-sys v0.4.0 [INFO] [stderr] Compiling gio-sys v0.4.0 [INFO] [stderr] Compiling cairo-sys-rs v0.4.0 [INFO] [stderr] Compiling gdk-pixbuf-sys v0.4.0 [INFO] [stderr] Compiling pango-sys v0.4.0 [INFO] [stderr] Compiling gdk-sys v0.4.0 [INFO] [stderr] Compiling atk-sys v0.4.0 [INFO] [stderr] Compiling gtk-sys v0.4.0 [INFO] [stderr] Checking glib v0.3.1 [INFO] [stderr] Checking pango v0.2.0 [INFO] [stderr] Checking buglets v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/stacks.rs:5:24 [INFO] [stdout] | [INFO] [stdout] 5 | all_pieces:Vec>, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 5 | all_pieces:Vec>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/stacks.rs:25:39 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn add_piece(&mut self,h: Box){ [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 25 | pub fn add_piece(&mut self,h: Box){ [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/stacks.rs:5:24 [INFO] [stdout] | [INFO] [stdout] 5 | all_pieces:Vec>, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 5 | all_pieces:Vec>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0616]: field `x` of struct `hex_objects::Offset` is private [INFO] [stdout] --> src/stacks.rs:15:26 [INFO] [stdout] | [INFO] [stdout] 15 | self.temp_offset.x=x; [INFO] [stdout] | ^ private field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0616]: field `y` of struct `hex_objects::Offset` is private [INFO] [stdout] --> src/stacks.rs:16:26 [INFO] [stdout] | [INFO] [stdout] 16 | self.temp_offset.y=y; [INFO] [stdout] | ^ private field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/stacks.rs:25:39 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn add_piece(&mut self,h: Box){ [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 25 | pub fn add_piece(&mut self,h: Box){ [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0616]: field `x` of struct `hex_objects::Offset` is private [INFO] [stdout] --> src/stacks.rs:15:26 [INFO] [stdout] | [INFO] [stdout] 15 | self.temp_offset.x=x; [INFO] [stdout] | ^ private field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0616]: field `y` of struct `hex_objects::Offset` is private [INFO] [stdout] --> src/stacks.rs:16:26 [INFO] [stdout] | [INFO] [stdout] 16 | self.temp_offset.y=y; [INFO] [stdout] | ^ private field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/stacks.rs:20:35 [INFO] [stdout] | [INFO] [stdout] 20 | self.temp_offset=Offset{x:0,y:0}; [INFO] [stdout] | ^ expected `f64`, found integer [INFO] [stdout] | [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 20 | self.temp_offset=Offset{x:0.0,y:0}; [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/stacks.rs:20:35 [INFO] [stdout] | [INFO] [stdout] 20 | self.temp_offset=Offset{x:0,y:0}; [INFO] [stdout] | ^ expected `f64`, found integer [INFO] [stdout] | [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 20 | self.temp_offset=Offset{x:0.0,y:0}; [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/stacks.rs:20:39 [INFO] [stdout] | [INFO] [stdout] 20 | self.temp_offset=Offset{x:0,y:0}; [INFO] [stdout] | ^ expected `f64`, found integer [INFO] [stdout] | [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 20 | self.temp_offset=Offset{x:0,y:0.0}; [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/stacks.rs:20:39 [INFO] [stdout] | [INFO] [stdout] 20 | self.temp_offset=Offset{x:0,y:0}; [INFO] [stdout] | ^ expected `f64`, found integer [INFO] [stdout] | [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 20 | self.temp_offset=Offset{x:0,y:0.0}; [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.global_offset` which is behind a shared reference [INFO] [stdout] --> src/stacks.rs:33:29 [INFO] [stdout] | [INFO] [stdout] 33 | piece.draw_fn(&(self.global_offset+self.global_offset),cr); [INFO] [stdout] | -^^^^^^^^^^^^^^^^^^-------------------- [INFO] [stdout] | || [INFO] [stdout] | |move occurs because `self.global_offset` has type `hex_objects::Offset`, which does not implement the `Copy` trait [INFO] [stdout] | `self.global_offset` moved due to usage in operator [INFO] [stdout] | [INFO] [stdout] note: calling this operator moves the left-hand side [INFO] [stdout] --> /rustc/cf8a95590a1b768b7711f2631d5b5e3ead464de7/library/core/src/ops/arith.rs:92:11 [INFO] [stdout] note: if `hex_objects::Offset` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/hex_objects.rs:50:1 [INFO] [stdout] | [INFO] [stdout] 50 | pub struct Offset{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: src/stacks.rs:33:29 [INFO] [stdout] | [INFO] [stdout] 33 | piece.draw_fn(&(self.global_offset+self.global_offset),cr); [INFO] [stdout] | ------------------ you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.global_offset` which is behind a shared reference [INFO] [stdout] --> src/stacks.rs:33:48 [INFO] [stdout] | [INFO] [stdout] 33 | piece.draw_fn(&(self.global_offset+self.global_offset),cr); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ move occurs because `self.global_offset` has type `hex_objects::Offset`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: if `hex_objects::Offset` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/hex_objects.rs:50:1 [INFO] [stdout] | [INFO] [stdout] 50 | pub struct Offset{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: src/stacks.rs:33:48 [INFO] [stdout] | [INFO] [stdout] 33 | piece.draw_fn(&(self.global_offset+self.global_offset),cr); [INFO] [stdout] | ------------------ you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.global_offset` which is behind a shared reference [INFO] [stdout] --> src/stacks.rs:33:29 [INFO] [stdout] | [INFO] [stdout] 33 | piece.draw_fn(&(self.global_offset+self.global_offset),cr); [INFO] [stdout] | -^^^^^^^^^^^^^^^^^^-------------------- [INFO] [stdout] | || [INFO] [stdout] | |move occurs because `self.global_offset` has type `hex_objects::Offset`, which does not implement the `Copy` trait [INFO] [stdout] | `self.global_offset` moved due to usage in operator [INFO] [stdout] | [INFO] [stdout] note: calling this operator moves the left-hand side [INFO] [stdout] --> /rustc/cf8a95590a1b768b7711f2631d5b5e3ead464de7/library/core/src/ops/arith.rs:92:11 [INFO] [stdout] note: if `hex_objects::Offset` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/hex_objects.rs:50:1 [INFO] [stdout] | [INFO] [stdout] 50 | pub struct Offset{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: src/stacks.rs:33:29 [INFO] [stdout] | [INFO] [stdout] 33 | piece.draw_fn(&(self.global_offset+self.global_offset),cr); [INFO] [stdout] | ------------------ you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.global_offset` which is behind a shared reference [INFO] [stdout] --> src/stacks.rs:33:48 [INFO] [stdout] | [INFO] [stdout] 33 | piece.draw_fn(&(self.global_offset+self.global_offset),cr); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ move occurs because `self.global_offset` has type `hex_objects::Offset`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: if `hex_objects::Offset` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/hex_objects.rs:50:1 [INFO] [stdout] | [INFO] [stdout] 50 | pub struct Offset{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: src/stacks.rs:33:48 [INFO] [stdout] | [INFO] [stdout] 33 | piece.draw_fn(&(self.global_offset+self.global_offset),cr); [INFO] [stdout] | ------------------ you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0373]: closure may outlive the current function, but it borrows `stack`, which is owned by the current function [INFO] [stdout] --> src/main.rs:43:30 [INFO] [stdout] | [INFO] [stdout] 43 | drag.connect_drag_update(|_:&GestureDrag,x:f64,y:f64|{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ may outlive borrowed value `stack` [INFO] [stdout] 44 | println!("x={}, y={}",x,y); [INFO] [stdout] 45 | stack.set_temp_offset(x,y); [INFO] [stdout] | ----- `stack` is borrowed here [INFO] [stdout] | [INFO] [stdout] note: function requires argument type to outlive `'static` [INFO] [stdout] --> src/main.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 43 | / drag.connect_drag_update(|_:&GestureDrag,x:f64,y:f64|{ [INFO] [stdout] 44 | | println!("x={}, y={}",x,y); [INFO] [stdout] 45 | | stack.set_temp_offset(x,y); [INFO] [stdout] 46 | | }); [INFO] [stdout] | |______^ [INFO] [stdout] help: to force the closure to take ownership of `stack` (and any other referenced variables), use the `move` keyword [INFO] [stdout] | [INFO] [stdout] 43 | drag.connect_drag_update(move |_:&GestureDrag,x:f64,y:f64|{ [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: borrow of moved value: `stack` [INFO] [stdout] --> src/main.rs:43:30 [INFO] [stdout] | [INFO] [stdout] 26 | let mut stack=Stack::new(); [INFO] [stdout] | --------- move occurs because `stack` has type `stacks::Stack`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 36 | drawing_area.connect_draw(move |_:&DrawingArea,cr:&Context|{ [INFO] [stdout] | --------------------------------- value moved into closure here [INFO] [stdout] 37 | let scale = stack.get_draw_scale(); [INFO] [stdout] | ----- variable moved due to use in closure [INFO] [stdout] ... [INFO] [stdout] 43 | drag.connect_drag_update(|_:&GestureDrag,x:f64,y:f64|{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ value borrowed here after move [INFO] [stdout] 44 | println!("x={}, y={}",x,y); [INFO] [stdout] 45 | stack.set_temp_offset(x,y); [INFO] [stdout] | ----- borrow occurs due to use in closure [INFO] [stdout] | [INFO] [stdout] note: if `stacks::Stack` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/stacks.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Stack{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: src/main.rs:37:21 [INFO] [stdout] | [INFO] [stdout] 37 | let scale = stack.get_draw_scale(); [INFO] [stdout] | ----- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0373]: closure may outlive the current function, but it borrows `stack`, which is owned by the current function [INFO] [stdout] --> src/main.rs:43:30 [INFO] [stdout] | [INFO] [stdout] 43 | drag.connect_drag_update(|_:&GestureDrag,x:f64,y:f64|{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ may outlive borrowed value `stack` [INFO] [stdout] 44 | println!("x={}, y={}",x,y); [INFO] [stdout] 45 | stack.set_temp_offset(x,y); [INFO] [stdout] | ----- `stack` is borrowed here [INFO] [stdout] | [INFO] [stdout] note: function requires argument type to outlive `'static` [INFO] [stdout] --> src/main.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 43 | / drag.connect_drag_update(|_:&GestureDrag,x:f64,y:f64|{ [INFO] [stdout] 44 | | println!("x={}, y={}",x,y); [INFO] [stdout] 45 | | stack.set_temp_offset(x,y); [INFO] [stdout] 46 | | }); [INFO] [stdout] | |______^ [INFO] [stdout] help: to force the closure to take ownership of `stack` (and any other referenced variables), use the `move` keyword [INFO] [stdout] | [INFO] [stdout] 43 | drag.connect_drag_update(move |_:&GestureDrag,x:f64,y:f64|{ [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: borrow of moved value: `stack` [INFO] [stdout] --> src/main.rs:43:30 [INFO] [stdout] | [INFO] [stdout] 26 | let mut stack=Stack::new(); [INFO] [stdout] | --------- move occurs because `stack` has type `stacks::Stack`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 36 | drawing_area.connect_draw(move |_:&DrawingArea,cr:&Context|{ [INFO] [stdout] | --------------------------------- value moved into closure here [INFO] [stdout] 37 | let scale = stack.get_draw_scale(); [INFO] [stdout] | ----- variable moved due to use in closure [INFO] [stdout] ... [INFO] [stdout] 43 | drag.connect_drag_update(|_:&GestureDrag,x:f64,y:f64|{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ value borrowed here after move [INFO] [stdout] 44 | println!("x={}, y={}",x,y); [INFO] [stdout] 45 | stack.set_temp_offset(x,y); [INFO] [stdout] | ----- borrow occurs due to use in closure [INFO] [stdout] | [INFO] [stdout] note: if `stacks::Stack` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/stacks.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Stack{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: src/main.rs:37:21 [INFO] [stdout] | [INFO] [stdout] 37 | let scale = stack.get_draw_scale(); [INFO] [stdout] | ----- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0373, E0382, E0507, E0616. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0373, E0382, E0507, E0616. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `buglets` (bin "buglets" test) due to 8 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `buglets` (bin "buglets") due to 8 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "a6ac02944d95de97db82ed9dffbae1f9bd85f442d4173cca926cfd742d6264d0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a6ac02944d95de97db82ed9dffbae1f9bd85f442d4173cca926cfd742d6264d0", kill_on_drop: false }` [INFO] [stdout] a6ac02944d95de97db82ed9dffbae1f9bd85f442d4173cca926cfd742d6264d0