[INFO] fetching crate pathmatch 0.1.2... [INFO] testing pathmatch-0.1.2 against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [INFO] extracting crate pathmatch 0.1.2 into /workspace/builds/worker-2-tc1/source [INFO] started tweaking crates.io crate pathmatch 0.1.2 [INFO] finished tweaking crates.io crate pathmatch 0.1.2 [INFO] tweaked toml for crates.io crate pathmatch 0.1.2 written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate pathmatch 0.1.2 on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: path `src/pathmatch.rs` was erroneously implicitly accepted for library `pathmatch`, [INFO] [stderr] please rename the file to `src/lib.rs` or set lib.path in Cargo.toml [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4ff558247827d384208900e1890873d3fa1acdb869aa30d503d2901f7b52524c [INFO] running `Command { std: "docker" "start" "-a" "4ff558247827d384208900e1890873d3fa1acdb869aa30d503d2901f7b52524c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4ff558247827d384208900e1890873d3fa1acdb869aa30d503d2901f7b52524c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4ff558247827d384208900e1890873d3fa1acdb869aa30d503d2901f7b52524c", kill_on_drop: false }` [INFO] [stdout] 4ff558247827d384208900e1890873d3fa1acdb869aa30d503d2901f7b52524c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] e1ccdf659ddfbe1027c66853dc149a221951bdcc6f0500084a41d86f8b153ad8 [INFO] running `Command { std: "docker" "start" "-a" "e1ccdf659ddfbe1027c66853dc149a221951bdcc6f0500084a41d86f8b153ad8", kill_on_drop: false }` [INFO] [stderr] warning: path `src/pathmatch.rs` was erroneously implicitly accepted for library `pathmatch`, [INFO] [stderr] please rename the file to `src/lib.rs` or set lib.path in Cargo.toml [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling pathmatch v0.1.2 (/opt/rustwide/workdir) [INFO] [stdout] error: macros that expand to items must be delimited with braces or followed by a semicolon [INFO] [stdout] --> src/pathmatch.rs:3:28 [INFO] [stdout] | [INFO] [stdout] 3 | macro_rules! return_if_some( [INFO] [stdout] | ____________________________^ [INFO] [stdout] 4 | | ($arg:expr) => ( [INFO] [stdout] 5 | | match $arg { [INFO] [stdout] 6 | | Some(val) => return val, [INFO] [stdout] ... | [INFO] [stdout] 9 | | ); [INFO] [stdout] 10 | | ) [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] help: change the delimiters to curly braces [INFO] [stdout] | [INFO] [stdout] 3 ~ macro_rules! return_if_some{ [INFO] [stdout] 4 | ($arg:expr) => ( [INFO] [stdout] ... [INFO] [stdout] 9 | ); [INFO] [stdout] 10 + } [INFO] [stdout] | [INFO] [stdout] help: add a semicolon [INFO] [stdout] | [INFO] [stdout] 10 | ); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `deriving` in this scope [INFO] [stdout] --> src/pathmatch.rs:19:7 [INFO] [stdout] | [INFO] [stdout] 19 | #[deriving(Clone)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0496]: lifetime name `'a` shadows a lifetime name that is already in scope [INFO] [stdout] --> src/pathmatch.rs:45:17 [INFO] [stdout] | [INFO] [stdout] 43 | impl<'a> Iterator for Cursor<'a> [INFO] [stdout] | -- first declared here [INFO] [stdout] 44 | { [INFO] [stdout] 45 | fn next<'a>(&mut self) -> Option [INFO] [stdout] | ^^ lifetime `'a` already in scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `int` in this scope [INFO] [stdout] --> src/pathmatch.rs:33:42 [INFO] [stdout] | [INFO] [stdout] 33 | fn clone_times_next(&'a self, n: int) -> Cursor<'a> [INFO] [stdout] | ^^^ [INFO] [stdout] | | [INFO] [stdout] | not found in this scope [INFO] [stdout] | help: perhaps you intended to use this type: `i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/pathmatch.rs:36:22 [INFO] [stdout] | [INFO] [stdout] 36 | for _ in range(0, n) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 3 + use std::slice::range; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `macro_rules` has been stable since 1.0.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/pathmatch.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(macro_rules)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: trait takes 0 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> src/pathmatch.rs:43:14 [INFO] [stdout] | [INFO] [stdout] 43 | impl<'a> Iterator for Cursor<'a> [INFO] [stdout] | ^^^^^^^^ expected 0 generic arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0046]: not all trait items implemented, missing: `Item` [INFO] [stdout] --> src/pathmatch.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 43 | impl<'a> Iterator for Cursor<'a> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `Item` in implementation [INFO] [stdout] | [INFO] [stdout] = help: implement the missing item: `type Item = /* Type */;` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/pathmatch.rs:39:20 [INFO] [stdout] | [INFO] [stdout] 33 | fn clone_times_next(&'a self, n: int) -> Cursor<'a> [INFO] [stdout] | ---------- expected `pathmatch::Cursor<'a>` because of return type [INFO] [stdout] ... [INFO] [stdout] 39 | return rv [INFO] [stdout] | ^^ expected `Cursor<'_>`, found `&Cursor<'_>` [INFO] [stdout] | [INFO] [stdout] note: `pathmatch::Cursor<'a>` does not implement `Clone`, so `&pathmatch::Cursor<'_>` was cloned instead [INFO] [stdout] --> src/pathmatch.rs:35:26 [INFO] [stdout] | [INFO] [stdout] 35 | let mut rv = self.clone(); [INFO] [stdout] | ^^^^ [INFO] [stdout] help: consider annotating `pathmatch::Cursor<'a>` with `#[derive(Clone)]` [INFO] [stdout] | [INFO] [stdout] 20 + #[derive(Clone)] [INFO] [stdout] 21 | struct Cursor<'a> [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `is_empty` exists for struct `Peekable<&mut pathmatch::Cursor<'_>>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/pathmatch.rs:55:39 [INFO] [stdout] | [INFO] [stdout] 55 | if !path_chars.peekable().is_empty() && pathmatch_try(pattern_chars.clone_times_next(3), path_chars, alt_branch_mode) { [INFO] [stdout] | ^^^^^^^^ method cannot be called on `Peekable<&mut pathmatch::Cursor<'_>>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `&mut pathmatch::Cursor<'_>: ExactSizeIterator` [INFO] [stdout] which is required by `Peekable<&mut pathmatch::Cursor<'_>>: ExactSizeIterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `is_empty` exists for struct `Peekable<&mut pathmatch::Cursor<'_>>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/pathmatch.rs:60:136 [INFO] [stdout] | [INFO] [stdout] 60 | ...rs.peekable().is_empty() { [INFO] [stdout] | ^^^^^^^^ method cannot be called on `Peekable<&mut pathmatch::Cursor<'_>>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `&mut pathmatch::Cursor<'_>: ExactSizeIterator` [INFO] [stdout] which is required by `Peekable<&mut pathmatch::Cursor<'_>>: ExactSizeIterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `clone` found for mutable reference `&mut pathmatch::Cursor<'_>` in the current scope [INFO] [stdout] --> src/pathmatch.rs:108:46 [INFO] [stdout] | [INFO] [stdout] 108 | let mut path_chars_copy = path_chars.clone(); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the trait `Clone` defines an item `clone`, but is explicitly unimplemented [INFO] [stdout] help: there is a method `cloned` with a similar name [INFO] [stdout] | [INFO] [stdout] 108 | let mut path_chars_copy = path_chars.cloned(); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0046, E0107, E0308, E0412, E0425, E0496, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0046`. [INFO] [stdout] [INFO] [stderr] error: could not compile `pathmatch` (lib) due to 11 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "e1ccdf659ddfbe1027c66853dc149a221951bdcc6f0500084a41d86f8b153ad8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e1ccdf659ddfbe1027c66853dc149a221951bdcc6f0500084a41d86f8b153ad8", kill_on_drop: false }` [INFO] [stdout] e1ccdf659ddfbe1027c66853dc149a221951bdcc6f0500084a41d86f8b153ad8