[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 against try#a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d for pr-145342
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnstone8%2Fbuglets" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/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-1-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/nstone8/buglets 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 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" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "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]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded gio-sys v0.4.0
[INFO] [stderr]   Downloaded gdk-pixbuf v0.2.0
[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 glib-sys v0.4.0
[INFO] [stderr]   Downloaded gdk-sys v0.4.0
[INFO] [stderr]   Downloaded c_vec v1.2.1
[INFO] [stderr]   Downloaded atk-sys v0.4.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 gtk-sys v0.4.0
[INFO] [stderr]   Downloaded gdk v0.6.0
[INFO] [stderr]   Downloaded cairo-sys-rs v0.4.0
[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-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] fed8baf2b397583c00bd6a6a5894d07419fd00977442f02db1a6b2208671817d
[INFO] running `Command { std: "docker" "start" "-a" "fed8baf2b397583c00bd6a6a5894d07419fd00977442f02db1a6b2208671817d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "fed8baf2b397583c00bd6a6a5894d07419fd00977442f02db1a6b2208671817d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "fed8baf2b397583c00bd6a6a5894d07419fd00977442f02db1a6b2208671817d", kill_on_drop: false }`
[INFO] [stdout] fed8baf2b397583c00bd6a6a5894d07419fd00977442f02db1a6b2208671817d
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] 4b4b02823354760e2a47408458f70e8bcdf4f2fa5730f9b213a9c6367b68308b
[INFO] running `Command { std: "docker" "start" "-a" "4b4b02823354760e2a47408458f70e8bcdf4f2fa5730f9b213a9c6367b68308b", 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 cairo-rs v0.2.0
[INFO] [stderr]    Compiling gio v0.2.0
[INFO] [stderr]    Compiling gdk-pixbuf 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 gdk-pixbuf-sys v0.4.0
[INFO] [stderr]    Compiling cairo-sys-rs 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<Box<Hex>>,
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout]   = note: `#[warn(bare_trait_objects)]` on by default
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]   |
[INFO] [stdout] 5 |     all_pieces:Vec<Box<dyn Hex>>,
[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<Hex>){
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[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<dyn Hex>){
[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:5:24
[INFO] [stdout]   |
[INFO] [stdout] 5 |     all_pieces:Vec<Box<Hex>>,
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout]   = note: `#[warn(bare_trait_objects)]` on by default
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]   |
[INFO] [stdout] 5 |     all_pieces:Vec<Box<dyn Hex>>,
[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<Hex>){
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[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<dyn Hex>){
[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[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: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/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/core/src/ops/arith.rs:93:12
[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[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] 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] 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/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/core/src/ops/arith.rs:93:12
[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] 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] [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" "4b4b02823354760e2a47408458f70e8bcdf4f2fa5730f9b213a9c6367b68308b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "4b4b02823354760e2a47408458f70e8bcdf4f2fa5730f9b213a9c6367b68308b", kill_on_drop: false }`
[INFO] [stdout] 4b4b02823354760e2a47408458f70e8bcdf4f2fa5730f9b213a9c6367b68308b
