[INFO] fetching crate optargs 0.1.2... [INFO] checking optargs-0.1.2 against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] extracting crate optargs 0.1.2 into /workspace/builds/worker-2/source [INFO] validating manifest of crates.io crate optargs 0.1.2 on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate optargs 0.1.2 [INFO] finished tweaking crates.io crate optargs 0.1.2 [INFO] tweaked toml for crates.io crate optargs 0.1.2 written to /workspace/builds/worker-2/source/Cargo.toml [INFO] crate crates.io crate optargs 0.1.2 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded optargs-macro v0.1.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 82bbb21cf4d5c76a2a92dfed7969758d3ed79c96c314faf12950ab91afd11d1f [INFO] running `Command { std: "docker" "start" "-a" "82bbb21cf4d5c76a2a92dfed7969758d3ed79c96c314faf12950ab91afd11d1f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "82bbb21cf4d5c76a2a92dfed7969758d3ed79c96c314faf12950ab91afd11d1f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "82bbb21cf4d5c76a2a92dfed7969758d3ed79c96c314faf12950ab91afd11d1f", kill_on_drop: false }` [INFO] [stdout] 82bbb21cf4d5c76a2a92dfed7969758d3ed79c96c314faf12950ab91afd11d1f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 87cb7e91de7bbd3af7cc43e4887e3335cc47e10e7538882d629d03cb573b4ca4 [INFO] running `Command { std: "docker" "start" "-a" "87cb7e91de7bbd3af7cc43e4887e3335cc47e10e7538882d629d03cb573b4ca4", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.67 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling optargs-macro v0.1.2 [INFO] [stderr] Checking optargs v0.1.2 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/optfn_demo.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/optstruct_reference.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/optfn_reference.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/optstruct_demo.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/optfn_multiple_dyns.rs from 2018 edition to 2021 [INFO] [stderr] Fixed examples/optstruct_reference.rs (2 fixes) [INFO] [stdout] warning: trailing semicolon in macro used in expression position [INFO] [stdout] --> examples/optstruct_reference.rs:29:30 [INFO] [stdout] | [INFO] [stdout] 29 | $src.0 = Some($value); [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 42 | let _p = Example! { a: 10 }; [INFO] [stdout] | ------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(semicolon_in_expressions_from_macros)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79813 [INFO] [stdout] = note: macro invocations at the end of a block are treated as expressions [INFO] [stdout] = note: to ignore the value produced by the macro, add a semicolon after the invocation of `Example` [INFO] [stdout] = note: this warning originates in the macro `Example` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `a` [INFO] [stdout] --> examples/optstruct_reference.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | a: i32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `b` [INFO] [stdout] --> examples/optstruct_reference.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | b: Option<&'static str>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `build` [INFO] [stdout] --> examples/optstruct_reference.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | fn build(self) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `optfn_reference` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * examples/optfn_reference.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: no rules expected the token `@` [INFO] [stderr] --> examples/optfn_reference.rs:5:1 [INFO] [stderr] | [INFO] [stderr] 5 | #[optargs::optfn] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | no rules expected this token in macro call [INFO] [stderr] | when calling this macro [INFO] [stderr] ... [INFO] [stderr] 49 | example!(a: 10, b: "asd"); [INFO] [stderr] | -------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `example` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: no rules expected the token `@` [INFO] [stderr] --> examples/optfn_reference.rs:5:1 [INFO] [stderr] | [INFO] [stderr] 5 | #[optargs::optfn] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | no rules expected this token in macro call [INFO] [stderr] | when calling this macro [INFO] [stderr] ... [INFO] [stderr] 55 | example!(a); [INFO] [stderr] | ------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `example` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `a` found for struct `main::Validator` in the current scope [INFO] [stderr] --> examples/optfn_reference.rs:49:14 [INFO] [stderr] | [INFO] [stderr] 5 | #[optargs::optfn] [INFO] [stderr] | ----------------- method `a` not found for this [INFO] [stderr] ... [INFO] [stderr] 49 | example!(a: 10, b: "asd"); [INFO] [stderr] | ^ help: there is an associated function with a similar name: `_a` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `a` found for struct `main::Validator` in the current scope [INFO] [stderr] --> examples/optfn_reference.rs:55:14 [INFO] [stderr] | [INFO] [stderr] 5 | #[optargs::optfn] [INFO] [stderr] | ----------------- method `a` not found for this [INFO] [stderr] ... [INFO] [stderr] 55 | example!(a); [INFO] [stderr] | ^ help: there is an associated function with a similar name: `_a` [INFO] [stderr] [INFO] [stderr] error: aborting due to 4 previous errors [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0599`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stderr] Fixed examples/optstruct_demo.rs (1 fix) [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `optfn_multiple_dyns` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * examples/optfn_multiple_dyns.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: no rules expected the token `@` [INFO] [stderr] --> examples/optfn_multiple_dyns.rs:1:1 [INFO] [stderr] | [INFO] [stderr] 1 | #[optargs::optfn] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | no rules expected this token in macro call [INFO] [stderr] | when calling this macro [INFO] [stderr] ... [INFO] [stderr] 5 | / blah2! { [INFO] [stderr] 6 | | a: &(0..10) [INFO] [stderr] 7 | | } [INFO] [stderr] | |_____- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `blah2` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `a` found for struct `Validator` in the current scope [INFO] [stderr] --> examples/optfn_multiple_dyns.rs:6:9 [INFO] [stderr] | [INFO] [stderr] 1 | #[optargs::optfn] [INFO] [stderr] | ----------------- method `a` not found for this [INFO] [stderr] ... [INFO] [stderr] 6 | a: &(0..10) [INFO] [stderr] | ^ help: there is an associated function with a similar name: `_a` [INFO] [stderr] [INFO] [stderr] error: aborting due to 2 previous errors [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0599`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> examples/optfn_reference.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | fn example(a: i32, b: Option<&str>) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> examples/optfn_reference.rs:6:20 [INFO] [stdout] | [INFO] [stdout] 6 | fn example(a: i32, b: Option<&str>) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `a` [INFO] [stdout] --> examples/optstruct_demo.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | a: i32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `b` [INFO] [stdout] --> examples/optstruct_demo.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | b: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `b` [INFO] [stdout] --> examples/optfn_reference.rs:22:48 [INFO] [stdout] | [INFO] [stdout] 22 | impl Validator { fn b(self) -> Validator { self }} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | example_src!(a: 10); [INFO] [stdout] | -------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `example_src` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> examples/optfn_multiple_dyns.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | fn blah2(a: Option<&dyn Iterator>) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized] target(s) in 12.98s [INFO] [stderr] Running `cargo check` to verify 2021 [INFO] [stderr] Checking optargs v0.1.2 (/tmp/fixit) [INFO] [stdout] warning: trailing semicolon in macro used in expression position [INFO] [stdout] --> examples/optstruct_reference.rs:29:30 [INFO] [stdout] | [INFO] [stdout] 29 | $src.0 = Some($value); [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 42 | let _p = Example! { a: 10 }; [INFO] [stdout] | ------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(semicolon_in_expressions_from_macros)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79813 [INFO] [stdout] = note: macro invocations at the end of a block are treated as expressions [INFO] [stdout] = note: to ignore the value produced by the macro, add a semicolon after the invocation of `Example` [INFO] [stdout] = note: this warning originates in the macro `Example` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `a` [INFO] [stdout] --> examples/optstruct_reference.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | a: i32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `b` [INFO] [stdout] --> examples/optstruct_reference.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | b: Option<&'static str>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `build` [INFO] [stdout] --> examples/optstruct_reference.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | fn build(self) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> examples/optfn_reference.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | fn example(a: i32, b: Option<&str>) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> examples/optfn_multiple_dyns.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | fn blah2(a: Option<&dyn Iterator>) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> examples/optfn_reference.rs:6:20 [INFO] [stdout] | [INFO] [stdout] 6 | fn example(a: i32, b: Option<&str>) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `a` [INFO] [stdout] --> examples/optstruct_demo.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | a: i32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `b` [INFO] [stdout] --> examples/optstruct_demo.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | b: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `b` [INFO] [stdout] --> examples/optfn_reference.rs:22:48 [INFO] [stdout] | [INFO] [stdout] 22 | impl Validator { fn b(self) -> Validator { self }} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | example_src!(a: 10); [INFO] [stdout] | -------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `example_src` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized] target(s) in 0.23s [INFO] running `Command { std: "docker" "inspect" "87cb7e91de7bbd3af7cc43e4887e3335cc47e10e7538882d629d03cb573b4ca4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "87cb7e91de7bbd3af7cc43e4887e3335cc47e10e7538882d629d03cb573b4ca4", kill_on_drop: false }` [INFO] [stdout] 87cb7e91de7bbd3af7cc43e4887e3335cc47e10e7538882d629d03cb573b4ca4