[INFO] fetching crate flac-rs 0.0.7... [INFO] testing flac-rs-0.0.7 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate flac-rs 0.0.7 into /workspace/builds/worker-6-tc2/source [INFO] started tweaking crates.io crate flac-rs 0.0.7 [INFO] finished tweaking crates.io crate flac-rs 0.0.7 [INFO] tweaked toml for crates.io crate flac-rs 0.0.7 written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate flac-rs 0.0.7 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 flac-rs 0.0.7 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] d3b7e316a349274a872a7ce5f44cf1d32032745b0cabef29c1bd6717e537f74d [INFO] running `Command { std: "docker" "start" "-a" "d3b7e316a349274a872a7ce5f44cf1d32032745b0cabef29c1bd6717e537f74d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d3b7e316a349274a872a7ce5f44cf1d32032745b0cabef29c1bd6717e537f74d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d3b7e316a349274a872a7ce5f44cf1d32032745b0cabef29c1bd6717e537f74d", kill_on_drop: false }` [INFO] [stdout] d3b7e316a349274a872a7ce5f44cf1d32032745b0cabef29c1bd6717e537f74d [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] c0a9206909cdd62496a59980b0f6ae4e1c48864a0e02d4321ebb041752d60fe2 [INFO] running `Command { std: "docker" "start" "-a" "c0a9206909cdd62496a59980b0f6ae4e1c48864a0e02d4321ebb041752d60fe2", kill_on_drop: false }` [INFO] [stderr] Compiling cc v1.2.22 [INFO] [stderr] Compiling libc v0.2.172 [INFO] [stderr] Compiling id3 v1.16.2 [INFO] [stderr] Compiling cmake v0.1.54 [INFO] [stderr] Compiling libflac-sys v0.3.3 [INFO] [stderr] Compiling flac-rs v0.0.7 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 9.04s [INFO] running `Command { std: "docker" "inspect" "c0a9206909cdd62496a59980b0f6ae4e1c48864a0e02d4321ebb041752d60fe2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c0a9206909cdd62496a59980b0f6ae4e1c48864a0e02d4321ebb041752d60fe2", kill_on_drop: false }` [INFO] [stdout] c0a9206909cdd62496a59980b0f6ae4e1c48864a0e02d4321ebb041752d60fe2 [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" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7c0766dd714695474a36ec9da885a4159588d377846d3028a8af894d2d98460c [INFO] running `Command { std: "docker" "start" "-a" "7c0766dd714695474a36ec9da885a4159588d377846d3028a8af894d2d98460c", kill_on_drop: false }` [INFO] [stderr] Compiling flac-rs v0.0.7 (/opt/rustwide/workdir) [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `FlacEncoderParams` in this scope [INFO] [stdout] --> src/lib.rs:73:10 [INFO] [stdout] | [INFO] [stdout] 73 | &FlacEncoderParams { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 4 + use crate::options::FlacEncoderParams; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FlacCompression` [INFO] [stdout] --> src/lib.rs:75:26 [INFO] [stdout] | [INFO] [stdout] 75 | compression: FlacCompression::Level8, [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `FlacCompression` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 4 + use crate::options::FlacCompression; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `FlacReadStatus` in this scope [INFO] [stdout] --> src/lib.rs:88:72 [INFO] [stdout] | [INFO] [stdout] 88 | Box::new(|reader: &mut ReaderType, data: &mut [u8]| -> (usize, FlacReadStatus) { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 4 + use crate::closure_objects::FlacReadStatus; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FlacReadStatus` [INFO] [stdout] --> src/lib.rs:93:51 [INFO] [stdout] | [INFO] [stdout] 93 | Ordering::Equal => (size, FlacReadStatus::GoOn), [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `FlacReadStatus` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 4 + use crate::closure_objects::FlacReadStatus; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FlacReadStatus` [INFO] [stdout] --> src/lib.rs:94:50 [INFO] [stdout] | [INFO] [stdout] 94 | Ordering::Less => (size, FlacReadStatus::Eof), [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `FlacReadStatus` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 4 + use crate::closure_objects::FlacReadStatus; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FlacReadStatus` [INFO] [stdout] --> src/lib.rs:100:25 [INFO] [stdout] | [INFO] [stdout] 100 | (0, FlacReadStatus::Abort) [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `FlacReadStatus` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 4 + use crate::closure_objects::FlacReadStatus; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SamplesInfo` in this scope [INFO] [stdout] --> src/lib.rs:122:55 [INFO] [stdout] | [INFO] [stdout] 122 | Box::new(|samples: &[Vec], sample_info: &SamplesInfo| -> Result<(), io::Error>{ [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 4 + use crate::closure_objects::SamplesInfo; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `FlacInternalDecoderError` in this scope [INFO] [stdout] --> src/lib.rs:141:26 [INFO] [stdout] | [INFO] [stdout] 141 | Box::new(|error: FlacInternalDecoderError| { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 4 + use crate::closure_objects::FlacInternalDecoderError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FlacAudioForm` [INFO] [stdout] --> src/lib.rs:146:9 [INFO] [stdout] | [INFO] [stdout] 146 | FlacAudioForm::FrameArray [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `FlacAudioForm` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 4 + use crate::options::FlacAudioForm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0631]: type mismatch in closure arguments [INFO] [stdout] --> src/lib.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | Box::new(|writer: &mut WriterType, data: &[u8]| -> Result<(), io::Error> { [INFO] [stdout] | ^ --------------------------------------------------------------- found signature defined here [INFO] [stdout] | _________| [INFO] [stdout] | | [INFO] [stdout] 62 | | writer.write_all(data) [INFO] [stdout] 63 | | }), [INFO] [stdout] | |__________^ expected due to this [INFO] [stdout] | [INFO] [stdout] = note: expected closure signature `for<'a, 'b> fn(&'a mut &mut BufWriter<_>, &'b _) -> _` [INFO] [stdout] found closure signature `fn(&mut BufWriter<_>, &_) -> _` [INFO] [stdout] = note: required for the cast from `Box<{closure@src/lib.rs:61:18: 61:81}>` to `Box, &[u8]) -> Result<(), Error>>` [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/flac-b9ef1c8f8fac2c32.long-type-12556573593739559669.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] help: consider adjusting the signature so it borrows its argument [INFO] [stdout] | [INFO] [stdout] 61 | Box::new(|writer: &mut &mut WriterType, data: &[u8]| -> Result<(), io::Error> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0631]: type mismatch in closure arguments [INFO] [stdout] --> src/lib.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | Box::new(|writer: &mut WriterType, position: u64| -> Result<(), io::Error> { [INFO] [stdout] | ^ ----------------------------------------------------------------- found signature defined here [INFO] [stdout] | _________| [INFO] [stdout] | | [INFO] [stdout] 66 | | writer.seek(SeekFrom::Start(position))?; [INFO] [stdout] 67 | | Ok(()) [INFO] [stdout] 68 | | }), [INFO] [stdout] | |__________^ expected due to this [INFO] [stdout] | [INFO] [stdout] = note: expected closure signature `for<'a> fn(&'a mut &mut BufWriter<_>, _) -> _` [INFO] [stdout] found closure signature `fn(&mut BufWriter<_>, _) -> _` [INFO] [stdout] = note: required for the cast from `Box<{closure@src/lib.rs:65:18: 65:83}>` to `Box FnMut(&'a mut &mut BufWriter, u64) -> Result<(), std::io::Error>>` [INFO] [stdout] help: consider adjusting the signature so it borrows its argument [INFO] [stdout] | [INFO] [stdout] 65 | Box::new(|writer: &mut &mut WriterType, position: u64| -> Result<(), io::Error> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0631]: type mismatch in closure arguments [INFO] [stdout] --> src/lib.rs:70:9 [INFO] [stdout] | [INFO] [stdout] 70 | Box::new(|writer: &mut WriterType| -> Result { [INFO] [stdout] | ^ --------------------------------------------------- found signature defined here [INFO] [stdout] | _________| [INFO] [stdout] | | [INFO] [stdout] 71 | | writer.stream_position() [INFO] [stdout] 72 | | }), [INFO] [stdout] | |__________^ expected due to this [INFO] [stdout] | [INFO] [stdout] = note: expected closure signature `for<'a> fn(&'a mut &mut BufWriter<_>) -> _` [INFO] [stdout] found closure signature `fn(&mut BufWriter<_>) -> _` [INFO] [stdout] = note: required for the cast from `Box<{closure@src/lib.rs:70:18: 70:69}>` to `Box FnMut(&'a mut &mut BufWriter) -> Result>` [INFO] [stdout] help: consider adjusting the signature so it borrows its argument [INFO] [stdout] | [INFO] [stdout] 70 | Box::new(|writer: &mut &mut WriterType| -> Result { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0631]: type mismatch in closure arguments [INFO] [stdout] --> src/lib.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | Box::new(|reader: &mut ReaderType, position: u64| -> Result<(), io::Error> { [INFO] [stdout] | ^ ----------------------------------------------------------------- found signature defined here [INFO] [stdout] | _________| [INFO] [stdout] | | [INFO] [stdout] 106 | | reader.seek(SeekFrom::Start(position))?; [INFO] [stdout] 107 | | Ok(()) [INFO] [stdout] 108 | | }), [INFO] [stdout] | |__________^ expected due to this [INFO] [stdout] | [INFO] [stdout] = note: expected closure signature `for<'a> fn(&'a mut &mut BufReader<_>, _) -> _` [INFO] [stdout] found closure signature `fn(&mut BufReader<_>, _) -> _` [INFO] [stdout] = note: required for the cast from `Box<{closure@src/lib.rs:105:18: 105:83}>` to `Box FnMut(&'a mut &mut BufReader, u64) -> Result<(), std::io::Error>>` [INFO] [stdout] help: consider adjusting the signature so it borrows its argument [INFO] [stdout] | [INFO] [stdout] 105 | Box::new(|reader: &mut &mut ReaderType, position: u64| -> Result<(), io::Error> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0631]: type mismatch in closure arguments [INFO] [stdout] --> src/lib.rs:110:9 [INFO] [stdout] | [INFO] [stdout] 110 | Box::new(|reader: &mut ReaderType| -> Result { [INFO] [stdout] | ^ --------------------------------------------------- found signature defined here [INFO] [stdout] | _________| [INFO] [stdout] | | [INFO] [stdout] 111 | | reader.stream_position() [INFO] [stdout] 112 | | }), [INFO] [stdout] | |__________^ expected due to this [INFO] [stdout] | [INFO] [stdout] = note: expected closure signature `for<'a> fn(&'a mut &mut BufReader<_>) -> _` [INFO] [stdout] found closure signature `fn(&mut BufReader<_>) -> _` [INFO] [stdout] = note: required for the cast from `Box<{closure@src/lib.rs:110:18: 110:69}>` to `Box FnMut(&'a mut &mut BufReader) -> Result>` [INFO] [stdout] help: consider adjusting the signature so it borrows its argument [INFO] [stdout] | [INFO] [stdout] 110 | Box::new(|reader: &mut &mut ReaderType| -> Result { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0631]: type mismatch in closure arguments [INFO] [stdout] --> src/lib.rs:114:9 [INFO] [stdout] | [INFO] [stdout] 114 | Box::new(|_reader: &mut ReaderType| -> Result{ [INFO] [stdout] | ^ ---------------------------------------------------- found signature defined here [INFO] [stdout] | _________| [INFO] [stdout] | | [INFO] [stdout] 115 | | Ok(length) [INFO] [stdout] 116 | | }), [INFO] [stdout] | |__________^ expected due to this [INFO] [stdout] | [INFO] [stdout] = note: expected closure signature `for<'a> fn(&'a mut &mut BufReader<_>) -> _` [INFO] [stdout] found closure signature `fn(&mut BufReader<_>) -> _` [INFO] [stdout] = note: required for the cast from `Box<{closure@src/lib.rs:114:18: 114:70}>` to `Box FnMut(&'a mut &mut BufReader) -> Result>` [INFO] [stdout] help: consider adjusting the signature so it borrows its argument [INFO] [stdout] | [INFO] [stdout] 114 | Box::new(|_reader: &mut &mut ReaderType| -> Result{ [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0631]: type mismatch in closure arguments [INFO] [stdout] --> src/lib.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 118 | Box::new(|reader: &mut ReaderType| -> bool { [INFO] [stdout] | ^ --------------------------------- found signature defined here [INFO] [stdout] | _________| [INFO] [stdout] | | [INFO] [stdout] 119 | | reader.stream_position().unwrap() >= length [INFO] [stdout] 120 | | }), [INFO] [stdout] | |__________^ expected due to this [INFO] [stdout] | [INFO] [stdout] = note: expected closure signature `for<'a> fn(&'a mut &mut BufReader<_>) -> _` [INFO] [stdout] found closure signature `fn(&mut BufReader<_>) -> _` [INFO] [stdout] = note: required for the cast from `Box<{closure@src/lib.rs:118:18: 118:51}>` to `Box FnMut(&'a mut &mut BufReader) -> bool>` [INFO] [stdout] help: consider adjusting the signature so it borrows its argument [INFO] [stdout] | [INFO] [stdout] 118 | Box::new(|reader: &mut &mut ReaderType| -> bool { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0422, E0433, E0631. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `flac-rs` (lib test) due to 16 previous errors [INFO] running `Command { std: "docker" "inspect" "7c0766dd714695474a36ec9da885a4159588d377846d3028a8af894d2d98460c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7c0766dd714695474a36ec9da885a4159588d377846d3028a8af894d2d98460c", kill_on_drop: false }` [INFO] [stdout] 7c0766dd714695474a36ec9da885a4159588d377846d3028a8af894d2d98460c