[INFO] fetching crate samd-dma 0.3.0... [INFO] testing samd-dma-0.3.0 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate samd-dma 0.3.0 into /workspace/builds/worker-6-tc2/source [INFO] started tweaking crates.io crate samd-dma 0.3.0 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate samd-dma 0.3.0 [INFO] tweaked toml for crates.io crate samd-dma 0.3.0 written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate samd-dma 0.3.0 on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate samd-dma 0.3.0 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" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 609471ba87ee38cbddbea03806916b8de76e8df2ab0854760c6e280ecf75da3e [INFO] running `Command { std: "docker" "start" "-a" "609471ba87ee38cbddbea03806916b8de76e8df2ab0854760c6e280ecf75da3e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "609471ba87ee38cbddbea03806916b8de76e8df2ab0854760c6e280ecf75da3e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "609471ba87ee38cbddbea03806916b8de76e8df2ab0854760c6e280ecf75da3e", kill_on_drop: false }` [INFO] [stdout] 609471ba87ee38cbddbea03806916b8de76e8df2ab0854760c6e280ecf75da3e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8b5acfa13e9811989d5075b82bb3ab108ef57ceaf6eadc29268c180ed517d348 [INFO] running `Command { std: "docker" "start" "-a" "8b5acfa13e9811989d5075b82bb3ab108ef57ceaf6eadc29268c180ed517d348", kill_on_drop: false }` [INFO] [stderr] Compiling typenum v1.12.0 [INFO] [stderr] Compiling proc-macro2 v1.0.18 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.34 [INFO] [stderr] Compiling stable_deref_trait v1.2.0 [INFO] [stderr] Compiling vcell v0.1.2 [INFO] [stderr] Compiling cortex-m v0.6.2 [INFO] [stderr] Compiling bare-metal v0.2.5 [INFO] [stderr] Compiling proc-macro-hack v0.5.16 [INFO] [stderr] Compiling volatile-register v0.2.0 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Compiling paste-impl v0.1.18 [INFO] [stderr] Compiling paste v0.1.18 [INFO] [stderr] Compiling generic-array v0.12.3 [INFO] [stderr] Compiling generic-array v0.13.2 [INFO] [stderr] Compiling as-slice v0.1.3 [INFO] [stderr] Compiling aligned v0.3.2 [INFO] [stderr] Compiling smart-default v0.6.0 [INFO] [stderr] Compiling samd-dma v0.3.0 (/opt/rustwide/workdir) [INFO] [stdout] error: Please use this crate's feature flags to select a SAM micro-controller to target. [INFO] [stdout] --> src/lib.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 24 | compile_error!("Please use this crate's feature flags to select a SAM micro-controller to target."); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `target_device` in the crate root [INFO] [stdout] --> src/types.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::target_device::generic::Variant; [INFO] [stdout] | ^^^^^^^^^^^^^ could not find `target_device` in the crate root [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/lib.rs:31:21 [INFO] [stdout] | [INFO] [stdout] 30 | #[cfg(feature = "samd51j19a")] [INFO] [stdout] | ---------------------- the item is gated behind the `samd51j19a` feature [INFO] [stdout] 31 | use atsamd51j19a as target_device; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/lib.rs:34:21 [INFO] [stdout] | [INFO] [stdout] 33 | #[cfg(feature = "samd51j20a")] [INFO] [stdout] | ---------------------- the item is gated behind the `samd51j20a` feature [INFO] [stdout] 34 | use atsamd51j20a as target_device; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/lib.rs:37:21 [INFO] [stdout] | [INFO] [stdout] 36 | #[cfg(feature = "samd51g19a")] [INFO] [stdout] | ---------------------- the item is gated behind the `samd51g19a` feature [INFO] [stdout] 37 | use atsamd51g19a as target_device; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/lib.rs:40:21 [INFO] [stdout] | [INFO] [stdout] 39 | #[cfg(feature = "samd21g18a")] [INFO] [stdout] | ---------------------- the item is gated behind the `samd21g18a` feature [INFO] [stdout] 40 | use atsamd21g18a as target_device; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/lib.rs:43:21 [INFO] [stdout] | [INFO] [stdout] 42 | #[cfg(feature = "samd21e18a")] [INFO] [stdout] | ---------------------- the item is gated behind the `samd21e18a` feature [INFO] [stdout] 43 | use atsamd21e18a as target_device; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/lib.rs:46:21 [INFO] [stdout] | [INFO] [stdout] 45 | #[cfg(feature = "samd21j18a")] [INFO] [stdout] | ---------------------- the item is gated behind the `samd21j18a` feature [INFO] [stdout] 46 | use atsamd21j18a as target_device; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::target_device` [INFO] [stdout] --> src/channel.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::target_device::DMAC; [INFO] [stdout] | ^^^^^^^^^^^^^ could not find `target_device` in the crate root [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/lib.rs:31:21 [INFO] [stdout] | [INFO] [stdout] 30 | #[cfg(feature = "samd51j19a")] [INFO] [stdout] | ---------------------- the item is gated behind the `samd51j19a` feature [INFO] [stdout] 31 | use atsamd51j19a as target_device; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/lib.rs:34:21 [INFO] [stdout] | [INFO] [stdout] 33 | #[cfg(feature = "samd51j20a")] [INFO] [stdout] | ---------------------- the item is gated behind the `samd51j20a` feature [INFO] [stdout] 34 | use atsamd51j20a as target_device; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/lib.rs:37:21 [INFO] [stdout] | [INFO] [stdout] 36 | #[cfg(feature = "samd51g19a")] [INFO] [stdout] | ---------------------- the item is gated behind the `samd51g19a` feature [INFO] [stdout] 37 | use atsamd51g19a as target_device; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/lib.rs:40:21 [INFO] [stdout] | [INFO] [stdout] 39 | #[cfg(feature = "samd21g18a")] [INFO] [stdout] | ---------------------- the item is gated behind the `samd21g18a` feature [INFO] [stdout] 40 | use atsamd21g18a as target_device; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/lib.rs:43:21 [INFO] [stdout] | [INFO] [stdout] 42 | #[cfg(feature = "samd21e18a")] [INFO] [stdout] | ---------------------- the item is gated behind the `samd21e18a` feature [INFO] [stdout] 43 | use atsamd21e18a as target_device; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/lib.rs:46:21 [INFO] [stdout] | [INFO] [stdout] 45 | #[cfg(feature = "samd21j18a")] [INFO] [stdout] | ---------------------- the item is gated behind the `samd21j18a` feature [INFO] [stdout] 46 | use atsamd21j18a as target_device; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `self::TRIGACT_A` [INFO] [stdout] --> src/types.rs:297:19 [INFO] [stdout] | [INFO] [stdout] 297 | use self::TRIGACT_A::*; [INFO] [stdout] | ^^^^^^^^^ could not find `TRIGACT_A` in `self` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `target_device` [INFO] [stdout] --> src/lib.rs:103:5 [INFO] [stdout] | [INFO] [stdout] 103 | use target_device::DMAC; [INFO] [stdout] | ^^^^^^^^^^^^^ use of unresolved module or unlinked crate `target_device` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `target_device`, use `cargo add target_device` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `channel_reg` in this scope [INFO] [stdout] --> src/channel.rs:219:40 [INFO] [stdout] | [INFO] [stdout] 219 | Interrupts::from_bits_truncate(channel_reg!(chintflag, self.id).read().bits()) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `channel_reg` in this scope [INFO] [stdout] --> src/channel.rs:224:9 [INFO] [stdout] | [INFO] [stdout] 224 | channel_reg!(chintflag, self.id).reset(); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `channel_reg` in this scope [INFO] [stdout] --> src/channel.rs:229:9 [INFO] [stdout] | [INFO] [stdout] 229 | channel_reg!(chintenset, self.id).write(|w| unsafe { w.bits(interrupts.bits()) }); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `channel_reg` in this scope [INFO] [stdout] --> src/channel.rs:230:9 [INFO] [stdout] | [INFO] [stdout] 230 | channel_reg!(chintenclr, self.id).write(|w| unsafe { w.bits(!interrupts.bits()) }); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `channel_reg` in this scope [INFO] [stdout] --> src/channel.rs:235:40 [INFO] [stdout] | [INFO] [stdout] 235 | Interrupts::from_bits_truncate(channel_reg!(chintenset, self.id).read().bits()) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `channel_reg` in this scope [INFO] [stdout] --> src/channel.rs:253:9 [INFO] [stdout] | [INFO] [stdout] 253 | channel_reg!(chctrla, self.id).modify(|_, w| w.enable().set_bit()); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `channel_reg` in this scope [INFO] [stdout] --> src/channel.rs:258:9 [INFO] [stdout] | [INFO] [stdout] 258 | channel_reg!(chctrla, self.id).read().enable().bit() [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `channel_reg` in this scope [INFO] [stdout] --> src/channel.rs:265:9 [INFO] [stdout] | [INFO] [stdout] 265 | channel_reg!(chctrla, self.id).modify(|_, w| w.swrst().set_bit()); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `channel_reg` in this scope [INFO] [stdout] --> src/channel.rs:287:9 [INFO] [stdout] | [INFO] [stdout] 287 | channel_reg!(chctrlb, self.id).modify(|r, w| { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `channel_reg` in this scope [INFO] [stdout] --> src/channel.rs:301:9 [INFO] [stdout] | [INFO] [stdout] 301 | channel_reg!(chctrlb, self.id).modify(|r, w| { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `channel_reg` in this scope [INFO] [stdout] --> src/channel.rs:316:9 [INFO] [stdout] | [INFO] [stdout] 316 | channel_reg!(chctrla, self.id).modify(|_, w| w.enable().clear_bit()); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `channel_reg` in this scope [INFO] [stdout] --> src/channel.rs:322:9 [INFO] [stdout] | [INFO] [stdout] 322 | channel_reg!(chstatus, self.id).read().pend().bit() [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `channel_reg` in this scope [INFO] [stdout] --> src/channel.rs:328:9 [INFO] [stdout] | [INFO] [stdout] 328 | channel_reg!(chstatus, self.id).read().busy().bit() [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `channel_reg` in this scope [INFO] [stdout] --> src/channel.rs:340:22 [INFO] [stdout] | [INFO] [stdout] 340 | let status = channel_reg!(chstatus, self.id).read(); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `channel_reg` in this scope [INFO] [stdout] --> src/channel.rs:343:12 [INFO] [stdout] | [INFO] [stdout] 343 | if channel_reg!(chctrla, self.id).read().enable().bit_is_set() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/channel.rs:205:35 [INFO] [stdout] | [INFO] [stdout] 205 | pub fn get_priority(&self) -> Priority { [INFO] [stdout] | ------------ ^^^^^^^^ expected `Priority`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `channels` on type `&mut DMAController` [INFO] [stdout] --> src/lib.rs:182:17 [INFO] [stdout] | [INFO] [stdout] 182 | if self.channels & (1 << U::USIZE) == 0 { [INFO] [stdout] | ^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `storage`, `dmac` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `channels` on type `&mut DMAController` [INFO] [stdout] --> src/lib.rs:185:18 [INFO] [stdout] | [INFO] [stdout] 185 | self.channels |= 1 << U::USIZE; [INFO] [stdout] | ^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `storage`, `dmac` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `channels` on type `&mut DMAController` [INFO] [stdout] --> src/lib.rs:203:14 [INFO] [stdout] | [INFO] [stdout] 203 | self.channels &= !(1 << channel.id()); [INFO] [stdout] | ^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `storage`, `dmac` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `priority` [INFO] [stdout] --> src/channel.rs:197:36 [INFO] [stdout] | [INFO] [stdout] 197 | pub fn set_priority(&mut self, priority: Priority) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_priority` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function cannot return without recursing [INFO] [stdout] --> src/descriptors.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | fn default() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ cannot return without recursing [INFO] [stdout] ... [INFO] [stdout] 46 | ..Default::default() [INFO] [stdout] | ------------------ recursive call site [INFO] [stdout] | [INFO] [stdout] = help: a `loop` may express intention better if this is on purpose [INFO] [stdout] = note: `#[warn(unconditional_recursion)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0432, E0433, E0609. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `samd-dma` (lib) due to 24 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "8b5acfa13e9811989d5075b82bb3ab108ef57ceaf6eadc29268c180ed517d348", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8b5acfa13e9811989d5075b82bb3ab108ef57ceaf6eadc29268c180ed517d348", kill_on_drop: false }` [INFO] [stdout] 8b5acfa13e9811989d5075b82bb3ab108ef57ceaf6eadc29268c180ed517d348