[INFO] fetching crate mysqlbinlog 0.1.5... [INFO] testing mysqlbinlog-0.1.5 against 1.60.0 for beta-1.61-1 [INFO] extracting crate mysqlbinlog 0.1.5 into /workspace/builds/worker-103/source [INFO] validating manifest of crates.io crate mysqlbinlog 0.1.5 on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "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-103/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded chrono v0.3.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-103/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-103/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 844fa49cef3fe483976f77eb9ca5765a3bacaae6cb9d118b46ac5e81bc54c3b1 [INFO] running `Command { std: "docker" "start" "-a" "844fa49cef3fe483976f77eb9ca5765a3bacaae6cb9d118b46ac5e81bc54c3b1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "844fa49cef3fe483976f77eb9ca5765a3bacaae6cb9d118b46ac5e81bc54c3b1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "844fa49cef3fe483976f77eb9ca5765a3bacaae6cb9d118b46ac5e81bc54c3b1", kill_on_drop: false }` [INFO] [stdout] 844fa49cef3fe483976f77eb9ca5765a3bacaae6cb9d118b46ac5e81bc54c3b1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-103/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-103/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 467db497c5f9f1a7698654c11621344aed5c51b7313fde7077877bd232377c94 [INFO] running `Command { std: "docker" "start" "-a" "467db497c5f9f1a7698654c11621344aed5c51b7313fde7077877bd232377c94", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.123 [INFO] [stderr] Compiling regex v0.2.11 [INFO] [stderr] Compiling ucd-util v0.1.8 [INFO] [stderr] Compiling utf8-ranges v1.0.5 [INFO] [stderr] Compiling byteorder v1.4.3 [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] Compiling memchr v2.4.1 [INFO] [stderr] Compiling thread_local v0.3.6 [INFO] [stderr] Compiling regex-syntax v0.5.6 [INFO] [stderr] Compiling aho-corasick v0.6.10 [INFO] [stderr] Compiling time v0.1.44 [INFO] [stderr] Compiling num v0.1.42 [INFO] [stderr] Compiling chrono v0.3.0 [INFO] [stderr] Compiling 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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 67 - from += (i * 4); [INFO] [stdout] 67 + from += i * 4; [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 78 - from += (i * 4); [INFO] [stdout] 78 + from += i * 4; [INFO] [stdout] | [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:41 [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:40 [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:39 [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:17 [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:17 [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:17 [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/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] = note: `#[warn(unused_mut)]` on by default [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: 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] [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: 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: field is never read: `xid` [INFO] [stdout] --> src/rowevents/events.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | xid: i64 [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `XidEvent` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/rowevents/events.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `CString::from_raw` that must be used [INFO] [stdout] --> src/lib.rs:246:25 [INFO] [stdout] | [INFO] [stdout] 246 | CString::from_raw(content[index].field_value as *mut c_char); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: call `drop(from_raw(ptr))` if you intend to drop the `CString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `CString::from_raw` that must be used [INFO] [stdout] --> src/lib.rs:252:25 [INFO] [stdout] | [INFO] [stdout] 252 | CString::from_raw(content[index].field_value as *mut c_char); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(from_raw(ptr))` if you intend to drop the `CString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `CString::from_raw` that must be used [INFO] [stdout] --> src/lib.rs:258:25 [INFO] [stdout] | [INFO] [stdout] 258 | CString::from_raw(content[index].field_value as *mut c_char); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(from_raw(ptr))` if you intend to drop the `CString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `CString::from_raw` that must be used [INFO] [stdout] --> src/lib.rs:264:25 [INFO] [stdout] | [INFO] [stdout] 264 | CString::from_raw(content[index].field_value as *mut c_char); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(from_raw(ptr))` if you intend to drop the `CString` [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] [stdout] warning: 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: `#[warn(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] warning: 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] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 29.50s [INFO] [stdout] warning: 60 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "467db497c5f9f1a7698654c11621344aed5c51b7313fde7077877bd232377c94", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "467db497c5f9f1a7698654c11621344aed5c51b7313fde7077877bd232377c94", kill_on_drop: false }` [INFO] [stdout] 467db497c5f9f1a7698654c11621344aed5c51b7313fde7077877bd232377c94 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-103/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-103/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1310e2ad4387be8dbff37465ad77c7fba20a91bd08f571b7dbee20d239dcf8cb [INFO] running `Command { std: "docker" "start" "-a" "1310e2ad4387be8dbff37465ad77c7fba20a91bd08f571b7dbee20d239dcf8cb", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling syn v1.0.91 [INFO] [stderr] Compiling proc-macro2 v1.0.37 [INFO] [stderr] Compiling serde_derive v1.0.136 [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 67 - from += (i * 4); [INFO] [stdout] 67 + from += i * 4; [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 78 - from += (i * 4); [INFO] [stdout] 78 + from += i * 4; [INFO] [stdout] | [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:41 [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:40 [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:39 [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:17 [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:17 [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:17 [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/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] = note: `#[warn(unused_mut)]` on by default [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: 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] [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: 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: field is never read: `xid` [INFO] [stdout] --> src/rowevents/events.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | xid: i64 [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `XidEvent` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/rowevents/events.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `CString::from_raw` that must be used [INFO] [stdout] --> src/lib.rs:246:25 [INFO] [stdout] | [INFO] [stdout] 246 | CString::from_raw(content[index].field_value as *mut c_char); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: call `drop(from_raw(ptr))` if you intend to drop the `CString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `CString::from_raw` that must be used [INFO] [stdout] --> src/lib.rs:252:25 [INFO] [stdout] | [INFO] [stdout] 252 | CString::from_raw(content[index].field_value as *mut c_char); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(from_raw(ptr))` if you intend to drop the `CString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `CString::from_raw` that must be used [INFO] [stdout] --> src/lib.rs:258:25 [INFO] [stdout] | [INFO] [stdout] 258 | CString::from_raw(content[index].field_value as *mut c_char); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(from_raw(ptr))` if you intend to drop the `CString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `CString::from_raw` that must be used [INFO] [stdout] --> src/lib.rs:264:25 [INFO] [stdout] | [INFO] [stdout] 264 | CString::from_raw(content[index].field_value as *mut c_char); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(from_raw(ptr))` if you intend to drop the `CString` [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] [stdout] warning: 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: `#[warn(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] warning: 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] warning: 60 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling quote v1.0.18 [INFO] [stderr] Compiling toml v0.4.10 [INFO] [stderr] Compiling mysqlbinlog v0.1.5 (/opt/rustwide/workdir) [INFO] [stdout] error[E0061]: this function takes 0 arguments but 1 argument was supplied [INFO] [stdout] --> examples/sync_binlog_to_redis.rs:14:27 [INFO] [stdout] | [INFO] [stdout] 14 | let event = r.read_event(&e1); [INFO] [stdout] | ^^^^^^^^^^ --- supplied 1 argument [INFO] [stdout] | | [INFO] [stdout] | expected 0 arguments [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/rowevents/reader.rs:70:12 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn read_event(&mut self) -> Result<(EventHeader, Event)> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/sync_binlog_to_redis.rs:16:20 [INFO] [stdout] | [INFO] [stdout] 15 | match event { [INFO] [stdout] | ----- this expression has type `Result<(EventHeader, Event), std::io::Error>` [INFO] [stdout] 16 | Ok(Event::Xid(e)) => println!("{:?}", e), [INFO] [stdout] | ^^^^^^^^^^^^^ expected tuple, found enum `Event` [INFO] [stdout] | [INFO] [stdout] = note: expected tuple `(EventHeader, Event)` [INFO] [stdout] found enum `Event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/sync_binlog_to_redis.rs:17:20 [INFO] [stdout] | [INFO] [stdout] 15 | match event { [INFO] [stdout] | ----- this expression has type `Result<(EventHeader, Event), std::io::Error>` [INFO] [stdout] 16 | Ok(Event::Xid(e)) => println!("{:?}", e), [INFO] [stdout] 17 | Ok(Event::Insert(e)) => println!("INSERT {:?}", e), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ expected tuple, found enum `Event` [INFO] [stdout] | [INFO] [stdout] = note: expected tuple `(EventHeader, Event)` [INFO] [stdout] found enum `Event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/sync_binlog_to_redis.rs:18:20 [INFO] [stdout] | [INFO] [stdout] 15 | match event { [INFO] [stdout] | ----- this expression has type `Result<(EventHeader, Event), std::io::Error>` [INFO] [stdout] ... [INFO] [stdout] 18 | Ok(Event::Update(e)) => println!("UPDATE {:?}", e), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ expected tuple, found enum `Event` [INFO] [stdout] | [INFO] [stdout] = note: expected tuple `(EventHeader, Event)` [INFO] [stdout] found enum `Event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/sync_binlog_to_redis.rs:19:20 [INFO] [stdout] | [INFO] [stdout] 15 | match event { [INFO] [stdout] | ----- this expression has type `Result<(EventHeader, Event), std::io::Error>` [INFO] [stdout] ... [INFO] [stdout] 19 | Ok(Event::Delete(e)) => println!("DELETE {:?}", e), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ expected tuple, found enum `Event` [INFO] [stdout] | [INFO] [stdout] = note: expected tuple `(EventHeader, Event)` [INFO] [stdout] found enum `Event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> examples/read_binlog_file.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 67 - from += (i * 4); [INFO] [stdout] 67 + from += i * 4; [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 78 - from += (i * 4); [INFO] [stdout] 78 + from += i * 4; [INFO] [stdout] | [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] [stderr] error: could not compile `mysqlbinlog` due to 6 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> examples/read_binlog_file.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | file.read_to_string(&mut content); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [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:41 [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:40 [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:39 [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:17 [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:17 [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:17 [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/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] = note: `#[warn(unused_mut)]` on by default [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: 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] [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: 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: field is never read: `xid` [INFO] [stdout] --> src/rowevents/events.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | xid: i64 [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `XidEvent` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/rowevents/events.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `CString::from_raw` that must be used [INFO] [stdout] --> src/lib.rs:246:25 [INFO] [stdout] | [INFO] [stdout] 246 | CString::from_raw(content[index].field_value as *mut c_char); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: call `drop(from_raw(ptr))` if you intend to drop the `CString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `CString::from_raw` that must be used [INFO] [stdout] --> src/lib.rs:252:25 [INFO] [stdout] | [INFO] [stdout] 252 | CString::from_raw(content[index].field_value as *mut c_char); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(from_raw(ptr))` if you intend to drop the `CString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `CString::from_raw` that must be used [INFO] [stdout] --> src/lib.rs:258:25 [INFO] [stdout] | [INFO] [stdout] 258 | CString::from_raw(content[index].field_value as *mut c_char); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(from_raw(ptr))` if you intend to drop the `CString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `CString::from_raw` that must be used [INFO] [stdout] --> src/lib.rs:264:25 [INFO] [stdout] | [INFO] [stdout] 264 | CString::from_raw(content[index].field_value as *mut c_char); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(from_raw(ptr))` if you intend to drop the `CString` [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] [stdout] warning: 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: `#[warn(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] warning: 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] warning: 60 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "1310e2ad4387be8dbff37465ad77c7fba20a91bd08f571b7dbee20d239dcf8cb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1310e2ad4387be8dbff37465ad77c7fba20a91bd08f571b7dbee20d239dcf8cb", kill_on_drop: false }` [INFO] [stdout] 1310e2ad4387be8dbff37465ad77c7fba20a91bd08f571b7dbee20d239dcf8cb