[INFO] cloning repository https://github.com/MarvelousAnything/treegen [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/MarvelousAnything/treegen" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMarvelousAnything%2Ftreegen", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMarvelousAnything%2Ftreegen'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f93b62c04431cd9e1d386eb66e6a6ec306953520 [INFO] checking MarvelousAnything/treegen/f93b62c04431cd9e1d386eb66e6a6ec306953520 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMarvelousAnything%2Ftreegen" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/MarvelousAnything/treegen on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/MarvelousAnything/treegen [INFO] finished tweaking git repo https://github.com/MarvelousAnything/treegen [INFO] tweaked toml for git repo https://github.com/MarvelousAnything/treegen written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/MarvelousAnything/treegen 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" "+ccf408f4326a858c00dd845a64a86b16f360a801" "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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7930495f0d97fd6dc5903407fa67b31e76e2a5cb146c57b895f6e4d570bffd73 [INFO] running `Command { std: "docker" "start" "-a" "7930495f0d97fd6dc5903407fa67b31e76e2a5cb146c57b895f6e4d570bffd73", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7930495f0d97fd6dc5903407fa67b31e76e2a5cb146c57b895f6e4d570bffd73", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7930495f0d97fd6dc5903407fa67b31e76e2a5cb146c57b895f6e4d570bffd73", kill_on_drop: false }` [INFO] [stdout] 7930495f0d97fd6dc5903407fa67b31e76e2a5cb146c57b895f6e4d570bffd73 [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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6d47f71ad6bd903687fc9bd11f87ee355d71fd09f89191ed049de03b0989b0e1 [INFO] running `Command { std: "docker" "start" "-a" "6d47f71ad6bd903687fc9bd11f87ee355d71fd09f89191ed049de03b0989b0e1", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Compiling proc-macro2 v1.0.66 [INFO] [stderr] Compiling unicode-ident v1.0.11 [INFO] [stderr] Compiling serde v1.0.188 [INFO] [stderr] Compiling hashbrown v0.14.0 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Compiling winnow v0.5.15 [INFO] [stderr] Compiling target-lexicon v0.12.11 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling smallvec v1.11.0 [INFO] [stderr] Compiling pkg-config v0.3.27 [INFO] [stderr] Compiling version-compare v0.1.1 [INFO] [stderr] Compiling indexmap v2.0.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling cfg-expr v0.15.4 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling futures-core v0.3.28 [INFO] [stderr] Compiling libm v0.2.7 [INFO] [stderr] Compiling syn v2.0.29 [INFO] [stderr] Checking futures-sink v0.3.28 [INFO] [stderr] Compiling num-traits v0.2.16 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Compiling memoffset v0.9.0 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Checking once_cell v1.18.0 [INFO] [stderr] Compiling futures-task v0.3.28 [INFO] [stderr] Checking pin-project-lite v0.2.13 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling futures-util v0.3.28 [INFO] [stderr] Compiling thiserror v1.0.47 [INFO] [stderr] Compiling crossbeam-utils v0.8.16 [INFO] [stderr] Compiling anyhow v1.0.75 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling futures-channel v0.3.28 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Compiling crossbeam-epoch v0.9.15 [INFO] [stderr] Compiling lock_api v0.4.10 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Checking getrandom v0.2.10 [INFO] [stderr] Checking simd-adler32 v0.3.7 [INFO] [stderr] Checking bytemuck v1.13.1 [INFO] [stderr] Compiling rayon-core v1.11.0 [INFO] [stderr] Checking crossbeam-deque v0.8.3 [INFO] [stderr] Checking crossbeam-channel v0.5.8 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Compiling num-bigint v0.4.4 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Checking futures-io v0.3.28 [INFO] [stderr] Checking either v1.9.0 [INFO] [stderr] Checking miniz_oxide v0.7.1 [INFO] [stderr] Compiling toml_datetime v0.6.3 [INFO] [stderr] Compiling serde_spanned v0.6.3 [INFO] [stderr] Compiling gio v0.16.7 [INFO] [stderr] Compiling toml_edit v0.19.14 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Checking nanorand v0.7.0 [INFO] [stderr] Checking flate2 v1.0.27 [INFO] [stderr] Checking weezl v0.1.7 [INFO] [stderr] Compiling semver v1.0.18 [INFO] [stderr] Checking rayon v1.7.0 [INFO] [stderr] Checking fdeflate v0.3.0 [INFO] [stderr] Checking zune-inflate v0.2.54 [INFO] [stderr] Checking unic-common v0.9.0 [INFO] [stderr] Checking lebe v0.5.2 [INFO] [stderr] Checking half v2.2.1 [INFO] [stderr] Checking color_quant v1.1.0 [INFO] [stderr] Checking unic-char-range v0.9.0 [INFO] [stderr] Checking bit_field v0.10.2 [INFO] [stderr] Checking unic-char-property v0.9.0 [INFO] [stderr] Checking gif v0.12.0 [INFO] [stderr] Checking png v0.17.10 [INFO] [stderr] Checking unic-ucd-version v0.9.0 [INFO] [stderr] Checking qoi v0.4.1 [INFO] [stderr] Checking byteorder v1.4.3 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling paste v1.0.14 [INFO] [stderr] Compiling rustc_version v0.4.0 [INFO] [stderr] Checking unic-ucd-bidi v0.9.0 [INFO] [stderr] Checking safe_arch v0.7.1 [INFO] [stderr] Checking num-complex v0.4.4 [INFO] [stderr] Checking approx v0.5.1 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking matches v0.1.10 [INFO] [stderr] Checking arrayvec v0.7.4 [INFO] [stderr] Checking unic-bidi v0.9.0 [INFO] [stderr] Compiling toml v0.7.6 [INFO] [stderr] Compiling proc-macro-crate v1.3.1 [INFO] [stderr] Checking wide v0.7.11 [INFO] [stderr] Checking kurbo v0.9.5 [INFO] [stderr] Compiling system-deps v6.1.1 [INFO] [stderr] Checking jpeg-decoder v0.3.0 [INFO] [stderr] Compiling field-offset v0.3.6 [INFO] [stderr] Checking tracing-core v0.1.31 [INFO] [stderr] Checking tiff v0.9.0 [INFO] [stderr] Compiling matrixmultiply v0.3.7 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling siphasher v0.3.11 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling futures-macro v0.3.28 [INFO] [stderr] Compiling thiserror-impl v1.0.47 [INFO] [stderr] Compiling pin-project-internal v1.1.3 [INFO] [stderr] Compiling displaydoc v0.2.4 [INFO] [stderr] Compiling typenum v1.16.0 [INFO] [stderr] Compiling glib-sys v0.16.3 [INFO] [stderr] Compiling gobject-sys v0.16.3 [INFO] [stderr] Compiling gio-sys v0.16.3 [INFO] [stderr] Compiling glib-macros v0.16.8 [INFO] [stderr] Compiling pango-sys v0.16.3 [INFO] [stderr] Compiling cairo-sys-rs v0.16.3 [INFO] [stderr] Compiling gdk-sys v0.16.0 [INFO] [stderr] Compiling atk-sys v0.16.0 [INFO] [stderr] Compiling gdk-pixbuf-sys v0.16.3 [INFO] [stderr] Checking tinystr v0.7.1 [INFO] [stderr] Compiling pangocairo-sys v0.16.3 [INFO] [stderr] Compiling gtk-sys v0.16.0 [INFO] [stderr] Checking unic-langid-impl v0.9.1 [INFO] [stderr] Checking unic-langid v0.9.1 [INFO] [stderr] Checking pin-project v1.1.3 [INFO] [stderr] Compiling parking_lot_core v0.9.8 [INFO] [stderr] Checking flume v0.10.14 [INFO] [stderr] Compiling phf_shared v0.11.2 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling darling_core v0.14.4 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking exr v1.7.0 [INFO] [stderr] Compiling gtk v0.16.2 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Checking unicode-segmentation v1.10.1 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Checking rustc-hash v1.1.0 [INFO] [stderr] Checking xi-unicode v0.3.0 [INFO] [stderr] Checking type-map v0.4.0 [INFO] [stderr] Compiling phf_generator v0.11.2 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Compiling gtk3-macros v0.16.3 [INFO] [stderr] Compiling tracing-attributes v0.1.26 [INFO] [stderr] Checking instant v0.1.12 [INFO] [stderr] Checking overload v0.1.1 [INFO] [stderr] Compiling async-trait v0.1.73 [INFO] [stderr] Checking time-core v0.1.1 [INFO] [stderr] Checking ttf-parser v0.15.2 [INFO] [stderr] Checking log v0.4.20 [INFO] [stderr] Checking futures-executor v0.3.28 [INFO] [stderr] Compiling portable-atomic v1.4.3 [INFO] [stderr] Checking glib v0.16.9 [INFO] [stderr] Checking deranged v0.3.8 [INFO] [stderr] Compiling druid-shell v0.8.3 [INFO] [stderr] Checking tracing-log v0.1.3 [INFO] [stderr] Checking image v0.24.7 [INFO] [stderr] Checking time v0.3.28 [INFO] [stderr] Checking tracing v0.1.37 [INFO] [stderr] Checking nu-ansi-term v0.46.0 [INFO] [stderr] Compiling darling_macro v0.14.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Compiling phf_macros v0.11.2 [INFO] [stderr] Checking intl-memoizer v0.5.1 [INFO] [stderr] Compiling darling v0.14.4 [INFO] [stderr] Checking fluent-syntax v0.11.0 [INFO] [stderr] Checking fluent-langneg v0.13.0 [INFO] [stderr] Checking intl_pluralrules v7.0.2 [INFO] [stderr] Checking simba v0.7.3 [INFO] [stderr] Compiling tokio-macros v2.1.0 [INFO] [stderr] Checking sharded-slab v0.1.4 [INFO] [stderr] Checking owned_ttf_parser v0.15.2 [INFO] [stderr] Checking keyboard-types v0.6.2 [INFO] [stderr] Checking thread_local v1.1.7 [INFO] [stderr] Checking ab_glyph_rasterizer v0.1.8 [INFO] [stderr] Checking self_cell v0.10.2 [INFO] [stderr] Compiling palette v0.7.3 [INFO] [stderr] Checking unicode-width v0.1.10 [INFO] [stderr] Compiling cached_proc_macro_types v0.1.0 [INFO] [stderr] Checking custom_derive v0.1.7 [INFO] [stderr] Compiling cached_proc_macro v0.17.0 [INFO] [stderr] Checking console v0.15.7 [INFO] [stderr] Checking conv v0.3.3 [INFO] [stderr] Checking tracing-subscriber v0.3.17 [INFO] [stderr] Checking tokio v1.32.0 [INFO] [stderr] Checking fluent-bundle v0.15.2 [INFO] [stderr] Checking rusttype v0.9.3 [INFO] [stderr] Checking rand_distr v0.2.2 [INFO] [stderr] Checking phf v0.11.2 [INFO] [stderr] Checking num v0.4.1 [INFO] [stderr] Checking futures v0.3.28 [INFO] [stderr] Checking simba v0.8.1 [INFO] [stderr] Checking piet v0.6.2 [INFO] [stderr] Compiling palette_derive v0.7.3 [INFO] [stderr] Compiling druid-derive v0.5.1 [INFO] [stderr] Compiling nalgebra-macros v0.2.1 [INFO] [stderr] Checking itertools v0.10.5 [INFO] [stderr] Checking hashbrown v0.13.2 [INFO] [stderr] Checking fast-srgb8 v1.0.0 [INFO] [stderr] Checking number_prefix v0.4.0 [INFO] [stderr] Checking indicatif v0.17.6 [INFO] [stderr] Checking cached v0.44.0 [INFO] [stderr] Checking rand_distr v0.4.3 [INFO] [stderr] Checking cairo-rs v0.16.7 [INFO] [stderr] Checking atk v0.16.0 [INFO] [stderr] Checking nalgebra v0.30.1 [INFO] [stderr] Checking nalgebra v0.32.3 [INFO] [stderr] Checking imageproc v0.23.0 [INFO] [stderr] Checking pango v0.16.5 [INFO] [stderr] Checking gdk-pixbuf v0.16.7 [INFO] [stderr] Checking pangocairo v0.16.3 [INFO] [stderr] Checking gdk v0.16.2 [INFO] [stderr] Checking piet-cairo v0.6.2 [INFO] [stderr] Checking piet-common v0.6.2 [INFO] [stderr] Checking druid v0.8.3 [INFO] [stderr] Checking treegen v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `treegen` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/generator/branch_layer.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] warning: unreachable statement [INFO] [stderr] --> src/generator/branch_layer.rs:52:9 [INFO] [stderr] | [INFO] [stderr] 51 | return tree; [INFO] [stderr] | ----------- any code following this expression is unreachable [INFO] [stderr] 52 | let tip_nodes = tree.get_tip_nodes(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unreachable_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `params` [INFO] [stderr] --> src/generator/branch_layer.rs:50:29 [INFO] [stderr] | [INFO] [stderr] 50 | fn generate(tree: Tree, params: &BranchParams) -> Tree { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_params` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] error[E0596]: cannot borrow `tree` as mutable, as it is not declared as mutable [INFO] [stderr] --> src/generator/branch_layer.rs:97:17 [INFO] [stderr] | [INFO] [stderr] 97 | &mut tree, [INFO] [stderr] | ^^^^^^^^^ cannot borrow as mutable [INFO] [stderr] | [INFO] [stderr] help: consider changing this to be mutable [INFO] [stderr] | [INFO] [stderr] 50 | fn generate(mut tree: Tree, params: &BranchParams) -> Tree { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] error: aborting due to 1 previous error; 2 warnings emitted [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0596`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/generator/trunk_layer.rs:85:32 [INFO] [stdout] | [INFO] [stdout] 85 | let is_split = rng.gen::() < split_rate(i); [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] = note: `--force-warn keyword-idents-2024` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/generator/trunk_layer.rs:92:51 [INFO] [stdout] | [INFO] [stdout] 92 | let should_branch = local_rng.gen::() < branch_rate(i); [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/generator/branch_layer.rs:70:43 [INFO] [stdout] | [INFO] [stdout] 70 | let should_branch = local_rng.gen::() < branch; [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/sampler/mod.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 49 | rng.gen() [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/generator/branch_layer.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 51 | return tree; [INFO] [stdout] | ----------- any code following this expression is unreachable [INFO] [stdout] 52 | let tip_nodes = tree.get_tip_nodes(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `params` [INFO] [stdout] --> src/generator/branch_layer.rs:50:33 [INFO] [stdout] | [INFO] [stdout] 50 | fn generate(mut tree: Tree, params: &BranchParams) -> Tree { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_params` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/generator/branch_layer.rs:50:17 [INFO] [stdout] | [INFO] [stdout] 50 | fn generate(mut tree: Tree, params: &BranchParams) -> Tree { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating src/bin/render_test.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `treegen` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/generator/branch_layer.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] warning: unreachable statement [INFO] [stderr] --> src/generator/branch_layer.rs:52:9 [INFO] [stderr] | [INFO] [stderr] 51 | return tree; [INFO] [stderr] | ----------- any code following this expression is unreachable [INFO] [stderr] 52 | let tip_nodes = tree.get_tip_nodes(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unreachable_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `params` [INFO] [stderr] --> src/generator/branch_layer.rs:50:29 [INFO] [stderr] | [INFO] [stderr] 50 | fn generate(tree: Tree, params: &BranchParams) -> Tree { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_params` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] error[E0596]: cannot borrow `tree` as mutable, as it is not declared as mutable [INFO] [stderr] --> src/generator/branch_layer.rs:97:17 [INFO] [stderr] | [INFO] [stderr] 97 | &mut tree, [INFO] [stderr] | ^^^^^^^^^ cannot borrow as mutable [INFO] [stderr] | [INFO] [stderr] help: consider changing this to be mutable [INFO] [stderr] | [INFO] [stderr] 50 | fn generate(mut tree: Tree, params: &BranchParams) -> Tree { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] error: aborting due to 1 previous error; 2 warnings emitted [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0596`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/generator/trunk_layer.rs:85:32 [INFO] [stdout] | [INFO] [stdout] 85 | let is_split = rng.gen::() < split_rate(i); [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] = note: `--force-warn keyword-idents-2024` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/generator/trunk_layer.rs:92:51 [INFO] [stdout] | [INFO] [stdout] 92 | let should_branch = local_rng.gen::() < branch_rate(i); [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/generator/branch_layer.rs:70:43 [INFO] [stdout] | [INFO] [stdout] 70 | let should_branch = local_rng.gen::() < branch; [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/sampler/mod.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 49 | rng.gen() [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/generator/branch_layer.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 51 | return tree; [INFO] [stdout] | ----------- any code following this expression is unreachable [INFO] [stdout] 52 | let tip_nodes = tree.get_tip_nodes(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `params` [INFO] [stdout] --> src/generator/branch_layer.rs:50:33 [INFO] [stdout] | [INFO] [stdout] 50 | fn generate(mut tree: Tree, params: &BranchParams) -> Tree { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_params` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/generator/branch_layer.rs:50:17 [INFO] [stdout] | [INFO] [stdout] 50 | fn generate(mut tree: Tree, params: &BranchParams) -> Tree { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating src/bin/druid_gui.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `druid_gui` [INFO] [stdout] warning: unused import: `Checkbox` [INFO] [stdout] --> src/bin/druid_gui.rs:4:22 [INFO] [stdout] | [INFO] [stdout] 4 | widget::{Button, Checkbox, Flex, Split}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/bin/druid_gui.rs:23:54 [INFO] [stdout] | [INFO] [stdout] 23 | ($param_struct:ident, $param_field:ident, $label:expr, $($field:ident{$lo:expr, $hi:expr}),+ $(,)? ) => {{ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] = note: `--force-warn edition-2024-expr-fragment-specifier` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 23 | ($param_struct:ident, $param_field:ident, $label:expr_2021, $($field:ident{$lo:expr, $hi:expr}),+ $(,)? ) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/bin/druid_gui.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/bin/druid_gui.rs:23:79 [INFO] [stdout] | [INFO] [stdout] 23 | ($param_struct:ident, $param_field:ident, $label:expr, $($field:ident{$lo:expr, $hi:expr}),+ $(,)? ) => {{ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 23 | ($param_struct:ident, $param_field:ident, $label:expr, $($field:ident{$lo:expr_2021, $hi:expr}),+ $(,)? ) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] --> src/bin/druid_gui.rs:23:47 [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/bin/druid_gui.rs:23:89 [INFO] [stdout] | [INFO] [stdout] 23 | ($param_struct:ident, $param_field:ident, $label:expr, $($field:ident{$lo:expr, $hi:expr}),+ $(,)? ) => {{ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 23 | ($param_struct:ident, $param_field:ident, $label:expr, $($field:ident{$lo:expr, $hi:expr_2021}),+ $(,)? ) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] 23 | ($param_struct:ident, $param_field:ident, $label:expr_2021, $($field:ident{$lo:expr_2021, $hi:expr_2021}),+ $(,)? ) => {{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/bin/druid_gui.rs:23:80 [INFO] [stderr] | [INFO] [stderr] 23 | ($param_struct:ident, $param_field:ident, $label:expr_2021, $($field:ident{$lo:expr_2021, $hi:expr_2021}),+ $(,)? ) => {{ [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/bin/druid_gui.rs:23:95 [INFO] [stderr] | [INFO] [stderr] 23 | ($param_struct:ident, $param_field:ident, $label:expr_2021, $($field:ident{$lo:expr_2021, $hi:expr_2021}),+ $(,)? ) => {{ [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error: aborting due to 3 previous errors [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `druid_gui` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/bin/druid_gui.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/bin/druid_gui.rs:23:47 [INFO] [stderr] | [INFO] [stderr] 23 | ($param_struct:ident, $param_field:ident, $label:expr_2021, $($field:ident{$lo:expr_2021, $hi:expr_2021}),+ $(,)? ) => {{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stdout] warning: unused import: `Checkbox` [INFO] [stdout] --> src/bin/druid_gui.rs:4:22 [INFO] [stdout] | [INFO] [stdout] 4 | widget::{Button, Checkbox, Flex, Split}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/bin/druid_gui.rs:23:80 [INFO] [stderr] | [INFO] [stderr] 23 | ($param_struct:ident, $param_field:ident, $label:expr_2021, $($field:ident{$lo:expr_2021, $hi:expr_2021}),+ $(,)? ) => {{ [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/bin/druid_gui.rs:23:54 [INFO] [stdout] | [INFO] [stdout] 23 | ($param_struct:ident, $param_field:ident, $label:expr, $($field:ident{$lo:expr, $hi:expr}),+ $(,)? ) => {{ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] = note: `--force-warn edition-2024-expr-fragment-specifier` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 23 | ($param_struct:ident, $param_field:ident, $label:expr_2021, $($field:ident{$lo:expr, $hi:expr}),+ $(,)? ) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/bin/druid_gui.rs:23:95 [INFO] [stderr] | [INFO] [stderr] 23 | ($param_struct:ident, $param_field:ident, $label:expr_2021, $($field:ident{$lo:expr_2021, $hi:expr_2021}),+ $(,)? ) => {{ [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error: aborting due to 3 previous errors [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/bin/druid_gui.rs:23:79 [INFO] [stdout] | [INFO] [stdout] 23 | ($param_struct:ident, $param_field:ident, $label:expr, $($field:ident{$lo:expr, $hi:expr}),+ $(,)? ) => {{ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 23 | ($param_struct:ident, $param_field:ident, $label:expr, $($field:ident{$lo:expr_2021, $hi:expr}),+ $(,)? ) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/bin/druid_gui.rs:23:89 [INFO] [stdout] | [INFO] [stdout] 23 | ($param_struct:ident, $param_field:ident, $label:expr, $($field:ident{$lo:expr, $hi:expr}),+ $(,)? ) => {{ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 23 | ($param_struct:ident, $param_field:ident, $label:expr, $($field:ident{$lo:expr, $hi:expr_2021}),+ $(,)? ) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 41.12s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking treegen v0.1.0 (/tmp/fixit) [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/generator/trunk_layer.rs:85:32 [INFO] [stdout] | [INFO] [stdout] 85 | let is_split = rng.gen::() < split_rate(i); [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 85 | let is_split = rng.r#gen::() < split_rate(i); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/generator/trunk_layer.rs:92:51 [INFO] [stdout] | [INFO] [stdout] 92 | let should_branch = local_rng.gen::() < branch_rate(i); [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 92 | let should_branch = local_rng.r#gen::() < branch_rate(i); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/generator/trunk_layer.rs:85:32 [INFO] [stdout] | [INFO] [stdout] 85 | let is_split = rng.gen::() < split_rate(i); [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 85 | let is_split = rng.r#gen::() < split_rate(i); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/generator/trunk_layer.rs:92:51 [INFO] [stdout] | [INFO] [stdout] 92 | let should_branch = local_rng.gen::() < branch_rate(i); [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 92 | let should_branch = local_rng.r#gen::() < branch_rate(i); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/generator/branch_layer.rs:70:43 [INFO] [stdout] | [INFO] [stdout] 70 | let should_branch = local_rng.gen::() < branch; [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 70 | let should_branch = local_rng.r#gen::() < branch; [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/sampler/mod.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 49 | rng.gen() [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 49 | rng.r#gen() [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/generator/branch_layer.rs:70:43 [INFO] [stdout] | [INFO] [stdout] 70 | let should_branch = local_rng.gen::() < branch; [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 70 | let should_branch = local_rng.r#gen::() < branch; [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/sampler/mod.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 49 | rng.gen() [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 49 | rng.r#gen() [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/generator/branch_layer.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 51 | return tree; [INFO] [stdout] | ----------- any code following this expression is unreachable [INFO] [stdout] 52 | let tip_nodes = tree.get_tip_nodes(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/generator/branch_layer.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 51 | return tree; [INFO] [stdout] | ----------- any code following this expression is unreachable [INFO] [stdout] 52 | let tip_nodes = tree.get_tip_nodes(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `params` [INFO] [stdout] --> src/generator/branch_layer.rs:50:33 [INFO] [stdout] | [INFO] [stdout] 50 | fn generate(mut tree: Tree, params: &BranchParams) -> Tree { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_params` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/generator/branch_layer.rs:50:17 [INFO] [stdout] | [INFO] [stdout] 50 | fn generate(mut tree: Tree, params: &BranchParams) -> Tree { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `params` [INFO] [stdout] --> src/generator/branch_layer.rs:50:33 [INFO] [stdout] | [INFO] [stdout] 50 | fn generate(mut tree: Tree, params: &BranchParams) -> Tree { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_params` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/generator/branch_layer.rs:50:17 [INFO] [stdout] | [INFO] [stdout] 50 | fn generate(mut tree: Tree, params: &BranchParams) -> Tree { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `treegen` (lib) due to 5 previous errors; 3 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `treegen` (lib test) due to 5 previous errors; 3 warnings emitted [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "6d47f71ad6bd903687fc9bd11f87ee355d71fd09f89191ed049de03b0989b0e1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6d47f71ad6bd903687fc9bd11f87ee355d71fd09f89191ed049de03b0989b0e1", kill_on_drop: false }` [INFO] [stdout] 6d47f71ad6bd903687fc9bd11f87ee355d71fd09f89191ed049de03b0989b0e1