[INFO] fetching crate mysqlbinlog 0.1.5... [INFO] checking mysqlbinlog-0.1.5 against master#9fa580b1175018b0a276b0bc68f9827a106f7260 for pr-82565 [INFO] extracting crate mysqlbinlog 0.1.5 into /workspace/builds/worker-7/source [INFO] validating manifest of crates.io crate mysqlbinlog 0.1.5 on toolchain 9fa580b1175018b0a276b0bc68f9827a106f7260 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate mysqlbinlog 0.1.5 [INFO] finished tweaking crates.io crate mysqlbinlog 0.1.5 [INFO] tweaked toml for crates.io crate mysqlbinlog 0.1.5 written to /workspace/builds/worker-7/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 19bc2f85433e0b72204eb9b67eaaec60158f0be90d180adba9738e0cf6b1a8b1 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "19bc2f85433e0b72204eb9b67eaaec60158f0be90d180adba9738e0cf6b1a8b1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "19bc2f85433e0b72204eb9b67eaaec60158f0be90d180adba9738e0cf6b1a8b1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "19bc2f85433e0b72204eb9b67eaaec60158f0be90d180adba9738e0cf6b1a8b1", kill_on_drop: false }` [INFO] [stdout] 19bc2f85433e0b72204eb9b67eaaec60158f0be90d180adba9738e0cf6b1a8b1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c4f5851d027ea3fba89c7cf1f5dd4f34dcb088312de69208a2151cc13a9fc877 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "c4f5851d027ea3fba89c7cf1f5dd4f34dcb088312de69208a2151cc13a9fc877", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling syn v1.0.63 [INFO] [stderr] Checking ucd-util v0.1.8 [INFO] [stderr] Compiling regex v0.2.11 [INFO] [stderr] Compiling serde v1.0.124 [INFO] [stderr] Checking utf8-ranges v1.0.4 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Checking thread_local v0.3.6 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking regex-syntax v0.5.6 [INFO] [stderr] Checking aho-corasick v0.6.10 [INFO] [stderr] Checking num v0.1.42 [INFO] [stderr] Checking chrono v0.3.0 [INFO] [stderr] Checking mysqlbinlog v0.1.5 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `rowevents::value_type` [INFO] [stdout] --> src/rowevents/parser.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use rowevents::value_type; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::option::Option` [INFO] [stdout] --> src/rowevents/parser.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::option::Option; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str` [INFO] [stdout] --> src/rowevents/parser.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use std::str; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::BufReader` [INFO] [stdout] --> src/rowevents/stream.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::BufReader; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process` [INFO] [stdout] --> src/rowevents/stream.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::process; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `NaiveDate` [INFO] [stdout] --> src/rowevents/event_header.rs:2:29 [INFO] [stdout] | [INFO] [stdout] 2 | use chrono::{NaiveDateTime, NaiveDate}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `LittleEndian` [INFO] [stdout] --> src/rowevents/descriptor_datetime.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use byteorder::{LittleEndian, BigEndian, ReadBytesExt}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `NaiveDateTime` [INFO] [stdout] --> src/rowevents/descriptor_datetime.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | use chrono::{NaiveDateTime, NaiveDate}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/rowevents/descriptor_decimal.rs:67:17 [INFO] [stdout] | [INFO] [stdout] 67 | from += (i * 4); [INFO] [stdout] | ^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/rowevents/descriptor_decimal.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | from += (i * 4); [INFO] [stdout] | ^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/lib.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/lib.rs:244:35 [INFO] [stdout] | [INFO] [stdout] 244 | &ValueType::Float(f) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/lib.rs:250:36 [INFO] [stdout] | [INFO] [stdout] 250 | &ValueType::Double(f) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> src/lib.rs:256:37 [INFO] [stdout] | [INFO] [stdout] 256 | &ValueType::Decimal(ref d) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/lib.rs:262:36 [INFO] [stdout] | [INFO] [stdout] 262 | &ValueType::String(ref i) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `info` [INFO] [stdout] --> src/lib.rs:281:67 [INFO] [stdout] | [INFO] [stdout] 281 | pub extern fn binlog_reader_read_table_map_event(ptr: *mut Event, info: *mut EventInfo, db_name: *mut u8, table_name: *mut u8) -> bool { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ptr` [INFO] [stdout] --> src/lib.rs:300:52 [INFO] [stdout] | [INFO] [stdout] 300 | pub extern fn binlog_reader_read_delete_event_rows(ptr: *mut Event, info: *mut EventInfo, content: &mut [FieldInfo]) -> bool { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ptr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `info` [INFO] [stdout] --> src/lib.rs:300:69 [INFO] [stdout] | [INFO] [stdout] 300 | pub extern fn binlog_reader_read_delete_event_rows(ptr: *mut Event, info: *mut EventInfo, content: &mut [FieldInfo]) -> bool { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `content` [INFO] [stdout] --> src/lib.rs:300:91 [INFO] [stdout] | [INFO] [stdout] 300 | pub extern fn binlog_reader_read_delete_event_rows(ptr: *mut Event, info: *mut EventInfo, content: &mut [FieldInfo]) -> bool { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_content` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ptr` [INFO] [stdout] --> src/lib.rs:306:52 [INFO] [stdout] | [INFO] [stdout] 306 | pub extern fn binlog_reader_read_insert_event_rows(ptr: *mut Event, info: *mut EventInfo, content: &mut [FieldInfo]) -> bool { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ptr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `info` [INFO] [stdout] --> src/lib.rs:306:69 [INFO] [stdout] | [INFO] [stdout] 306 | pub extern fn binlog_reader_read_insert_event_rows(ptr: *mut Event, info: *mut EventInfo, content: &mut [FieldInfo]) -> bool { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `content` [INFO] [stdout] --> src/lib.rs:306:91 [INFO] [stdout] | [INFO] [stdout] 306 | pub extern fn binlog_reader_read_insert_event_rows(ptr: *mut Event, info: *mut EventInfo, content: &mut [FieldInfo]) -> bool { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_content` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/rowevents/reader.rs:90:35 [INFO] [stdout] | [INFO] [stdout] 90 | Event::Rotate(ref e) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/rowevents/parser.rs:106:13 [INFO] [stdout] | [INFO] [stdout] 106 | let data = self.stream.read(eh.get_event_len() - 19); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `eh` [INFO] [stdout] --> src/rowevents/parser.rs:110:41 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn read_rotate_event(&mut self, eh: &EventHeader) -> Result { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_eh` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/rowevents/parser.rs:116:17 [INFO] [stdout] | [INFO] [stdout] 116 | let data = self.stream.read(57); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `length_array` [INFO] [stdout] --> src/rowevents/parser.rs:119:13 [INFO] [stdout] | [INFO] [stdout] 119 | let length_array = self.stream.read(eh.get_event_len() - (57 + 19)); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_length_array` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `eh` [INFO] [stdout] --> src/rowevents/parser.rs:123:38 [INFO] [stdout] | [INFO] [stdout] 123 | pub fn read_xid_event(&mut self, eh: &EventHeader) -> Result { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_eh` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `db_name_len` is never read [INFO] [stdout] --> src/rowevents/parser.rs:132:13 [INFO] [stdout] | [INFO] [stdout] 132 | let mut db_name_len = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `table_name_len` is never read [INFO] [stdout] --> src/rowevents/parser.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | let mut table_name_len = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `table_id` [INFO] [stdout] --> src/rowevents/parser.rs:140:17 [INFO] [stdout] | [INFO] [stdout] 140 | let table_id = get_table_id(i1 as i64, i2 as i64, i3 as i64); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_table_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `flags` [INFO] [stdout] --> src/rowevents/parser.rs:141:17 [INFO] [stdout] | [INFO] [stdout] 141 | let flags = cursor.read_i16::()?; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_flags` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `offset` [INFO] [stdout] --> src/rowevents/parser.rs:185:17 [INFO] [stdout] | [INFO] [stdout] 185 | let offset = 0; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_offset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `offset` [INFO] [stdout] --> src/rowevents/parser.rs:205:17 [INFO] [stdout] | [INFO] [stdout] 205 | let offset = 0; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_offset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `offset` [INFO] [stdout] --> src/rowevents/parser.rs:228:17 [INFO] [stdout] | [INFO] [stdout] 228 | let offset = 0; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_offset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `table_id` [INFO] [stdout] --> src/rowevents/parser.rs:250:17 [INFO] [stdout] | [INFO] [stdout] 250 | let table_id = get_table_id(i1 as i64, i2 as i64, i3 as i64); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_table_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `flags` [INFO] [stdout] --> src/rowevents/parser.rs:251:17 [INFO] [stdout] | [INFO] [stdout] 251 | let flags = cursor.read_i16::()?; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_flags` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `extra_data` [INFO] [stdout] --> src/rowevents/parser.rs:262:17 [INFO] [stdout] | [INFO] [stdout] 262 | let extra_data = self.stream.read(extra_data_len - 2); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_extra_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `slice_end` [INFO] [stdout] --> src/rowevents/parser.rs:354:13 [INFO] [stdout] | [INFO] [stdout] 354 | let mut slice_end = 0; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_slice_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `max_len` [INFO] [stdout] --> src/rowevents/descriptor.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let max_len = metadata1 + metadata2 * 256; // [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `max_len` [INFO] [stdout] --> src/rowevents/descriptor.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let max_len = metadata1 + metadata2 * 256; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nullable` [INFO] [stdout] --> src/rowevents/descriptor.rs:39:36 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn parse_field(field_type: u8, nullable: bool, metadata1: u8, metadata2: u8, data: &[u8]) -> Result<(ValueType, usize)> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nullable` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `metadata2` [INFO] [stdout] --> src/rowevents/descriptor_datetime.rs:8:42 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn parse_datetime2(ms_precision: u8, metadata2: u8, data: &[u8]) -> Result<(ValueType, usize)> { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_metadata2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | let mut reader = unsafe { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:95:9 [INFO] [stdout] | [INFO] [stdout] 95 | let mut reader = unsafe { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rowevents/parser.rs:354:13 [INFO] [stdout] | [INFO] [stdout] 354 | let mut slice_end = 0; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rowevents/stream.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | let mut result = File::open(filename); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rowevents/stream.rs:35:19 [INFO] [stdout] | [INFO] [stdout] 35 | if let Ok(mut file) = result { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rowevents/stream.rs:51:17 [INFO] [stdout] | [INFO] [stdout] 51 | let mut result = File::open(&next_binlog_filename); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rowevents/stream.rs:52:23 [INFO] [stdout] | [INFO] [stdout] 52 | if let Ok(mut file) = result { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `filename` [INFO] [stdout] --> src/rowevents/reader.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | filename: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `[FieldInfo]`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:300:100 [INFO] [stdout] | [INFO] [stdout] 300 | pub extern fn binlog_reader_read_delete_event_rows(ptr: *mut Event, info: *mut EventInfo, content: &mut [FieldInfo]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(improper_ctypes_definitions)]` on by default [INFO] [stdout] = help: consider using a raw pointer instead [INFO] [stdout] = note: slices have no C equivalent [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `[FieldInfo]`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:306:100 [INFO] [stdout] | [INFO] [stdout] 306 | pub extern fn binlog_reader_read_insert_event_rows(ptr: *mut Event, info: *mut EventInfo, content: &mut [FieldInfo]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider using a raw pointer instead [INFO] [stdout] = note: slices have no C equivalent [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling serde_derive v1.0.124 [INFO] [stdout] error: literal out of range for `u8` [INFO] [stdout] --> src/rowevents/descriptor.rs:11:43 [INFO] [stdout] | [INFO] [stdout] 11 | let max_len = metadata1 + metadata2 * 256; // [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[deny(overflowing_literals)]` on by default [INFO] [stdout] = note: the literal `256` does not fit into the type `u8` whose range is `0..=255` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: literal out of range for `u8` [INFO] [stdout] --> src/rowevents/descriptor.rs:32:43 [INFO] [stdout] | [INFO] [stdout] 32 | let max_len = metadata1 + metadata2 * 256; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: the literal `256` does not fit into the type `u8` whose range is `0..=255` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 53 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `mysqlbinlog` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "c4f5851d027ea3fba89c7cf1f5dd4f34dcb088312de69208a2151cc13a9fc877", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c4f5851d027ea3fba89c7cf1f5dd4f34dcb088312de69208a2151cc13a9fc877", kill_on_drop: false }` [INFO] [stdout] c4f5851d027ea3fba89c7cf1f5dd4f34dcb088312de69208a2151cc13a9fc877