[INFO] cloning repository https://github.com/pcrama/rsingbuffer
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/pcrama/rsingbuffer" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpcrama%2Frsingbuffer", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpcrama%2Frsingbuffer'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 8b0af5f29c7a6cfd69b8ad1653ba1996c3fdfcd3
[INFO] checking pcrama/rsingbuffer against try#998b6603a58e47f42ccce7a67943234e96b6839e for pr-143170
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpcrama%2Frsingbuffer" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/pcrama/rsingbuffer
[INFO] finished tweaking git repo https://github.com/pcrama/rsingbuffer
[INFO] tweaked toml for git repo https://github.com/pcrama/rsingbuffer written to /workspace/builds/worker-3-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/pcrama/rsingbuffer on toolchain 998b6603a58e47f42ccce7a67943234e96b6839e
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+998b6603a58e47f42ccce7a67943234e96b6839e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/pcrama/rsingbuffer 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" "+998b6603a58e47f42ccce7a67943234e96b6839e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr] Blocking waiting for file lock on package cache
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+998b6603a58e47f42ccce7a67943234e96b6839e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 67be028a9ec9d55f7514262ea0b7163072c828d87d783bece817f08f25aef0c7
[INFO] running `Command { std: "docker" "start" "-a" "67be028a9ec9d55f7514262ea0b7163072c828d87d783bece817f08f25aef0c7", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "67be028a9ec9d55f7514262ea0b7163072c828d87d783bece817f08f25aef0c7", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "67be028a9ec9d55f7514262ea0b7163072c828d87d783bece817f08f25aef0c7", kill_on_drop: false }`
[INFO] [stdout] 67be028a9ec9d55f7514262ea0b7163072c828d87d783bece817f08f25aef0c7
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+998b6603a58e47f42ccce7a67943234e96b6839e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 4fe2285e5f2d08f3009517777e5b0dbfb2f42ce236bb2ea7edd4ced1dc2b7db9
[INFO] running `Command { std: "docker" "start" "-a" "4fe2285e5f2d08f3009517777e5b0dbfb2f42ce236bb2ea7edd4ced1dc2b7db9", kill_on_drop: false }`
[INFO] [stderr] Checking ringbuffer v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error: comparison operators cannot be chained
[INFO] [stdout] --> src/lib.rs:113:23
[INFO] [stdout] |
[INFO] [stdout] 113 | assert_eq!(new<&str>(5).len(), 0);
[INFO] [stdout] | ^ ^
[INFO] [stdout] |
[INFO] [stdout] help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
[INFO] [stdout] |
[INFO] [stdout] 113 | assert_eq!(new::<&str>(5).len(), 0);
[INFO] [stdout] | ++
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error: no rules expected `.`
[INFO] [stdout] --> src/lib.rs:113:32
[INFO] [stdout] |
[INFO] [stdout] 113 | assert_eq!(new<&str>(5).len(), 0);
[INFO] [stdout] | ^ no rules expected this token in macro call
[INFO] [stdout] |
[INFO] [stdout] note: while trying to match `,`
[INFO] [stdout] --> /rustc/998b6603a58e47f42ccce7a67943234e96b6839e/library/core/src/macros/mod.rs:43:16
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: type `RingBuffer` is more private than the item `new`
[INFO] [stdout] --> src/lib.rs:14:1
[INFO] [stdout] |
[INFO] [stdout] 14 | pub fn new(size: usize) -> RingBuffer {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `new` is reachable at visibility `pub`
[INFO] [stdout] |
[INFO] [stdout] note: but type `RingBuffer` is only usable at visibility `pub(crate)`
[INFO] [stdout] --> src/lib.rs:3:1
[INFO] [stdout] |
[INFO] [stdout] 3 | struct RingBuffer {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: type `RingBuffer` is more private than the item `freeze`
[INFO] [stdout] --> src/lib.rs:24:1
[INFO] [stdout] |
[INFO] [stdout] 24 | pub fn freeze(ring_buffer: RingBuffer) -> RingBufferView {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `freeze` is reachable at visibility `pub`
[INFO] [stdout] |
[INFO] [stdout] note: but type `RingBuffer` is only usable at visibility `pub(crate)`
[INFO] [stdout] --> src/lib.rs:3:1
[INFO] [stdout] |
[INFO] [stdout] 3 | struct RingBuffer {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: type `RingBufferView` is more private than the item `freeze`
[INFO] [stdout] --> src/lib.rs:24:1
[INFO] [stdout] |
[INFO] [stdout] 24 | pub fn freeze(ring_buffer: RingBuffer) -> RingBufferView {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `freeze` is reachable at visibility `pub`
[INFO] [stdout] |
[INFO] [stdout] note: but type `RingBufferView` is only usable at visibility `pub(crate)`
[INFO] [stdout] --> src/lib.rs:10:1
[INFO] [stdout] |
[INFO] [stdout] 10 | struct RingBufferView {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: fields `buffer`, `start`, `end`, and `capacity` are never read
[INFO] [stdout] --> src/lib.rs:4:5
[INFO] [stdout] |
[INFO] [stdout] 3 | struct RingBuffer {
[INFO] [stdout] | ---------- fields in this struct
[INFO] [stdout] 4 | buffer: Vec,
[INFO] [stdout] | ^^^^^^
[INFO] [stdout] 5 | start: usize,
[INFO] [stdout] | ^^^^^
[INFO] [stdout] 6 | end: usize,
[INFO] [stdout] | ^^^
[INFO] [stdout] 7 | capacity: usize,
[INFO] [stdout] | ^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(dead_code)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: field `ring_buffer` is never read
[INFO] [stdout] --> src/lib.rs:11:5
[INFO] [stdout] |
[INFO] [stdout] 10 | struct RingBufferView {
[INFO] [stdout] | -------------- field in this struct
[INFO] [stdout] 11 | ring_buffer: RingBuffer
[INFO] [stdout] | ^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: methods `at` and `thaw` are never used
[INFO] [stdout] --> src/lib.rs:29:12
[INFO] [stdout] |
[INFO] [stdout] 28 | impl RingBufferView {
[INFO] [stdout] | ------------------------- methods in this implementation
[INFO] [stdout] 29 | pub fn at<'a>(&'a self, idx: usize) -> Option<&'a A> {
[INFO] [stdout] | ^^
[INFO] [stdout] ...
[INFO] [stdout] 40 | pub fn thaw(self) -> RingBuffer {
[INFO] [stdout] | ^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: methods `len`, `peek_first`, `peek_last`, and `push` are never used
[INFO] [stdout] --> src/lib.rs:46:12
[INFO] [stdout] |
[INFO] [stdout] 45 | impl RingBuffer {
[INFO] [stdout] | --------------------- methods in this implementation
[INFO] [stdout] 46 | pub fn len(&self) -> usize {
[INFO] [stdout] | ^^^
[INFO] [stdout] ...
[INFO] [stdout] 56 | pub fn peek_first(&self, cont: fn(&A) -> B) -> Option {
[INFO] [stdout] | ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 64 | pub fn peek_last(&self, cont: fn(&A) -> B) -> Option {
[INFO] [stdout] | ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 72 | pub fn push(&mut self, val: A) -> Option {
[INFO] [stdout] | ^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout] --> src/lib.rs:122:47
[INFO] [stdout] |
[INFO] [stdout] 122 | assert_eq!(new::<&str>(23).peek_first(idint), None);
[INFO] [stdout] | ---------- ^^^^^ expected fn pointer, found fn item
[INFO] [stdout] | |
[INFO] [stdout] | arguments to this method are incorrect
[INFO] [stdout] |
[INFO] [stdout] = note: expected fn pointer `for<'a> fn(&'a &str) -> _`
[INFO] [stdout] found fn item `for<'a> fn(&'a i32) -> i32 {idint}`
[INFO] [stdout] note: method defined here
[INFO] [stdout] --> src/lib.rs:56:12
[INFO] [stdout] |
[INFO] [stdout] 56 | pub fn peek_first(&self, cont: fn(&A) -> B) -> Option {
[INFO] [stdout] | ^^^^^^^^^^ -----------------
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout] --> src/lib.rs:123:45
[INFO] [stdout] |
[INFO] [stdout] 123 | assert_eq!(new::(3).peek_last(idint), None);
[INFO] [stdout] | --------- ^^^^^ expected fn pointer, found fn item
[INFO] [stdout] | |
[INFO] [stdout] | arguments to this method are incorrect
[INFO] [stdout] |
[INFO] [stdout] = note: expected fn pointer `for<'a> fn(&'a bool) -> _`
[INFO] [stdout] found fn item `for<'a> fn(&'a i32) -> i32 {idint}`
[INFO] [stdout] note: method defined here
[INFO] [stdout] --> src/lib.rs:64:12
[INFO] [stdout] |
[INFO] [stdout] 64 | pub fn peek_last(&self, cont: fn(&A) -> B) -> Option {
[INFO] [stdout] | ^^^^^^^^^ -----------------
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout] --> src/lib.rs:130:34
[INFO] [stdout] |
[INFO] [stdout] 130 | assert_eq!(rb.peek_first(idint), Some(3));
[INFO] [stdout] | ---------- ^^^^^ expected fn pointer, found fn item
[INFO] [stdout] | |
[INFO] [stdout] | arguments to this method are incorrect
[INFO] [stdout] |
[INFO] [stdout] = note: expected fn pointer `for<'a> fn(&'a usize) -> _`
[INFO] [stdout] found fn item `for<'a> fn(&'a i32) -> i32 {idint}`
[INFO] [stdout] note: method defined here
[INFO] [stdout] --> src/lib.rs:56:12
[INFO] [stdout] |
[INFO] [stdout] 56 | pub fn peek_first(&self, cont: fn(&A) -> B) -> Option {
[INFO] [stdout] | ^^^^^^^^^^ -----------------
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout] --> src/lib.rs:131:33
[INFO] [stdout] |
[INFO] [stdout] 131 | assert_eq!(rb.peek_last(idint), Some(3));
[INFO] [stdout] | --------- ^^^^^ expected fn pointer, found fn item
[INFO] [stdout] | |
[INFO] [stdout] | arguments to this method are incorrect
[INFO] [stdout] |
[INFO] [stdout] = note: expected fn pointer `for<'a> fn(&'a usize) -> _`
[INFO] [stdout] found fn item `for<'a> fn(&'a i32) -> i32 {idint}`
[INFO] [stdout] note: method defined here
[INFO] [stdout] --> src/lib.rs:64:12
[INFO] [stdout] |
[INFO] [stdout] 64 | pub fn peek_last(&self, cont: fn(&A) -> B) -> Option {
[INFO] [stdout] | ^^^^^^^^^ -----------------
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout] --> src/lib.rs:133:34
[INFO] [stdout] |
[INFO] [stdout] 133 | assert_eq!(rb.peek_first(idint), Some(3));
[INFO] [stdout] | ---------- ^^^^^ expected fn pointer, found fn item
[INFO] [stdout] | |
[INFO] [stdout] | arguments to this method are incorrect
[INFO] [stdout] |
[INFO] [stdout] = note: expected fn pointer `for<'a> fn(&'a usize) -> _`
[INFO] [stdout] found fn item `for<'a> fn(&'a i32) -> i32 {idint}`
[INFO] [stdout] note: method defined here
[INFO] [stdout] --> src/lib.rs:56:12
[INFO] [stdout] |
[INFO] [stdout] 56 | pub fn peek_first(&self, cont: fn(&A) -> B) -> Option {
[INFO] [stdout] | ^^^^^^^^^^ -----------------
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout] --> src/lib.rs:134:33
[INFO] [stdout] |
[INFO] [stdout] 134 | assert_eq!(rb.peek_last(idint), Some(4));
[INFO] [stdout] | --------- ^^^^^ expected fn pointer, found fn item
[INFO] [stdout] | |
[INFO] [stdout] | arguments to this method are incorrect
[INFO] [stdout] |
[INFO] [stdout] = note: expected fn pointer `for<'a> fn(&'a usize) -> _`
[INFO] [stdout] found fn item `for<'a> fn(&'a i32) -> i32 {idint}`
[INFO] [stdout] note: method defined here
[INFO] [stdout] --> src/lib.rs:64:12
[INFO] [stdout] |
[INFO] [stdout] 64 | pub fn peek_last(&self, cont: fn(&A) -> B) -> Option {
[INFO] [stdout] | ^^^^^^^^^ -----------------
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout] --> src/lib.rs:136:34
[INFO] [stdout] |
[INFO] [stdout] 136 | assert_eq!(rb.peek_first(idint), Some(3));
[INFO] [stdout] | ---------- ^^^^^ expected fn pointer, found fn item
[INFO] [stdout] | |
[INFO] [stdout] | arguments to this method are incorrect
[INFO] [stdout] |
[INFO] [stdout] = note: expected fn pointer `for<'a> fn(&'a usize) -> _`
[INFO] [stdout] found fn item `for<'a> fn(&'a i32) -> i32 {idint}`
[INFO] [stdout] note: method defined here
[INFO] [stdout] --> src/lib.rs:56:12
[INFO] [stdout] |
[INFO] [stdout] 56 | pub fn peek_first(&self, cont: fn(&A) -> B) -> Option {
[INFO] [stdout] | ^^^^^^^^^^ -----------------
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout] --> src/lib.rs:137:33
[INFO] [stdout] |
[INFO] [stdout] 137 | assert_eq!(rb.peek_last(idint), Some(5));
[INFO] [stdout] | --------- ^^^^^ expected fn pointer, found fn item
[INFO] [stdout] | |
[INFO] [stdout] | arguments to this method are incorrect
[INFO] [stdout] |
[INFO] [stdout] = note: expected fn pointer `for<'a> fn(&'a usize) -> _`
[INFO] [stdout] found fn item `for<'a> fn(&'a i32) -> i32 {idint}`
[INFO] [stdout] note: method defined here
[INFO] [stdout] --> src/lib.rs:64:12
[INFO] [stdout] |
[INFO] [stdout] 64 | pub fn peek_last(&self, cont: fn(&A) -> B) -> Option {
[INFO] [stdout] | ^^^^^^^^^ -----------------
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout] --> src/lib.rs:139:34
[INFO] [stdout] |
[INFO] [stdout] 139 | assert_eq!(rb.peek_first(idint), Some(4));
[INFO] [stdout] | ---------- ^^^^^ expected fn pointer, found fn item
[INFO] [stdout] | |
[INFO] [stdout] | arguments to this method are incorrect
[INFO] [stdout] |
[INFO] [stdout] = note: expected fn pointer `for<'a> fn(&'a usize) -> _`
[INFO] [stdout] found fn item `for<'a> fn(&'a i32) -> i32 {idint}`
[INFO] [stdout] note: method defined here
[INFO] [stdout] --> src/lib.rs:56:12
[INFO] [stdout] |
[INFO] [stdout] 56 | pub fn peek_first(&self, cont: fn(&A) -> B) -> Option {
[INFO] [stdout] | ^^^^^^^^^^ -----------------
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout] --> src/lib.rs:140:33
[INFO] [stdout] |
[INFO] [stdout] 140 | assert_eq!(rb.peek_last(idint), Some(6));
[INFO] [stdout] | --------- ^^^^^ expected fn pointer, found fn item
[INFO] [stdout] | |
[INFO] [stdout] | arguments to this method are incorrect
[INFO] [stdout] |
[INFO] [stdout] = note: expected fn pointer `for<'a> fn(&'a usize) -> _`
[INFO] [stdout] found fn item `for<'a> fn(&'a i32) -> i32 {idint}`
[INFO] [stdout] note: method defined here
[INFO] [stdout] --> src/lib.rs:64:12
[INFO] [stdout] |
[INFO] [stdout] 64 | pub fn peek_last(&self, cont: fn(&A) -> B) -> Option {
[INFO] [stdout] | ^^^^^^^^^ -----------------
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout] --> src/lib.rs:142:34
[INFO] [stdout] |
[INFO] [stdout] 142 | assert_eq!(rb.peek_first(idint), Some(5));
[INFO] [stdout] | ---------- ^^^^^ expected fn pointer, found fn item
[INFO] [stdout] | |
[INFO] [stdout] | arguments to this method are incorrect
[INFO] [stdout] |
[INFO] [stdout] = note: expected fn pointer `for<'a> fn(&'a usize) -> _`
[INFO] [stdout] found fn item `for<'a> fn(&'a i32) -> i32 {idint}`
[INFO] [stdout] note: method defined here
[INFO] [stdout] --> src/lib.rs:56:12
[INFO] [stdout] |
[INFO] [stdout] 56 | pub fn peek_first(&self, cont: fn(&A) -> B) -> Option {
[INFO] [stdout] | ^^^^^^^^^^ -----------------
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout] --> src/lib.rs:143:33
[INFO] [stdout] |
[INFO] [stdout] 143 | assert_eq!(rb.peek_last(idint), Some(7));
[INFO] [stdout] | --------- ^^^^^ expected fn pointer, found fn item
[INFO] [stdout] | |
[INFO] [stdout] | arguments to this method are incorrect
[INFO] [stdout] |
[INFO] [stdout] = note: expected fn pointer `for<'a> fn(&'a usize) -> _`
[INFO] [stdout] found fn item `for<'a> fn(&'a i32) -> i32 {idint}`
[INFO] [stdout] note: method defined here
[INFO] [stdout] --> src/lib.rs:64:12
[INFO] [stdout] |
[INFO] [stdout] 64 | pub fn peek_last(&self, cont: fn(&A) -> B) -> Option {
[INFO] [stdout] | ^^^^^^^^^ -----------------
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout] --> src/lib.rs:145:34
[INFO] [stdout] |
[INFO] [stdout] 145 | assert_eq!(rb.peek_first(idint), Some(6));
[INFO] [stdout] | ---------- ^^^^^ expected fn pointer, found fn item
[INFO] [stdout] | |
[INFO] [stdout] | arguments to this method are incorrect
[INFO] [stdout] |
[INFO] [stdout] = note: expected fn pointer `for<'a> fn(&'a usize) -> _`
[INFO] [stdout] found fn item `for<'a> fn(&'a i32) -> i32 {idint}`
[INFO] [stdout] note: method defined here
[INFO] [stdout] --> src/lib.rs:56:12
[INFO] [stdout] |
[INFO] [stdout] 56 | pub fn peek_first(&self, cont: fn(&A) -> B) -> Option {
[INFO] [stdout] | ^^^^^^^^^^ -----------------
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout] --> src/lib.rs:146:33
[INFO] [stdout] |
[INFO] [stdout] 146 | assert_eq!(rb.peek_last(idint), Some(8));
[INFO] [stdout] | --------- ^^^^^ expected fn pointer, found fn item
[INFO] [stdout] | |
[INFO] [stdout] | arguments to this method are incorrect
[INFO] [stdout] |
[INFO] [stdout] = note: expected fn pointer `for<'a> fn(&'a usize) -> _`
[INFO] [stdout] found fn item `for<'a> fn(&'a i32) -> i32 {idint}`
[INFO] [stdout] note: method defined here
[INFO] [stdout] --> src/lib.rs:64:12
[INFO] [stdout] |
[INFO] [stdout] 64 | pub fn peek_last(&self, cont: fn(&A) -> B) -> Option {
[INFO] [stdout] | ^^^^^^^^^ -----------------
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout] --> src/lib.rs:148:34
[INFO] [stdout] |
[INFO] [stdout] 148 | assert_eq!(rb.peek_first(idint), Some(7));
[INFO] [stdout] | ---------- ^^^^^ expected fn pointer, found fn item
[INFO] [stdout] | |
[INFO] [stdout] | arguments to this method are incorrect
[INFO] [stdout] |
[INFO] [stdout] = note: expected fn pointer `for<'a> fn(&'a usize) -> _`
[INFO] [stdout] found fn item `for<'a> fn(&'a i32) -> i32 {idint}`
[INFO] [stdout] note: method defined here
[INFO] [stdout] --> src/lib.rs:56:12
[INFO] [stdout] |
[INFO] [stdout] 56 | pub fn peek_first(&self, cont: fn(&A) -> B) -> Option {
[INFO] [stdout] | ^^^^^^^^^^ -----------------
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout] --> src/lib.rs:149:33
[INFO] [stdout] |
[INFO] [stdout] 149 | assert_eq!(rb.peek_last(idint), Some(9));
[INFO] [stdout] | --------- ^^^^^ expected fn pointer, found fn item
[INFO] [stdout] | |
[INFO] [stdout] | arguments to this method are incorrect
[INFO] [stdout] |
[INFO] [stdout] = note: expected fn pointer `for<'a> fn(&'a usize) -> _`
[INFO] [stdout] found fn item `for<'a> fn(&'a i32) -> i32 {idint}`
[INFO] [stdout] note: method defined here
[INFO] [stdout] --> src/lib.rs:64:12
[INFO] [stdout] |
[INFO] [stdout] 64 | pub fn peek_last(&self, cont: fn(&A) -> B) -> Option {
[INFO] [stdout] | ^^^^^^^^^ -----------------
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] For more information about this error, try `rustc --explain E0308`.
[INFO] [stdout]
[INFO] [stderr] error: could not compile `ringbuffer` (lib test) due to 18 previous errors
[INFO] running `Command { std: "docker" "inspect" "4fe2285e5f2d08f3009517777e5b0dbfb2f42ce236bb2ea7edd4ced1dc2b7db9", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "4fe2285e5f2d08f3009517777e5b0dbfb2f42ce236bb2ea7edd4ced1dc2b7db9", kill_on_drop: false }`
[INFO] [stdout] 4fe2285e5f2d08f3009517777e5b0dbfb2f42ce236bb2ea7edd4ced1dc2b7db9