[INFO] crate attribution 0.2.0 is already in cache [INFO] checking attribution-0.2.0 against master#0d2817a439c2ad9fe343f6347eb6d90947893363 for pr-67531 [INFO] extracting crate attribution 0.2.0 into /workspace/builds/worker-3/source [INFO] validating manifest of crates.io crate attribution 0.2.0 on toolchain 0d2817a439c2ad9fe343f6347eb6d90947893363 [INFO] running `"/workspace/cargo-home/bin/cargo" "+0d2817a439c2ad9fe343f6347eb6d90947893363" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking crates.io crate attribution 0.2.0 [INFO] removed 2 missing examples [INFO] finished tweaking crates.io crate attribution 0.2.0 [INFO] tweaked toml for crates.io crate attribution 0.2.0 written to /workspace/builds/worker-3/source/Cargo.toml [INFO] running `"/workspace/cargo-home/bin/cargo" "+0d2817a439c2ad9fe343f6347eb6d90947893363" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `"/workspace/cargo-home/bin/cargo" "+0d2817a439c2ad9fe343f6347eb6d90947893363" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+0d2817a439c2ad9fe343f6347eb6d90947893363" "check" "--frozen" "--all" "--all-targets"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 1db9346acc64786f95bd8b82ca0b0aedfe1a79d62ab8176ca0c3b8b367d3747d [INFO] running `"docker" "start" "-a" "1db9346acc64786f95bd8b82ca0b0aedfe1a79d62ab8176ca0c3b8b367d3747d"` [INFO] [stderr] Compiling syn v1.0.11 [INFO] [stderr] Compiling either v1.5.3 [INFO] [stderr] Checking syn v0.15.44 [INFO] [stderr] Compiling itertools v0.8.2 [INFO] [stderr] Compiling shrinkwraprs v0.2.3 [INFO] [stderr] Compiling attribution-macros v0.2.1 [INFO] [stderr] Checking attribution v0.2.0 (/opt/rustwide/workdir) [INFO] [stderr] error: the `#[proc_macro_attribute]` attribute is only usable with crates of the `proc-macro` crate type [INFO] [stderr] --> examples/gs.rs:21:1 [INFO] [stderr] | [INFO] [stderr] 21 | #[proc_macro_attribute] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `syn::Item` [INFO] [stderr] --> examples/gs.rs:13:5 [INFO] [stderr] | [INFO] [stderr] 13 | use syn::Item; [INFO] [stderr] | ^^^^^^^^^ no `Item` in the root [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `syn::ItemStruct` [INFO] [stderr] --> examples/gs.rs:14:5 [INFO] [stderr] | [INFO] [stderr] 14 | use syn::ItemStruct; [INFO] [stderr] | ^^^^^^^^^^^^^^^ no `ItemStruct` in the root [INFO] [stderr] [INFO] [stderr] error: the `#[proc_macro_attribute]` attribute is only usable with crates of the `proc-macro` crate type [INFO] [stderr] --> examples/ez_trace.rs:14:1 [INFO] [stderr] | [INFO] [stderr] 14 | #[proc_macro_attribute] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `Item` in `syn` [INFO] [stderr] --> examples/ez_trace.rs:24:17 [INFO] [stderr] | [INFO] [stderr] 24 | if let syn::Item::Fn(tagged_fn) = syn::parse2(tagged).unwrap() { [INFO] [stderr] | ^^^^ could not find `Item` in `syn` [INFO] [stderr] [INFO] [stderr] error[E0601]: `main` function not found in crate `gs` [INFO] [stderr] --> examples/gs.rs:1:1 [INFO] [stderr] | [INFO] [stderr] 1 | / extern crate proc_macro; [INFO] [stderr] 2 | | [INFO] [stderr] 3 | | use attribution::attr_args; [INFO] [stderr] 4 | | use attribution::DynamicParameters; [INFO] [stderr] ... | [INFO] [stderr] 152 | | } [INFO] [stderr] 153 | | } [INFO] [stderr] | |_^ consider adding a `main` function to `examples/gs.rs` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ItemFn` in crate `syn` [INFO] [stderr] --> examples/ez_trace.rs:31:54 [INFO] [stderr] | [INFO] [stderr] 31 | fn impl_trace(attr: EzTraceArgs, mut tagged_fn: syn::ItemFn) -> proc_macro2::TokenStream { [INFO] [stderr] | ^^^^^^ not found in `syn` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Block` in crate `syn` [INFO] [stderr] --> examples/ez_trace.rs:51:25 [INFO] [stderr] | [INFO] [stderr] 51 | let new_block: syn::Block = syn::parse_quote! { [INFO] [stderr] | ^^^^^ not found in `syn` [INFO] [stderr] | [INFO] [stderr] help: there is an enum variant `syn::Expr::Block`; try using the variant's enum [INFO] [stderr] | [INFO] [stderr] 51 | let new_block: syn::Expr = syn::parse_quote! { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0601]: `main` function not found in crate `ez_trace` [INFO] [stderr] --> examples/ez_trace.rs:1:1 [INFO] [stderr] | [INFO] [stderr] 1 | / extern crate proc_macro; [INFO] [stderr] 2 | | [INFO] [stderr] 3 | | use attribution::attr_args; [INFO] [stderr] 4 | | use proc_macro::TokenStream; [INFO] [stderr] ... | [INFO] [stderr] 109 | | } [INFO] [stderr] 110 | | } [INFO] [stderr] | |_^ consider adding a `main` function to `examples/ez_trace.rs` [INFO] [stderr] [INFO] [stderr] error: aborting due to 4 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0432, E0601. [INFO] [stderr] For more information about an error, try `rustc --explain E0432`. [INFO] [stderr] error: could not compile `attribution`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] warning: unused import: `quote::ToTokens` [INFO] [stderr] --> examples/ez_trace.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use quote::ToTokens; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] error: aborting due to 5 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0412, E0433, E0601. [INFO] [stderr] For more information about an error, try `rustc --explain E0412`. [INFO] [stderr] error: could not compile `attribution`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "1db9346acc64786f95bd8b82ca0b0aedfe1a79d62ab8176ca0c3b8b367d3747d"` [INFO] running `"docker" "rm" "-f" "1db9346acc64786f95bd8b82ca0b0aedfe1a79d62ab8176ca0c3b8b367d3747d"` [INFO] [stdout] 1db9346acc64786f95bd8b82ca0b0aedfe1a79d62ab8176ca0c3b8b367d3747d