[INFO] cloning repository https://github.com/anak10thn/bizdb [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/anak10thn/bizdb" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fanak10thn%2Fbizdb", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fanak10thn%2Fbizdb'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3bbfea4bed89c43e66aaccba27d290592cea3d05 [INFO] checking anak10thn/bizdb/3bbfea4bed89c43e66aaccba27d290592cea3d05 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fanak10thn%2Fbizdb" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/anak10thn/bizdb on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/anak10thn/bizdb [INFO] finished tweaking git repo https://github.com/anak10thn/bizdb [INFO] tweaked toml for git repo https://github.com/anak10thn/bizdb written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/anak10thn/bizdb already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded libc v0.2.67 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ac07e6f1971cb521daf7f4f34c54d04ff4b502c0df8aaa1f58175c12170c4137 [INFO] running `Command { std: "docker" "start" "-a" "ac07e6f1971cb521daf7f4f34c54d04ff4b502c0df8aaa1f58175c12170c4137", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ac07e6f1971cb521daf7f4f34c54d04ff4b502c0df8aaa1f58175c12170c4137", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ac07e6f1971cb521daf7f4f34c54d04ff4b502c0df8aaa1f58175c12170c4137", kill_on_drop: false }` [INFO] [stdout] ac07e6f1971cb521daf7f4f34c54d04ff4b502c0df8aaa1f58175c12170c4137 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 018b6062826d15c7e668912bee0335c89a8b09755c71449e8ec2125c5f52267e [INFO] running `Command { std: "docker" "start" "-a" "018b6062826d15c7e668912bee0335c89a8b09755c71449e8ec2125c5f52267e", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.67 [INFO] [stderr] Checking bizdb v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:313:26 [INFO] [stdout] | [INFO] [stdout] 313 | println!(b"Error reading file: %d\n\x00" as *const u8 as [INFO] [stdout] | __________________________^ [INFO] [stdout] 314 | | *const libc::c_char, *__errno_location()); [INFO] [stdout] | |______________________________________________^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 313 | println!("{} {}", b"Error reading file: %d\n\x00" as *const u8 as [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:313:26 [INFO] [stdout] | [INFO] [stdout] 313 | println!(b"Error reading file: %d\n\x00" as *const u8 as [INFO] [stdout] | __________________________^ [INFO] [stdout] 314 | | *const libc::c_char, *__errno_location()); [INFO] [stdout] | |______________________________________________^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 313 | println!("{} {}", b"Error reading file: %d\n\x00" as *const u8 as [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:330:18 [INFO] [stdout] | [INFO] [stdout] 330 | println!(b" \x00" as *const u8 as *const libc::c_char); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 330 | println!("{}", b" \x00" as *const u8 as *const libc::c_char); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:330:18 [INFO] [stdout] | [INFO] [stdout] 330 | println!(b" \x00" as *const u8 as *const libc::c_char); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 330 | println!("{}", b" \x00" as *const u8 as *const libc::c_char); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:345:22 [INFO] [stdout] | [INFO] [stdout] 345 | println!(b"- leaf (size %d)\n\x00" as *const u8 as [INFO] [stdout] | ______________________^ [INFO] [stdout] 346 | | *const libc::c_char, num_keys); [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 345 | println!("{} {}", b"- leaf (size %d)\n\x00" as *const u8 as [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:345:22 [INFO] [stdout] | [INFO] [stdout] 345 | println!(b"- leaf (size %d)\n\x00" as *const u8 as [INFO] [stdout] | ______________________^ [INFO] [stdout] 346 | | *const libc::c_char, num_keys); [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 345 | println!("{} {}", b"- leaf (size %d)\n\x00" as *const u8 as [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:351:26 [INFO] [stdout] | [INFO] [stdout] 351 | println!(b"- %d\n\x00" as *const u8 as *const libc::c_char, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 351 | println!("{} {}", b"- %d\n\x00" as *const u8 as *const libc::c_char, [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:351:26 [INFO] [stdout] | [INFO] [stdout] 351 | println!(b"- %d\n\x00" as *const u8 as *const libc::c_char, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 351 | println!("{} {}", b"- %d\n\x00" as *const u8 as *const libc::c_char, [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:359:22 [INFO] [stdout] | [INFO] [stdout] 359 | println!(b"- internal (size %d)\n\x00" as *const u8 as [INFO] [stdout] | ______________________^ [INFO] [stdout] 360 | | *const libc::c_char, num_keys); [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 359 | println!("{} {}", b"- internal (size %d)\n\x00" as *const u8 as [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:359:22 [INFO] [stdout] | [INFO] [stdout] 359 | println!(b"- internal (size %d)\n\x00" as *const u8 as [INFO] [stdout] | ______________________^ [INFO] [stdout] 360 | | *const libc::c_char, num_keys); [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 359 | println!("{} {}", b"- internal (size %d)\n\x00" as *const u8 as [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:369:26 [INFO] [stdout] | [INFO] [stdout] 369 | println!(b"- key %d\n\x00" as *const u8 as *const libc::c_char, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 369 | println!("{} {}", b"- key %d\n\x00" as *const u8 as *const libc::c_char, [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:369:26 [INFO] [stdout] | [INFO] [stdout] 369 | println!(b"- key %d\n\x00" as *const u8 as *const libc::c_char, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 369 | println!("{} {}", b"- key %d\n\x00" as *const u8 as *const libc::c_char, [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:557:18 [INFO] [stdout] | [INFO] [stdout] 557 | println!(b"Unable to open file\n\x00" as *const u8 as [INFO] [stdout] | __________________^ [INFO] [stdout] 558 | | *const libc::c_char); [INFO] [stdout] | |______________________________________^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 557 | println!("{}", b"Unable to open file\n\x00" as *const u8 as [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:557:18 [INFO] [stdout] | [INFO] [stdout] 557 | println!(b"Unable to open file\n\x00" as *const u8 as [INFO] [stdout] | __________________^ [INFO] [stdout] 558 | | *const libc::c_char); [INFO] [stdout] | |______________________________________^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 557 | println!("{}", b"Unable to open file\n\x00" as *const u8 as [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:571:18 [INFO] [stdout] | [INFO] [stdout] 571 | println!(b"Db file is not a whole number of pages. Corrupt file.\n\x00" [INFO] [stdout] | __________________^ [INFO] [stdout] 572 | | as *const u8 as *const libc::c_char); [INFO] [stdout] | |______________________________________________________^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 571 | println!("{}", b"Db file is not a whole number of pages. Corrupt file.\n\x00" [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:571:18 [INFO] [stdout] | [INFO] [stdout] 571 | println!(b"Db file is not a whole number of pages. Corrupt file.\n\x00" [INFO] [stdout] | __________________^ [INFO] [stdout] 572 | | as *const u8 as *const libc::c_char); [INFO] [stdout] | |______________________________________________________^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 571 | println!("{}", b"Db file is not a whole number of pages. Corrupt file.\n\x00" [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:611:14 [INFO] [stdout] | [INFO] [stdout] 611 | println!(b"db > \x00" as *const u8 as *const libc::c_char); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 611 | println!("{}", b"db > \x00" as *const u8 as *const libc::c_char); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:611:14 [INFO] [stdout] | [INFO] [stdout] 611 | println!(b"db > \x00" as *const u8 as *const libc::c_char); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 611 | println!("{}", b"db > \x00" as *const u8 as *const libc::c_char); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:619:18 [INFO] [stdout] | [INFO] [stdout] 619 | println!(b"Error reading input\n\x00" as *const u8 as [INFO] [stdout] | __________________^ [INFO] [stdout] 620 | | *const libc::c_char); [INFO] [stdout] | |______________________________________^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 619 | println!("{}", b"Error reading input\n\x00" as *const u8 as [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:619:18 [INFO] [stdout] | [INFO] [stdout] 619 | println!(b"Error reading input\n\x00" as *const u8 as [INFO] [stdout] | __________________^ [INFO] [stdout] 620 | | *const libc::c_char); [INFO] [stdout] | |______________________________________^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 619 | println!("{}", b"Error reading input\n\x00" as *const u8 as [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:641:18 [INFO] [stdout] | [INFO] [stdout] 641 | println!(b"Tried to flush null page\n\x00" as *const u8 as [INFO] [stdout] | __________________^ [INFO] [stdout] 642 | | *const libc::c_char); [INFO] [stdout] | |______________________________________^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 641 | println!("{}", b"Tried to flush null page\n\x00" as *const u8 as [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:641:18 [INFO] [stdout] | [INFO] [stdout] 641 | println!(b"Tried to flush null page\n\x00" as *const u8 as [INFO] [stdout] | __________________^ [INFO] [stdout] 642 | | *const libc::c_char); [INFO] [stdout] | |______________________________________^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 641 | println!("{}", b"Tried to flush null page\n\x00" as *const u8 as [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:649:18 [INFO] [stdout] | [INFO] [stdout] 649 | println!(b"Error seeking: %d\n\x00" as *const u8 as *const libc::c_char, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 649 | println!("{} {}", b"Error seeking: %d\n\x00" as *const u8 as *const libc::c_char, [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:649:18 [INFO] [stdout] | [INFO] [stdout] 649 | println!(b"Error seeking: %d\n\x00" as *const u8 as *const libc::c_char, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 649 | println!("{} {}", b"Error seeking: %d\n\x00" as *const u8 as *const libc::c_char, [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:657:18 [INFO] [stdout] | [INFO] [stdout] 657 | println!(b"Error writing: %d\n\x00" as *const u8 as *const libc::c_char, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 657 | println!("{} {}", b"Error writing: %d\n\x00" as *const u8 as *const libc::c_char, [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:657:18 [INFO] [stdout] | [INFO] [stdout] 657 | println!(b"Error writing: %d\n\x00" as *const u8 as *const libc::c_char, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 657 | println!("{} {}", b"Error writing: %d\n\x00" as *const u8 as *const libc::c_char, [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:676:18 [INFO] [stdout] | [INFO] [stdout] 676 | println!(b"Error closing db file.\n\x00" as *const u8 as [INFO] [stdout] | __________________^ [INFO] [stdout] 677 | | *const libc::c_char); [INFO] [stdout] | |______________________________________^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 676 | println!("{}", b"Error closing db file.\n\x00" as *const u8 as [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:676:18 [INFO] [stdout] | [INFO] [stdout] 676 | println!(b"Error closing db file.\n\x00" as *const u8 as [INFO] [stdout] | __________________^ [INFO] [stdout] 677 | | *const libc::c_char); [INFO] [stdout] | |______________________________________^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 676 | println!("{}", b"Error closing db file.\n\x00" as *const u8 as [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:705:18 [INFO] [stdout] | [INFO] [stdout] 705 | println!(b"Tree:\n\x00" as *const u8 as *const libc::c_char); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 705 | println!("{}", b"Tree:\n\x00" as *const u8 as *const libc::c_char); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:712:18 [INFO] [stdout] | [INFO] [stdout] 712 | println!(b"Constants:\n\x00" as *const u8 as *const libc::c_char); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 712 | println!("{}", b"Constants:\n\x00" as *const u8 as *const libc::c_char); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:827:18 [INFO] [stdout] | [INFO] [stdout] 827 | println!(b"Need to implement splitting internal node\n\x00" as *const u8 [INFO] [stdout] | __________________^ [INFO] [stdout] 828 | | as *const libc::c_char); [INFO] [stdout] | |_________________________________________^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 827 | println!("{}", b"Need to implement splitting internal node\n\x00" as *const u8 [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:1014:18 [INFO] [stdout] | [INFO] [stdout] 1014 | println!(b"Must supply a database filename.\n\x00" as *const u8 as [INFO] [stdout] | __________________^ [INFO] [stdout] 1015 | | *const libc::c_char); [INFO] [stdout] | |______________________________________^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 1014 | println!("{}", b"Must supply a database filename.\n\x00" as *const u8 as [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:1030:30 [INFO] [stdout] | [INFO] [stdout] 1030 | println!(b"Unrecognized command \'%s\'\n\x00" as *const u8 [INFO] [stdout] | ______________________________^ [INFO] [stdout] 1031 | | as *const libc::c_char, [INFO] [stdout] | |_____________________________________________________^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 1030 | println!("{} {}", b"Unrecognized command \'%s\'\n\x00" as *const u8 [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:1045:26 [INFO] [stdout] | [INFO] [stdout] 1045 | println!(b"ID must be positive.\n\x00" as *const u8 as [INFO] [stdout] | __________________________^ [INFO] [stdout] 1046 | | *const libc::c_char); [INFO] [stdout] | |______________________________________________^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 1045 | println!("{}", b"ID must be positive.\n\x00" as *const u8 as [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:1049:26 [INFO] [stdout] | [INFO] [stdout] 1049 | println!(b"String is too long.\n\x00" as *const u8 as [INFO] [stdout] | __________________________^ [INFO] [stdout] 1050 | | *const libc::c_char); [INFO] [stdout] | |______________________________________________^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 1049 | println!("{}", b"String is too long.\n\x00" as *const u8 as [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:1053:26 [INFO] [stdout] | [INFO] [stdout] 1053 | println!(b"Syntax error. Could not parse statement.\n\x00" as [INFO] [stdout] | __________________________^ [INFO] [stdout] 1054 | | *const u8 as *const libc::c_char); [INFO] [stdout] | |___________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 1053 | println!("{}", b"Syntax error. Could not parse statement.\n\x00" as [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:705:18 [INFO] [stdout] | [INFO] [stdout] 705 | println!(b"Tree:\n\x00" as *const u8 as *const libc::c_char); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 705 | println!("{}", b"Tree:\n\x00" as *const u8 as *const libc::c_char); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:1057:26 [INFO] [stdout] | [INFO] [stdout] 1057 | println!(b"Unrecognized keyword at start of \'%s\'.\n\x00" as [INFO] [stdout] | __________________________^ [INFO] [stdout] 1058 | | *const u8 as *const libc::c_char, [INFO] [stdout] | |___________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 1057 | println!("{} {}", b"Unrecognized keyword at start of \'%s\'.\n\x00" as [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:1065:34 [INFO] [stdout] | [INFO] [stdout] 1065 | println!(b"Executed.\n\x00" as *const u8 as [INFO] [stdout] | __________________________________^ [INFO] [stdout] 1066 | | *const libc::c_char); [INFO] [stdout] | |______________________________________________________^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 1065 | println!("{}", b"Executed.\n\x00" as *const u8 as [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:712:18 [INFO] [stdout] | [INFO] [stdout] 712 | println!(b"Constants:\n\x00" as *const u8 as *const libc::c_char); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 712 | println!("{}", b"Constants:\n\x00" as *const u8 as *const libc::c_char); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:1069:34 [INFO] [stdout] | [INFO] [stdout] 1069 | println!(b"Error: Duplicate key.\n\x00" as *const u8 as [INFO] [stdout] | __________________________________^ [INFO] [stdout] 1070 | | *const libc::c_char); [INFO] [stdout] | |______________________________________________________^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 1069 | println!("{}", b"Error: Duplicate key.\n\x00" as *const u8 as [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:827:18 [INFO] [stdout] | [INFO] [stdout] 827 | println!(b"Need to implement splitting internal node\n\x00" as *const u8 [INFO] [stdout] | __________________^ [INFO] [stdout] 828 | | as *const libc::c_char); [INFO] [stdout] | |_________________________________________^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 827 | println!("{}", b"Need to implement splitting internal node\n\x00" as *const u8 [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:1014:18 [INFO] [stdout] | [INFO] [stdout] 1014 | println!(b"Must supply a database filename.\n\x00" as *const u8 as [INFO] [stdout] | __________________^ [INFO] [stdout] 1015 | | *const libc::c_char); [INFO] [stdout] | |______________________________________^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 1014 | println!("{}", b"Must supply a database filename.\n\x00" as *const u8 as [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:1030:30 [INFO] [stdout] | [INFO] [stdout] 1030 | println!(b"Unrecognized command \'%s\'\n\x00" as *const u8 [INFO] [stdout] | ______________________________^ [INFO] [stdout] 1031 | | as *const libc::c_char, [INFO] [stdout] | |_____________________________________________________^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 1030 | println!("{} {}", b"Unrecognized command \'%s\'\n\x00" as *const u8 [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:1045:26 [INFO] [stdout] | [INFO] [stdout] 1045 | println!(b"ID must be positive.\n\x00" as *const u8 as [INFO] [stdout] | __________________________^ [INFO] [stdout] 1046 | | *const libc::c_char); [INFO] [stdout] | |______________________________________________^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 1045 | println!("{}", b"ID must be positive.\n\x00" as *const u8 as [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:1049:26 [INFO] [stdout] | [INFO] [stdout] 1049 | println!(b"String is too long.\n\x00" as *const u8 as [INFO] [stdout] | __________________________^ [INFO] [stdout] 1050 | | *const libc::c_char); [INFO] [stdout] | |______________________________________________^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 1049 | println!("{}", b"String is too long.\n\x00" as *const u8 as [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:1053:26 [INFO] [stdout] | [INFO] [stdout] 1053 | println!(b"Syntax error. Could not parse statement.\n\x00" as [INFO] [stdout] | __________________________^ [INFO] [stdout] 1054 | | *const u8 as *const libc::c_char); [INFO] [stdout] | |___________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 1053 | println!("{}", b"Syntax error. Could not parse statement.\n\x00" as [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:1057:26 [INFO] [stdout] | [INFO] [stdout] 1057 | println!(b"Unrecognized keyword at start of \'%s\'.\n\x00" as [INFO] [stdout] | __________________________^ [INFO] [stdout] 1058 | | *const u8 as *const libc::c_char, [INFO] [stdout] | |___________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 1057 | println!("{} {}", b"Unrecognized keyword at start of \'%s\'.\n\x00" as [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:1065:34 [INFO] [stdout] | [INFO] [stdout] 1065 | println!(b"Executed.\n\x00" as *const u8 as [INFO] [stdout] | __________________________________^ [INFO] [stdout] 1066 | | *const libc::c_char); [INFO] [stdout] | |______________________________________________________^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 1065 | println!("{}", b"Executed.\n\x00" as *const u8 as [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:1069:34 [INFO] [stdout] | [INFO] [stdout] 1069 | println!(b"Error: Duplicate key.\n\x00" as *const u8 as [INFO] [stdout] | __________________________________^ [INFO] [stdout] 1070 | | *const libc::c_char); [INFO] [stdout] | |______________________________________________________^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 1069 | println!("{}", b"Error: Duplicate key.\n\x00" as *const u8 as [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `main` is defined multiple times [INFO] [stdout] --> src/main.rs:1141:1 [INFO] [stdout] | [INFO] [stdout] 1079 | pub fn main() { [INFO] [stdout] | ------------- previous definition of the value `main` here [INFO] [stdout] ... [INFO] [stdout] 1141 | fn main() { [INFO] [stdout] | ^^^^^^^^^ `main` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `main` must be defined only once in the value namespace of this module [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `main` is defined multiple times [INFO] [stdout] --> src/main.rs:1141:1 [INFO] [stdout] | [INFO] [stdout] 1079 | pub fn main() { [INFO] [stdout] | ------------- previous definition of the value `main` here [INFO] [stdout] ... [INFO] [stdout] 1141 | fn main() { [INFO] [stdout] | ^^^^^^^^^ `main` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `main` must be defined only once in the value namespace of this module [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `main` in this scope [INFO] [stdout] --> src/main.rs:1078:3 [INFO] [stdout] | [INFO] [stdout] 1078 | #[main] [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `main` is in scope, but it is a function, not an attribute [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `main` in this scope [INFO] [stdout] --> src/main.rs:1078:3 [INFO] [stdout] | [INFO] [stdout] 1078 | #[main] [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `main` is in scope, but it is a function, not an attribute [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `malloc` in this scope [INFO] [stdout] --> src/main.rs:295:43 [INFO] [stdout] | [INFO] [stdout] 295 | let mut page: *mut libc::c_void = malloc(PAGE_SIZE as libc::c_ulong); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::malloc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `lseek` in this scope [INFO] [stdout] --> src/main.rs:307:13 [INFO] [stdout] | [INFO] [stdout] 307 | lseek((*pager).file_descriptor, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::lseek; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `__off_t` in this scope [INFO] [stdout] --> src/main.rs:308:55 [INFO] [stdout] | [INFO] [stdout] 308 | page_num.wrapping_mul(PAGE_SIZE) as __off_t, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `read` in this scope [INFO] [stdout] --> src/main.rs:311:17 [INFO] [stdout] | [INFO] [stdout] 311 | read((*pager).file_descriptor, page, PAGE_SIZE as size_t); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 1 + use std::fs::read; [INFO] [stdout] | [INFO] [stdout] 1 + use std::ptr::read; [INFO] [stdout] | [INFO] [stdout] 1 + use core::ptr::read; [INFO] [stdout] | [INFO] [stdout] 1 + use libc::read; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `exit` in this scope [INFO] [stdout] --> src/main.rs:315:17 [INFO] [stdout] | [INFO] [stdout] 315 | exit(1 as libc::c_int); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 1 + use std::process::exit; [INFO] [stdout] | [INFO] [stdout] 1 + use libc::exit; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `memcpy` in this scope [INFO] [stdout] --> src/main.rs:384:5 [INFO] [stdout] | [INFO] [stdout] 384 | memcpy(destination.offset(ID_OFFSET as isize), [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::memcpy; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `memcpy` in this scope [INFO] [stdout] --> src/main.rs:387:5 [INFO] [stdout] | [INFO] [stdout] 387 | memcpy(destination.offset(USERNAME_OFFSET as isize), [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::memcpy; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `memcpy` in this scope [INFO] [stdout] --> src/main.rs:390:5 [INFO] [stdout] | [INFO] [stdout] 390 | memcpy(destination.offset(EMAIL_OFFSET as isize), [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::memcpy; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `memcpy` in this scope [INFO] [stdout] --> src/main.rs:397:5 [INFO] [stdout] | [INFO] [stdout] 397 | memcpy(&mut (*destination).id as *mut uint32_t as *mut libc::c_void, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::memcpy; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `memcpy` in this scope [INFO] [stdout] --> src/main.rs:399:5 [INFO] [stdout] | [INFO] [stdout] 399 | memcpy(&mut (*destination).username as *mut [libc::c_char; 33] as [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::memcpy; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `memcpy` in this scope [INFO] [stdout] --> src/main.rs:402:5 [INFO] [stdout] | [INFO] [stdout] 402 | memcpy(&mut (*destination).email as *mut [libc::c_char; 256] as [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::memcpy; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `malloc` in this scope [INFO] [stdout] --> src/main.rs:428:9 [INFO] [stdout] | [INFO] [stdout] 428 | malloc(::std::mem::size_of::() as libc::c_ulong) as [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::malloc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `open` in this scope [INFO] [stdout] --> src/main.rs:554:9 [INFO] [stdout] | [INFO] [stdout] 554 | open(filename, 0o2 as libc::c_int | 0o100 as libc::c_int, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::open; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `exit` in this scope [INFO] [stdout] --> src/main.rs:559:9 [INFO] [stdout] | [INFO] [stdout] 559 | exit(1 as libc::c_int); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 1 + use std::process::exit; [INFO] [stdout] | [INFO] [stdout] 1 + use libc::exit; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `off_t` in this scope [INFO] [stdout] --> src/main.rs:561:26 [INFO] [stdout] | [INFO] [stdout] 561 | let mut file_length: off_t = [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these type aliases [INFO] [stdout] | [INFO] [stdout] 1 + use std::os::linux::raw::off_t; [INFO] [stdout] | [INFO] [stdout] 1 + use libc::off_t; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `lseek` in this scope [INFO] [stdout] --> src/main.rs:562:9 [INFO] [stdout] | [INFO] [stdout] 562 | lseek(fd, 0 as libc::c_int as __off_t, 2 as libc::c_int); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::lseek; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `__off_t` in this scope [INFO] [stdout] --> src/main.rs:562:39 [INFO] [stdout] | [INFO] [stdout] 562 | lseek(fd, 0 as libc::c_int as __off_t, 2 as libc::c_int); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `malloc` in this scope [INFO] [stdout] --> src/main.rs:564:9 [INFO] [stdout] | [INFO] [stdout] 564 | malloc(::std::mem::size_of::() as libc::c_ulong) as *mut Pager; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::malloc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `exit` in this scope [INFO] [stdout] --> src/main.rs:573:9 [INFO] [stdout] | [INFO] [stdout] 573 | exit(1 as libc::c_int); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 1 + use std::process::exit; [INFO] [stdout] | [INFO] [stdout] 1 + use libc::exit; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `malloc` in this scope [INFO] [stdout] --> src/main.rs:587:9 [INFO] [stdout] | [INFO] [stdout] 587 | malloc(::std::mem::size_of::() as libc::c_ulong) as *mut Table; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::malloc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `malloc` in this scope [INFO] [stdout] --> src/main.rs:602:9 [INFO] [stdout] | [INFO] [stdout] 602 | malloc(::std::mem::size_of::() as libc::c_ulong) as [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::malloc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `getline` in this scope [INFO] [stdout] --> src/main.rs:616:9 [INFO] [stdout] | [INFO] [stdout] 616 | getline(&mut (*input_buffer).buffer, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::getline; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `stdin` in this scope [INFO] [stdout] --> src/main.rs:617:53 [INFO] [stdout] | [INFO] [stdout] 617 | &mut (*input_buffer).buffer_length, stdin); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::stdin; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `exit` in this scope [INFO] [stdout] --> src/main.rs:621:9 [INFO] [stdout] | [INFO] [stdout] 621 | exit(1 as libc::c_int); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 1 + use std::process::exit; [INFO] [stdout] | [INFO] [stdout] 1 + use libc::exit; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `free` in this scope [INFO] [stdout] --> src/main.rs:634:5 [INFO] [stdout] | [INFO] [stdout] 634 | free((*input_buffer).buffer as *mut libc::c_void); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::free; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `free` in this scope [INFO] [stdout] --> src/main.rs:635:5 [INFO] [stdout] | [INFO] [stdout] 635 | free(input_buffer as *mut libc::c_void); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::free; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `exit` in this scope [INFO] [stdout] --> src/main.rs:643:9 [INFO] [stdout] | [INFO] [stdout] 643 | exit(1 as libc::c_int); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 1 + use std::process::exit; [INFO] [stdout] | [INFO] [stdout] 1 + use libc::exit; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `off_t` in this scope [INFO] [stdout] --> src/main.rs:645:21 [INFO] [stdout] | [INFO] [stdout] 645 | let mut offset: off_t = [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these type aliases [INFO] [stdout] | [INFO] [stdout] 1 + use std::os::linux::raw::off_t; [INFO] [stdout] | [INFO] [stdout] 1 + use libc::off_t; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `lseek` in this scope [INFO] [stdout] --> src/main.rs:646:9 [INFO] [stdout] | [INFO] [stdout] 646 | lseek((*pager).file_descriptor, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::lseek; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `__off_t` in this scope [INFO] [stdout] --> src/main.rs:647:51 [INFO] [stdout] | [INFO] [stdout] 647 | page_num.wrapping_mul(PAGE_SIZE) as __off_t, 0 as libc::c_int); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `exit` in this scope [INFO] [stdout] --> src/main.rs:651:9 [INFO] [stdout] | [INFO] [stdout] 651 | exit(1 as libc::c_int); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 1 + use std::process::exit; [INFO] [stdout] | [INFO] [stdout] 1 + use libc::exit; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected function, found macro `write` [INFO] [stdout] --> src/main.rs:654:9 [INFO] [stdout] | [INFO] [stdout] 654 | write((*pager).file_descriptor, (*pager).pages[page_num as usize], [INFO] [stdout] | ^^^^^ not a function [INFO] [stdout] | [INFO] [stdout] help: use `!` to invoke the macro [INFO] [stdout] | [INFO] [stdout] 654 | write!((*pager).file_descriptor, (*pager).pages[page_num as usize], [INFO] [stdout] | + [INFO] [stdout] help: consider importing one of these functions instead [INFO] [stdout] | [INFO] [stdout] 1 + use std::fmt::write; [INFO] [stdout] | [INFO] [stdout] 1 + use std::fs::write; [INFO] [stdout] | [INFO] [stdout] 1 + use std::ptr::write; [INFO] [stdout] | [INFO] [stdout] 1 + use core::fmt::write; [INFO] [stdout] | [INFO] [stdout] and 2 other candidates [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `exit` in this scope [INFO] [stdout] --> src/main.rs:659:9 [INFO] [stdout] | [INFO] [stdout] 659 | exit(1 as libc::c_int); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 1 + use std::process::exit; [INFO] [stdout] | [INFO] [stdout] 1 + use libc::exit; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `free` in this scope [INFO] [stdout] --> src/main.rs:669:13 [INFO] [stdout] | [INFO] [stdout] 669 | free((*pager).pages[i as usize]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::free; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `close` in this scope [INFO] [stdout] --> src/main.rs:674:35 [INFO] [stdout] | [INFO] [stdout] 674 | let mut result: libc::c_int = close((*pager).file_descriptor); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::close; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `exit` in this scope [INFO] [stdout] --> src/main.rs:678:9 [INFO] [stdout] | [INFO] [stdout] 678 | exit(1 as libc::c_int); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 1 + use std::process::exit; [INFO] [stdout] | [INFO] [stdout] 1 + use libc::exit; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `free` in this scope [INFO] [stdout] --> src/main.rs:684:13 [INFO] [stdout] | [INFO] [stdout] 684 | free(page); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::free; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `free` in this scope [INFO] [stdout] --> src/main.rs:689:5 [INFO] [stdout] | [INFO] [stdout] 689 | free(pager as *mut libc::c_void); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::free; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `free` in this scope [INFO] [stdout] --> src/main.rs:690:5 [INFO] [stdout] | [INFO] [stdout] 690 | free(table as *mut libc::c_void); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::free; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `strcmp` in this scope [INFO] [stdout] --> src/main.rs:696:8 [INFO] [stdout] | [INFO] [stdout] 696 | if strcmp((*input_buffer).buffer, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::strcmp; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `exit` in this scope [INFO] [stdout] --> src/main.rs:701:9 [INFO] [stdout] | [INFO] [stdout] 701 | exit(0 as libc::c_int); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 1 + use std::process::exit; [INFO] [stdout] | [INFO] [stdout] 1 + use libc::exit; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `strcmp` in this scope [INFO] [stdout] --> src/main.rs:702:15 [INFO] [stdout] | [INFO] [stdout] 702 | } else if strcmp((*input_buffer).buffer, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::strcmp; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `META_COMMAND_SUCCESS` in this scope [INFO] [stdout] --> src/main.rs:708:16 [INFO] [stdout] | [INFO] [stdout] 708 | return META_COMMAND_SUCCESS [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 + use crate::MetaCommandResult::META_COMMAND_SUCCESS; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `strcmp` in this scope [INFO] [stdout] --> src/main.rs:709:15 [INFO] [stdout] | [INFO] [stdout] 709 | } else if strcmp((*input_buffer).buffer, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::strcmp; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `META_COMMAND_SUCCESS` in this scope [INFO] [stdout] --> src/main.rs:714:16 [INFO] [stdout] | [INFO] [stdout] 714 | return META_COMMAND_SUCCESS [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 + use crate::MetaCommandResult::META_COMMAND_SUCCESS; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `META_COMMAND_UNRECOGNIZED_COMMAND` in this scope [INFO] [stdout] --> src/main.rs:715:21 [INFO] [stdout] | [INFO] [stdout] 715 | } else { return META_COMMAND_UNRECOGNIZED_COMMAND }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 + use crate::MetaCommandResult::META_COMMAND_UNRECOGNIZED_COMMAND; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `STATEMENT_INSERT` in this scope [INFO] [stdout] --> src/main.rs:721:27 [INFO] [stdout] | [INFO] [stdout] 721 | (*statement).type_0 = STATEMENT_INSERT; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 + use crate::StatementType::STATEMENT_INSERT; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `strtok` in this scope [INFO] [stdout] --> src/main.rs:723:9 [INFO] [stdout] | [INFO] [stdout] 723 | strtok((*input_buffer).buffer, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::strtok; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `strtok` in this scope [INFO] [stdout] --> src/main.rs:726:9 [INFO] [stdout] | [INFO] [stdout] 726 | strtok(0 as *mut libc::c_char, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::strtok; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `strtok` in this scope [INFO] [stdout] --> src/main.rs:729:9 [INFO] [stdout] | [INFO] [stdout] 729 | strtok(0 as *mut libc::c_char, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::strtok; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `strtok` in this scope [INFO] [stdout] --> src/main.rs:732:9 [INFO] [stdout] | [INFO] [stdout] 732 | strtok(0 as *mut libc::c_char, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::strtok; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PREPARE_SYNTAX_ERROR` in this scope [INFO] [stdout] --> src/main.rs:735:16 [INFO] [stdout] | [INFO] [stdout] 735 | return PREPARE_SYNTAX_ERROR [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 + use crate::PrepareResult::PREPARE_SYNTAX_ERROR; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `atoi` in this scope [INFO] [stdout] --> src/main.rs:737:31 [INFO] [stdout] | [INFO] [stdout] 737 | let mut id: libc::c_int = atoi(id_string); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::atoi; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PREPARE_NEGATIVE_ID` in this scope [INFO] [stdout] --> src/main.rs:738:39 [INFO] [stdout] | [INFO] [stdout] 738 | if id < 0 as libc::c_int { return PREPARE_NEGATIVE_ID } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 + use crate::PrepareResult::PREPARE_NEGATIVE_ID; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `strlen` in this scope [INFO] [stdout] --> src/main.rs:739:8 [INFO] [stdout] | [INFO] [stdout] 739 | if strlen(username) > 32 as libc::c_int as libc::c_ulong { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::strlen; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PREPARE_STRING_TOO_LONG` in this scope [INFO] [stdout] --> src/main.rs:740:16 [INFO] [stdout] | [INFO] [stdout] 740 | return PREPARE_STRING_TOO_LONG [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 + use crate::PrepareResult::PREPARE_STRING_TOO_LONG; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `strlen` in this scope [INFO] [stdout] --> src/main.rs:742:8 [INFO] [stdout] | [INFO] [stdout] 742 | if strlen(email) > 255 as libc::c_int as libc::c_ulong { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::strlen; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PREPARE_STRING_TOO_LONG` in this scope [INFO] [stdout] --> src/main.rs:743:16 [INFO] [stdout] | [INFO] [stdout] 743 | return PREPARE_STRING_TOO_LONG [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 + use crate::PrepareResult::PREPARE_STRING_TOO_LONG; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `strcpy` in this scope [INFO] [stdout] --> src/main.rs:746:5 [INFO] [stdout] | [INFO] [stdout] 746 | strcpy((*statement).row_to_insert.username.as_mut_ptr(), username); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::strcpy; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `strcpy` in this scope [INFO] [stdout] --> src/main.rs:747:5 [INFO] [stdout] | [INFO] [stdout] 747 | strcpy((*statement).row_to_insert.email.as_mut_ptr(), email); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::strcpy; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PREPARE_SUCCESS` in this scope [INFO] [stdout] --> src/main.rs:748:12 [INFO] [stdout] | [INFO] [stdout] 748 | return PREPARE_SUCCESS; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 + use crate::PrepareResult::PREPARE_SUCCESS; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `strncmp` in this scope [INFO] [stdout] --> src/main.rs:754:8 [INFO] [stdout] | [INFO] [stdout] 754 | if strncmp((*input_buffer).buffer, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::strncmp; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `strcmp` in this scope [INFO] [stdout] --> src/main.rs:759:8 [INFO] [stdout] | [INFO] [stdout] 759 | if strcmp((*input_buffer).buffer, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::strcmp; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `STATEMENT_SELECT` in this scope [INFO] [stdout] --> src/main.rs:762:31 [INFO] [stdout] | [INFO] [stdout] 762 | (*statement).type_0 = STATEMENT_SELECT; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 + use crate::StatementType::STATEMENT_SELECT; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PREPARE_SUCCESS` in this scope [INFO] [stdout] --> src/main.rs:763:16 [INFO] [stdout] | [INFO] [stdout] 763 | return PREPARE_SUCCESS [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 + use crate::PrepareResult::PREPARE_SUCCESS; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PREPARE_UNRECOGNIZED_STATEMENT` in this scope [INFO] [stdout] --> src/main.rs:765:12 [INFO] [stdout] | [INFO] [stdout] 765 | return PREPARE_UNRECOGNIZED_STATEMENT; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 + use crate::PrepareResult::PREPARE_UNRECOGNIZED_STATEMENT; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `memcpy` in this scope [INFO] [stdout] --> src/main.rs:795:5 [INFO] [stdout] | [INFO] [stdout] 795 | memcpy(left_child, root, PAGE_SIZE as libc::c_ulong); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::memcpy; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `exit` in this scope [INFO] [stdout] --> src/main.rs:829:9 [INFO] [stdout] | [INFO] [stdout] 829 | exit(1 as libc::c_int); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 1 + use std::process::exit; [INFO] [stdout] | [INFO] [stdout] 1 + use libc::exit; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `memcpy` in this scope [INFO] [stdout] --> src/main.rs:853:13 [INFO] [stdout] | [INFO] [stdout] 853 | memcpy(destination, source, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::memcpy; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `memcpy` in this scope [INFO] [stdout] --> src/main.rs:910:13 [INFO] [stdout] | [INFO] [stdout] 910 | memcpy(destination, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::memcpy; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `memcpy` in this scope [INFO] [stdout] --> src/main.rs:915:13 [INFO] [stdout] | [INFO] [stdout] 915 | memcpy(destination, leaf_node_cell(old_node, i as uint32_t), [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::memcpy; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `memcpy` in this scope [INFO] [stdout] --> src/main.rs:951:13 [INFO] [stdout] | [INFO] [stdout] 951 | memcpy(leaf_node_cell(node, i), [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::memcpy; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `EXECUTE_DUPLICATE_KEY` in this scope [INFO] [stdout] --> src/main.rs:980:51 [INFO] [stdout] | [INFO] [stdout] 980 | if key_at_index == key_to_insert { return EXECUTE_DUPLICATE_KEY } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 + use crate::ExecuteResult::EXECUTE_DUPLICATE_KEY; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `free` in this scope [INFO] [stdout] --> src/main.rs:983:5 [INFO] [stdout] | [INFO] [stdout] 983 | free(cursor as *mut libc::c_void); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::free; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `EXECUTE_SUCCESS` in this scope [INFO] [stdout] --> src/main.rs:984:12 [INFO] [stdout] | [INFO] [stdout] 984 | return EXECUTE_SUCCESS; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 + use crate::ExecuteResult::EXECUTE_SUCCESS; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `free` in this scope [INFO] [stdout] --> src/main.rs:997:5 [INFO] [stdout] | [INFO] [stdout] 997 | free(cursor as *mut libc::c_void); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::free; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `EXECUTE_SUCCESS` in this scope [INFO] [stdout] --> src/main.rs:998:12 [INFO] [stdout] | [INFO] [stdout] 998 | return EXECUTE_SUCCESS; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 + use crate::ExecuteResult::EXECUTE_SUCCESS; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `exit` in this scope [INFO] [stdout] --> src/main.rs:1016:9 [INFO] [stdout] | [INFO] [stdout] 1016 | exit(1 as libc::c_int); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 1 + use std::process::exit; [INFO] [stdout] | [INFO] [stdout] 1 + use libc::exit; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `STATEMENT_INSERT` in this scope [INFO] [stdout] --> src/main.rs:1039:31 [INFO] [stdout] | [INFO] [stdout] 1039 | Statement{type_0: STATEMENT_INSERT, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 + use crate::StatementType::STATEMENT_INSERT; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `int32_t` should have an upper camel case name [INFO] [stdout] --> src/main.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | pub type int32_t = i32; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `Int32T` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `uint8_t` should have an upper camel case name [INFO] [stdout] --> src/main.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub type uint8_t = u8; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `Uint8T` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `uint32_t` should have an upper camel case name [INFO] [stdout] --> src/main.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub type uint32_t = u32; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Uint32T` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `size_t` should have an upper camel case name [INFO] [stdout] --> src/main.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub type size_t = usize; [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `SizeT` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ssize_t` should have an upper camel case name [INFO] [stdout] --> src/main.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub type ssize_t = usize; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `SsizeT` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `char` should have an upper camel case name [INFO] [stdout] --> src/main.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub type char = u8; [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Char` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `int` should have an upper camel case name [INFO] [stdout] --> src/main.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | pub type int = i16; [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case (notice the capitalization): `Int` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `void` should have an upper camel case name [INFO] [stdout] --> src/main.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | pub type void = (); [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Void` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `EXECUTE_SUCCESS` should have an upper camel case name [INFO] [stdout] --> src/main.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | EXECUTE_SUCCESS, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ExecuteSuccess` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `EXECUTE_DUPLICATE_KEY` should have an upper camel case name [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | EXECUTE_DUPLICATE_KEY, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ExecuteDuplicateKey` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `META_COMMAND_SUCCESS` should have an upper camel case name [INFO] [stdout] --> src/main.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | META_COMMAND_SUCCESS, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `MetaCommandSuccess` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `META_COMMAND_UNRECOGNIZED_COMMAND` should have an upper camel case name [INFO] [stdout] --> src/main.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | META_COMMAND_UNRECOGNIZED_COMMAND [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `MetaCommandUnrecognizedCommand` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `PREPARE_SUCCESS` should have an upper camel case name [INFO] [stdout] --> src/main.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | PREPARE_SUCCESS, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `PrepareSuccess` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `PREPARE_NEGATIVE_ID` should have an upper camel case name [INFO] [stdout] --> src/main.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | PREPARE_NEGATIVE_ID, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `PrepareNegativeId` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `PREPARE_STRING_TOO_LONG` should have an upper camel case name [INFO] [stdout] --> src/main.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | PREPARE_STRING_TOO_LONG, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `PrepareStringTooLong` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `PREPARE_SYNTAX_ERROR` should have an upper camel case name [INFO] [stdout] --> src/main.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | PREPARE_SYNTAX_ERROR, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `PrepareSyntaxError` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `PREPARE_UNRECOGNIZED_STATEMENT` should have an upper camel case name [INFO] [stdout] --> src/main.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | PREPARE_UNRECOGNIZED_STATEMENT [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `PrepareUnrecognizedStatement` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `STATEMENT_INSERT` should have an upper camel case name [INFO] [stdout] --> src/main.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | STATEMENT_INSERT, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `StatementInsert` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `STATEMENT_SELECT` should have an upper camel case name [INFO] [stdout] --> src/main.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | STATEMENT_SELECT [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `StatementSelect` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `malloc` in this scope [INFO] [stdout] --> src/main.rs:295:43 [INFO] [stdout] | [INFO] [stdout] 295 | let mut page: *mut libc::c_void = malloc(PAGE_SIZE as libc::c_ulong); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::malloc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `lseek` in this scope [INFO] [stdout] --> src/main.rs:307:13 [INFO] [stdout] | [INFO] [stdout] 307 | lseek((*pager).file_descriptor, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::lseek; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `__off_t` in this scope [INFO] [stdout] --> src/main.rs:308:55 [INFO] [stdout] | [INFO] [stdout] 308 | page_num.wrapping_mul(PAGE_SIZE) as __off_t, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `read` in this scope [INFO] [stdout] --> src/main.rs:311:17 [INFO] [stdout] | [INFO] [stdout] 311 | read((*pager).file_descriptor, page, PAGE_SIZE as size_t); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 1 + use std::fs::read; [INFO] [stdout] | [INFO] [stdout] 1 + use std::ptr::read; [INFO] [stdout] | [INFO] [stdout] 1 + use core::ptr::read; [INFO] [stdout] | [INFO] [stdout] 1 + use libc::read; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `exit` in this scope [INFO] [stdout] --> src/main.rs:315:17 [INFO] [stdout] | [INFO] [stdout] 315 | exit(1 as libc::c_int); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 1 + use std::process::exit; [INFO] [stdout] | [INFO] [stdout] 1 + use libc::exit; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `memcpy` in this scope [INFO] [stdout] --> src/main.rs:384:5 [INFO] [stdout] | [INFO] [stdout] 384 | memcpy(destination.offset(ID_OFFSET as isize), [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::memcpy; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `memcpy` in this scope [INFO] [stdout] --> src/main.rs:387:5 [INFO] [stdout] | [INFO] [stdout] 387 | memcpy(destination.offset(USERNAME_OFFSET as isize), [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::memcpy; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `memcpy` in this scope [INFO] [stdout] --> src/main.rs:390:5 [INFO] [stdout] | [INFO] [stdout] 390 | memcpy(destination.offset(EMAIL_OFFSET as isize), [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::memcpy; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `memcpy` in this scope [INFO] [stdout] --> src/main.rs:397:5 [INFO] [stdout] | [INFO] [stdout] 397 | memcpy(&mut (*destination).id as *mut uint32_t as *mut libc::c_void, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::memcpy; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `memcpy` in this scope [INFO] [stdout] --> src/main.rs:399:5 [INFO] [stdout] | [INFO] [stdout] 399 | memcpy(&mut (*destination).username as *mut [libc::c_char; 33] as [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::memcpy; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `memcpy` in this scope [INFO] [stdout] --> src/main.rs:402:5 [INFO] [stdout] | [INFO] [stdout] 402 | memcpy(&mut (*destination).email as *mut [libc::c_char; 256] as [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::memcpy; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `malloc` in this scope [INFO] [stdout] --> src/main.rs:428:9 [INFO] [stdout] | [INFO] [stdout] 428 | malloc(::std::mem::size_of::() as libc::c_ulong) as [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::malloc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `open` in this scope [INFO] [stdout] --> src/main.rs:554:9 [INFO] [stdout] | [INFO] [stdout] 554 | open(filename, 0o2 as libc::c_int | 0o100 as libc::c_int, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::open; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `exit` in this scope [INFO] [stdout] --> src/main.rs:559:9 [INFO] [stdout] | [INFO] [stdout] 559 | exit(1 as libc::c_int); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 1 + use std::process::exit; [INFO] [stdout] | [INFO] [stdout] 1 + use libc::exit; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `off_t` in this scope [INFO] [stdout] --> src/main.rs:561:26 [INFO] [stdout] | [INFO] [stdout] 561 | let mut file_length: off_t = [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these type aliases [INFO] [stdout] | [INFO] [stdout] 1 + use std::os::linux::raw::off_t; [INFO] [stdout] | [INFO] [stdout] 1 + use libc::off_t; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `lseek` in this scope [INFO] [stdout] --> src/main.rs:562:9 [INFO] [stdout] | [INFO] [stdout] 562 | lseek(fd, 0 as libc::c_int as __off_t, 2 as libc::c_int); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::lseek; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `__off_t` in this scope [INFO] [stdout] --> src/main.rs:562:39 [INFO] [stdout] | [INFO] [stdout] 562 | lseek(fd, 0 as libc::c_int as __off_t, 2 as libc::c_int); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `malloc` in this scope [INFO] [stdout] --> src/main.rs:564:9 [INFO] [stdout] | [INFO] [stdout] 564 | malloc(::std::mem::size_of::() as libc::c_ulong) as *mut Pager; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::malloc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `exit` in this scope [INFO] [stdout] --> src/main.rs:573:9 [INFO] [stdout] | [INFO] [stdout] 573 | exit(1 as libc::c_int); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 1 + use std::process::exit; [INFO] [stdout] | [INFO] [stdout] 1 + use libc::exit; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `malloc` in this scope [INFO] [stdout] --> src/main.rs:587:9 [INFO] [stdout] | [INFO] [stdout] 587 | malloc(::std::mem::size_of::
() as libc::c_ulong) as *mut Table; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::malloc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `malloc` in this scope [INFO] [stdout] --> src/main.rs:602:9 [INFO] [stdout] | [INFO] [stdout] 602 | malloc(::std::mem::size_of::() as libc::c_ulong) as [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::malloc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `getline` in this scope [INFO] [stdout] --> src/main.rs:616:9 [INFO] [stdout] | [INFO] [stdout] 616 | getline(&mut (*input_buffer).buffer, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::getline; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `stdin` in this scope [INFO] [stdout] --> src/main.rs:617:53 [INFO] [stdout] | [INFO] [stdout] 617 | &mut (*input_buffer).buffer_length, stdin); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::stdin; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `exit` in this scope [INFO] [stdout] --> src/main.rs:621:9 [INFO] [stdout] | [INFO] [stdout] 621 | exit(1 as libc::c_int); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 1 + use std::process::exit; [INFO] [stdout] | [INFO] [stdout] 1 + use libc::exit; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `free` in this scope [INFO] [stdout] --> src/main.rs:634:5 [INFO] [stdout] | [INFO] [stdout] 634 | free((*input_buffer).buffer as *mut libc::c_void); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::free; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `free` in this scope [INFO] [stdout] --> src/main.rs:635:5 [INFO] [stdout] | [INFO] [stdout] 635 | free(input_buffer as *mut libc::c_void); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::free; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `exit` in this scope [INFO] [stdout] --> src/main.rs:643:9 [INFO] [stdout] | [INFO] [stdout] 643 | exit(1 as libc::c_int); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 1 + use std::process::exit; [INFO] [stdout] | [INFO] [stdout] 1 + use libc::exit; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `off_t` in this scope [INFO] [stdout] --> src/main.rs:645:21 [INFO] [stdout] | [INFO] [stdout] 645 | let mut offset: off_t = [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these type aliases [INFO] [stdout] | [INFO] [stdout] 1 + use std::os::linux::raw::off_t; [INFO] [stdout] | [INFO] [stdout] 1 + use libc::off_t; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `lseek` in this scope [INFO] [stdout] --> src/main.rs:646:9 [INFO] [stdout] | [INFO] [stdout] 646 | lseek((*pager).file_descriptor, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::lseek; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `__off_t` in this scope [INFO] [stdout] --> src/main.rs:647:51 [INFO] [stdout] | [INFO] [stdout] 647 | page_num.wrapping_mul(PAGE_SIZE) as __off_t, 0 as libc::c_int); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `exit` in this scope [INFO] [stdout] --> src/main.rs:651:9 [INFO] [stdout] | [INFO] [stdout] 651 | exit(1 as libc::c_int); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 1 + use std::process::exit; [INFO] [stdout] | [INFO] [stdout] 1 + use libc::exit; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected function, found macro `write` [INFO] [stdout] --> src/main.rs:654:9 [INFO] [stdout] | [INFO] [stdout] 654 | write((*pager).file_descriptor, (*pager).pages[page_num as usize], [INFO] [stdout] | ^^^^^ not a function [INFO] [stdout] | [INFO] [stdout] help: use `!` to invoke the macro [INFO] [stdout] | [INFO] [stdout] 654 | write!((*pager).file_descriptor, (*pager).pages[page_num as usize], [INFO] [stdout] | + [INFO] [stdout] help: consider importing one of these functions instead [INFO] [stdout] | [INFO] [stdout] 1 + use std::fmt::write; [INFO] [stdout] | [INFO] [stdout] 1 + use std::fs::write; [INFO] [stdout] | [INFO] [stdout] 1 + use std::ptr::write; [INFO] [stdout] | [INFO] [stdout] 1 + use core::fmt::write; [INFO] [stdout] | [INFO] [stdout] and 2 other candidates [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `exit` in this scope [INFO] [stdout] --> src/main.rs:659:9 [INFO] [stdout] | [INFO] [stdout] 659 | exit(1 as libc::c_int); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 1 + use std::process::exit; [INFO] [stdout] | [INFO] [stdout] 1 + use libc::exit; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `free` in this scope [INFO] [stdout] --> src/main.rs:669:13 [INFO] [stdout] | [INFO] [stdout] 669 | free((*pager).pages[i as usize]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::free; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `close` in this scope [INFO] [stdout] --> src/main.rs:674:35 [INFO] [stdout] | [INFO] [stdout] 674 | let mut result: libc::c_int = close((*pager).file_descriptor); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::close; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `exit` in this scope [INFO] [stdout] --> src/main.rs:678:9 [INFO] [stdout] | [INFO] [stdout] 678 | exit(1 as libc::c_int); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 1 + use std::process::exit; [INFO] [stdout] | [INFO] [stdout] 1 + use libc::exit; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `free` in this scope [INFO] [stdout] --> src/main.rs:684:13 [INFO] [stdout] | [INFO] [stdout] 684 | free(page); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::free; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `free` in this scope [INFO] [stdout] --> src/main.rs:689:5 [INFO] [stdout] | [INFO] [stdout] 689 | free(pager as *mut libc::c_void); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::free; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `free` in this scope [INFO] [stdout] --> src/main.rs:690:5 [INFO] [stdout] | [INFO] [stdout] 690 | free(table as *mut libc::c_void); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::free; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `strcmp` in this scope [INFO] [stdout] --> src/main.rs:696:8 [INFO] [stdout] | [INFO] [stdout] 696 | if strcmp((*input_buffer).buffer, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::strcmp; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `exit` in this scope [INFO] [stdout] --> src/main.rs:701:9 [INFO] [stdout] | [INFO] [stdout] 701 | exit(0 as libc::c_int); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 1 + use std::process::exit; [INFO] [stdout] | [INFO] [stdout] 1 + use libc::exit; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `strcmp` in this scope [INFO] [stdout] --> src/main.rs:702:15 [INFO] [stdout] | [INFO] [stdout] 702 | } else if strcmp((*input_buffer).buffer, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::strcmp; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `META_COMMAND_SUCCESS` in this scope [INFO] [stdout] --> src/main.rs:708:16 [INFO] [stdout] | [INFO] [stdout] 708 | return META_COMMAND_SUCCESS [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 + use crate::MetaCommandResult::META_COMMAND_SUCCESS; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `strcmp` in this scope [INFO] [stdout] --> src/main.rs:709:15 [INFO] [stdout] | [INFO] [stdout] 709 | } else if strcmp((*input_buffer).buffer, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::strcmp; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `META_COMMAND_SUCCESS` in this scope [INFO] [stdout] --> src/main.rs:714:16 [INFO] [stdout] | [INFO] [stdout] 714 | return META_COMMAND_SUCCESS [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 + use crate::MetaCommandResult::META_COMMAND_SUCCESS; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `META_COMMAND_UNRECOGNIZED_COMMAND` in this scope [INFO] [stdout] --> src/main.rs:715:21 [INFO] [stdout] | [INFO] [stdout] 715 | } else { return META_COMMAND_UNRECOGNIZED_COMMAND }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 + use crate::MetaCommandResult::META_COMMAND_UNRECOGNIZED_COMMAND; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `STATEMENT_INSERT` in this scope [INFO] [stdout] --> src/main.rs:721:27 [INFO] [stdout] | [INFO] [stdout] 721 | (*statement).type_0 = STATEMENT_INSERT; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 + use crate::StatementType::STATEMENT_INSERT; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `strtok` in this scope [INFO] [stdout] --> src/main.rs:723:9 [INFO] [stdout] | [INFO] [stdout] 723 | strtok((*input_buffer).buffer, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::strtok; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `strtok` in this scope [INFO] [stdout] --> src/main.rs:726:9 [INFO] [stdout] | [INFO] [stdout] 726 | strtok(0 as *mut libc::c_char, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::strtok; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `strtok` in this scope [INFO] [stdout] --> src/main.rs:729:9 [INFO] [stdout] | [INFO] [stdout] 729 | strtok(0 as *mut libc::c_char, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::strtok; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `strtok` in this scope [INFO] [stdout] --> src/main.rs:732:9 [INFO] [stdout] | [INFO] [stdout] 732 | strtok(0 as *mut libc::c_char, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::strtok; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PREPARE_SYNTAX_ERROR` in this scope [INFO] [stdout] --> src/main.rs:735:16 [INFO] [stdout] | [INFO] [stdout] 735 | return PREPARE_SYNTAX_ERROR [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 + use crate::PrepareResult::PREPARE_SYNTAX_ERROR; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `atoi` in this scope [INFO] [stdout] --> src/main.rs:737:31 [INFO] [stdout] | [INFO] [stdout] 737 | let mut id: libc::c_int = atoi(id_string); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::atoi; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PREPARE_NEGATIVE_ID` in this scope [INFO] [stdout] --> src/main.rs:738:39 [INFO] [stdout] | [INFO] [stdout] 738 | if id < 0 as libc::c_int { return PREPARE_NEGATIVE_ID } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 + use crate::PrepareResult::PREPARE_NEGATIVE_ID; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `strlen` in this scope [INFO] [stdout] --> src/main.rs:739:8 [INFO] [stdout] | [INFO] [stdout] 739 | if strlen(username) > 32 as libc::c_int as libc::c_ulong { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::strlen; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PREPARE_STRING_TOO_LONG` in this scope [INFO] [stdout] --> src/main.rs:740:16 [INFO] [stdout] | [INFO] [stdout] 740 | return PREPARE_STRING_TOO_LONG [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 + use crate::PrepareResult::PREPARE_STRING_TOO_LONG; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `strlen` in this scope [INFO] [stdout] --> src/main.rs:742:8 [INFO] [stdout] | [INFO] [stdout] 742 | if strlen(email) > 255 as libc::c_int as libc::c_ulong { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::strlen; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PREPARE_STRING_TOO_LONG` in this scope [INFO] [stdout] --> src/main.rs:743:16 [INFO] [stdout] | [INFO] [stdout] 743 | return PREPARE_STRING_TOO_LONG [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 + use crate::PrepareResult::PREPARE_STRING_TOO_LONG; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `strcpy` in this scope [INFO] [stdout] --> src/main.rs:746:5 [INFO] [stdout] | [INFO] [stdout] 746 | strcpy((*statement).row_to_insert.username.as_mut_ptr(), username); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::strcpy; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `strcpy` in this scope [INFO] [stdout] --> src/main.rs:747:5 [INFO] [stdout] | [INFO] [stdout] 747 | strcpy((*statement).row_to_insert.email.as_mut_ptr(), email); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::strcpy; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PREPARE_SUCCESS` in this scope [INFO] [stdout] --> src/main.rs:748:12 [INFO] [stdout] | [INFO] [stdout] 748 | return PREPARE_SUCCESS; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 + use crate::PrepareResult::PREPARE_SUCCESS; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `strncmp` in this scope [INFO] [stdout] --> src/main.rs:754:8 [INFO] [stdout] | [INFO] [stdout] 754 | if strncmp((*input_buffer).buffer, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::strncmp; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `strcmp` in this scope [INFO] [stdout] --> src/main.rs:759:8 [INFO] [stdout] | [INFO] [stdout] 759 | if strcmp((*input_buffer).buffer, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::strcmp; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `STATEMENT_SELECT` in this scope [INFO] [stdout] --> src/main.rs:762:31 [INFO] [stdout] | [INFO] [stdout] 762 | (*statement).type_0 = STATEMENT_SELECT; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 + use crate::StatementType::STATEMENT_SELECT; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PREPARE_SUCCESS` in this scope [INFO] [stdout] --> src/main.rs:763:16 [INFO] [stdout] | [INFO] [stdout] 763 | return PREPARE_SUCCESS [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 + use crate::PrepareResult::PREPARE_SUCCESS; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PREPARE_UNRECOGNIZED_STATEMENT` in this scope [INFO] [stdout] --> src/main.rs:765:12 [INFO] [stdout] | [INFO] [stdout] 765 | return PREPARE_UNRECOGNIZED_STATEMENT; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 + use crate::PrepareResult::PREPARE_UNRECOGNIZED_STATEMENT; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `memcpy` in this scope [INFO] [stdout] --> src/main.rs:795:5 [INFO] [stdout] | [INFO] [stdout] 795 | memcpy(left_child, root, PAGE_SIZE as libc::c_ulong); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::memcpy; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `exit` in this scope [INFO] [stdout] --> src/main.rs:829:9 [INFO] [stdout] | [INFO] [stdout] 829 | exit(1 as libc::c_int); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 1 + use std::process::exit; [INFO] [stdout] | [INFO] [stdout] 1 + use libc::exit; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `memcpy` in this scope [INFO] [stdout] --> src/main.rs:853:13 [INFO] [stdout] | [INFO] [stdout] 853 | memcpy(destination, source, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::memcpy; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `memcpy` in this scope [INFO] [stdout] --> src/main.rs:910:13 [INFO] [stdout] | [INFO] [stdout] 910 | memcpy(destination, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::memcpy; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `memcpy` in this scope [INFO] [stdout] --> src/main.rs:915:13 [INFO] [stdout] | [INFO] [stdout] 915 | memcpy(destination, leaf_node_cell(old_node, i as uint32_t), [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::memcpy; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `memcpy` in this scope [INFO] [stdout] --> src/main.rs:951:13 [INFO] [stdout] | [INFO] [stdout] 951 | memcpy(leaf_node_cell(node, i), [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::memcpy; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `EXECUTE_DUPLICATE_KEY` in this scope [INFO] [stdout] --> src/main.rs:980:51 [INFO] [stdout] | [INFO] [stdout] 980 | if key_at_index == key_to_insert { return EXECUTE_DUPLICATE_KEY } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 + use crate::ExecuteResult::EXECUTE_DUPLICATE_KEY; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `free` in this scope [INFO] [stdout] --> src/main.rs:983:5 [INFO] [stdout] | [INFO] [stdout] 983 | free(cursor as *mut libc::c_void); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::free; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `EXECUTE_SUCCESS` in this scope [INFO] [stdout] --> src/main.rs:984:12 [INFO] [stdout] | [INFO] [stdout] 984 | return EXECUTE_SUCCESS; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 + use crate::ExecuteResult::EXECUTE_SUCCESS; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `free` in this scope [INFO] [stdout] --> src/main.rs:997:5 [INFO] [stdout] | [INFO] [stdout] 997 | free(cursor as *mut libc::c_void); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use libc::free; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `EXECUTE_SUCCESS` in this scope [INFO] [stdout] --> src/main.rs:998:12 [INFO] [stdout] | [INFO] [stdout] 998 | return EXECUTE_SUCCESS; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 + use crate::ExecuteResult::EXECUTE_SUCCESS; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `exit` in this scope [INFO] [stdout] --> src/main.rs:1016:9 [INFO] [stdout] | [INFO] [stdout] 1016 | exit(1 as libc::c_int); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 1 + use std::process::exit; [INFO] [stdout] | [INFO] [stdout] 1 + use libc::exit; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `STATEMENT_INSERT` in this scope [INFO] [stdout] --> src/main.rs:1039:31 [INFO] [stdout] | [INFO] [stdout] 1039 | Statement{type_0: STATEMENT_INSERT, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 + use crate::StatementType::STATEMENT_INSERT; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `int32_t` should have an upper camel case name [INFO] [stdout] --> src/main.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | pub type int32_t = i32; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `Int32T` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `uint8_t` should have an upper camel case name [INFO] [stdout] --> src/main.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub type uint8_t = u8; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `Uint8T` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `uint32_t` should have an upper camel case name [INFO] [stdout] --> src/main.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub type uint32_t = u32; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Uint32T` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `size_t` should have an upper camel case name [INFO] [stdout] --> src/main.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub type size_t = usize; [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `SizeT` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ssize_t` should have an upper camel case name [INFO] [stdout] --> src/main.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub type ssize_t = usize; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `SsizeT` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `char` should have an upper camel case name [INFO] [stdout] --> src/main.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub type char = u8; [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Char` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `int` should have an upper camel case name [INFO] [stdout] --> src/main.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | pub type int = i16; [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case (notice the capitalization): `Int` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `void` should have an upper camel case name [INFO] [stdout] --> src/main.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | pub type void = (); [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Void` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `EXECUTE_SUCCESS` should have an upper camel case name [INFO] [stdout] --> src/main.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | EXECUTE_SUCCESS, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ExecuteSuccess` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `EXECUTE_DUPLICATE_KEY` should have an upper camel case name [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | EXECUTE_DUPLICATE_KEY, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ExecuteDuplicateKey` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `META_COMMAND_SUCCESS` should have an upper camel case name [INFO] [stdout] --> src/main.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | META_COMMAND_SUCCESS, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `MetaCommandSuccess` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `META_COMMAND_UNRECOGNIZED_COMMAND` should have an upper camel case name [INFO] [stdout] --> src/main.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | META_COMMAND_UNRECOGNIZED_COMMAND [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `MetaCommandUnrecognizedCommand` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `PREPARE_SUCCESS` should have an upper camel case name [INFO] [stdout] --> src/main.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | PREPARE_SUCCESS, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `PrepareSuccess` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `PREPARE_NEGATIVE_ID` should have an upper camel case name [INFO] [stdout] --> src/main.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | PREPARE_NEGATIVE_ID, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `PrepareNegativeId` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `PREPARE_STRING_TOO_LONG` should have an upper camel case name [INFO] [stdout] --> src/main.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | PREPARE_STRING_TOO_LONG, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `PrepareStringTooLong` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `PREPARE_SYNTAX_ERROR` should have an upper camel case name [INFO] [stdout] --> src/main.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | PREPARE_SYNTAX_ERROR, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `PrepareSyntaxError` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `PREPARE_UNRECOGNIZED_STATEMENT` should have an upper camel case name [INFO] [stdout] --> src/main.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | PREPARE_UNRECOGNIZED_STATEMENT [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `PrepareUnrecognizedStatement` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `STATEMENT_INSERT` should have an upper camel case name [INFO] [stdout] --> src/main.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | STATEMENT_INSERT, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `StatementInsert` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `STATEMENT_SELECT` should have an upper camel case name [INFO] [stdout] --> src/main.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | STATEMENT_SELECT [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `StatementSelect` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:324:12 [INFO] [stdout] | [INFO] [stdout] 287 | -> *mut libc::c_void { [INFO] [stdout] | ----------------- expected `*mut c_void` because of return type [INFO] [stdout] ... [INFO] [stdout] 324 | return (*pager).pages[page_num as usize]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `*mut c_void`, found `*mut ()` [INFO] [stdout] | [INFO] [stdout] = note: expected raw pointer `*mut c_void` [INFO] [stdout] found raw pointer `*mut ()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:388:12 [INFO] [stdout] | [INFO] [stdout] 388 | &mut (*source).username as *mut [libc::c_char; 33] as [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `u8`, found `[i8; 33]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:391:12 [INFO] [stdout] | [INFO] [stdout] 391 | &mut (*source).email as *mut [libc::c_char; 256] as [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `u8`, found `[i8; 256]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:399:12 [INFO] [stdout] | [INFO] [stdout] 399 | memcpy(&mut (*destination).username as *mut [libc::c_char; 33] as [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `u8`, found `[i8; 33]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:402:12 [INFO] [stdout] | [INFO] [stdout] 402 | memcpy(&mut (*destination).email as *mut [libc::c_char; 256] as [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `u8`, found `[i8; 256]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `set_node_type` in this scope [INFO] [stdout] --> src/main.rs:408:5 [INFO] [stdout] | [INFO] [stdout] 159 | pub unsafe fn get_node_type(mut node: *mut libc::c_void) -> NodeType { [INFO] [stdout] | -------------------------------------------------------------------- similarly named function `get_node_type` defined here [INFO] [stdout] ... [INFO] [stdout] 408 | set_node_type(node, NODE_LEAF); [INFO] [stdout] | ^^^^^^^^^^^^^ help: a function with a similar name exists: `get_node_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `set_node_type` in this scope [INFO] [stdout] --> src/main.rs:417:5 [INFO] [stdout] | [INFO] [stdout] 159 | pub unsafe fn get_node_type(mut node: *mut libc::c_void) -> NodeType { [INFO] [stdout] | -------------------------------------------------------------------- similarly named function `get_node_type` defined here [INFO] [stdout] ... [INFO] [stdout] 417 | set_node_type(node, NODE_INTERNAL); [INFO] [stdout] | ^^^^^^^^^^^^^ help: a function with a similar name exists: `get_node_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:324:12 [INFO] [stdout] | [INFO] [stdout] 287 | -> *mut libc::c_void { [INFO] [stdout] | ----------------- expected `*mut c_void` because of return type [INFO] [stdout] ... [INFO] [stdout] 324 | return (*pager).pages[page_num as usize]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `*mut c_void`, found `*mut ()` [INFO] [stdout] | [INFO] [stdout] = note: expected raw pointer `*mut c_void` [INFO] [stdout] found raw pointer `*mut ()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:629:9 [INFO] [stdout] | [INFO] [stdout] 626 | / *(*input_buffer).buffer.offset((bytes_read - [INFO] [stdout] 627 | | 1 as libc::c_int as libc::c_long) as [INFO] [stdout] 628 | | isize) = [INFO] [stdout] | |_____________________________________________- expected due to the type of this binding [INFO] [stdout] 629 | 0 as libc::c_int as libc::c_char; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `u8`, found `i8` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:388:12 [INFO] [stdout] | [INFO] [stdout] 388 | &mut (*source).username as *mut [libc::c_char; 33] as [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `u8`, found `[i8; 33]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:391:12 [INFO] [stdout] | [INFO] [stdout] 391 | &mut (*source).email as *mut [libc::c_char; 256] as [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `u8`, found `[i8; 256]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:399:12 [INFO] [stdout] | [INFO] [stdout] 399 | memcpy(&mut (*destination).username as *mut [libc::c_char; 33] as [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `u8`, found `[i8; 33]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:402:12 [INFO] [stdout] | [INFO] [stdout] 402 | memcpy(&mut (*destination).email as *mut [libc::c_char; 256] as [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `u8`, found `[i8; 256]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `set_node_type` in this scope [INFO] [stdout] --> src/main.rs:408:5 [INFO] [stdout] | [INFO] [stdout] 159 | pub unsafe fn get_node_type(mut node: *mut libc::c_void) -> NodeType { [INFO] [stdout] | -------------------------------------------------------------------- similarly named function `get_node_type` defined here [INFO] [stdout] ... [INFO] [stdout] 408 | set_node_type(node, NODE_LEAF); [INFO] [stdout] | ^^^^^^^^^^^^^ help: a function with a similar name exists: `get_node_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:670:42 [INFO] [stdout] | [INFO] [stdout] 670 | (*pager).pages[i as usize] = 0 as *mut libc::c_void [INFO] [stdout] | -------------------------- ^^^^^^^^^^^^^^^^^^^^^^ expected `*mut ()`, found `*mut c_void` [INFO] [stdout] | | [INFO] [stdout] | expected due to the type of this binding [INFO] [stdout] | [INFO] [stdout] = note: expected raw pointer `*mut ()` [INFO] [stdout] found raw pointer `*mut c_void` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `set_node_type` in this scope [INFO] [stdout] --> src/main.rs:417:5 [INFO] [stdout] | [INFO] [stdout] 159 | pub unsafe fn get_node_type(mut node: *mut libc::c_void) -> NodeType { [INFO] [stdout] | -------------------------------------------------------------------- similarly named function `get_node_type` defined here [INFO] [stdout] ... [INFO] [stdout] 417 | set_node_type(node, NODE_INTERNAL); [INFO] [stdout] | ^^^^^^^^^^^^^ help: a function with a similar name exists: `get_node_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:682:43 [INFO] [stdout] | [INFO] [stdout] 682 | let mut page: *mut libc::c_void = (*pager).pages[i_0 as usize]; [INFO] [stdout] | ----------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `*mut c_void`, found `*mut ()` [INFO] [stdout] | | [INFO] [stdout] | expected due to this [INFO] [stdout] | [INFO] [stdout] = note: expected raw pointer `*mut c_void` [INFO] [stdout] found raw pointer `*mut ()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:685:44 [INFO] [stdout] | [INFO] [stdout] 685 | (*pager).pages[i_0 as usize] = 0 as *mut libc::c_void [INFO] [stdout] | ---------------------------- ^^^^^^^^^^^^^^^^^^^^^^ expected `*mut ()`, found `*mut c_void` [INFO] [stdout] | | [INFO] [stdout] | expected due to the type of this binding [INFO] [stdout] | [INFO] [stdout] = note: expected raw pointer `*mut ()` [INFO] [stdout] found raw pointer `*mut c_void` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:695:5 [INFO] [stdout] | [INFO] [stdout] 693 | pub unsafe fn do_meta_command(mut input_buffer: *mut InputBuffer, [INFO] [stdout] | --------------- implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] 694 | mut table: *mut Table) [INFO] [stdout] 695 | -> MetaCommandResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ expected `MetaCommandResult`, found `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:629:9 [INFO] [stdout] | [INFO] [stdout] 626 | / *(*input_buffer).buffer.offset((bytes_read - [INFO] [stdout] 627 | | 1 as libc::c_int as libc::c_long) as [INFO] [stdout] 628 | | isize) = [INFO] [stdout] | |_____________________________________________- expected due to the type of this binding [INFO] [stdout] 629 | 0 as libc::c_int as libc::c_char; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `u8`, found `i8` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:670:42 [INFO] [stdout] | [INFO] [stdout] 670 | (*pager).pages[i as usize] = 0 as *mut libc::c_void [INFO] [stdout] | -------------------------- ^^^^^^^^^^^^^^^^^^^^^^ expected `*mut ()`, found `*mut c_void` [INFO] [stdout] | | [INFO] [stdout] | expected due to the type of this binding [INFO] [stdout] | [INFO] [stdout] = note: expected raw pointer `*mut ()` [INFO] [stdout] found raw pointer `*mut c_void` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:682:43 [INFO] [stdout] | [INFO] [stdout] 682 | let mut page: *mut libc::c_void = (*pager).pages[i_0 as usize]; [INFO] [stdout] | ----------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `*mut c_void`, found `*mut ()` [INFO] [stdout] | | [INFO] [stdout] | expected due to this [INFO] [stdout] | [INFO] [stdout] = note: expected raw pointer `*mut c_void` [INFO] [stdout] found raw pointer `*mut ()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:685:44 [INFO] [stdout] | [INFO] [stdout] 685 | (*pager).pages[i_0 as usize] = 0 as *mut libc::c_void [INFO] [stdout] | ---------------------------- ^^^^^^^^^^^^^^^^^^^^^^ expected `*mut ()`, found `*mut c_void` [INFO] [stdout] | | [INFO] [stdout] | expected due to the type of this binding [INFO] [stdout] | [INFO] [stdout] = note: expected raw pointer `*mut ()` [INFO] [stdout] found raw pointer `*mut c_void` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:695:5 [INFO] [stdout] | [INFO] [stdout] 693 | pub unsafe fn do_meta_command(mut input_buffer: *mut InputBuffer, [INFO] [stdout] | --------------- implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] 694 | mut table: *mut Table) [INFO] [stdout] 695 | -> MetaCommandResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ expected `MetaCommandResult`, found `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:991:61 [INFO] [stdout] | [INFO] [stdout] 991 | let mut row: Row = Row{id: 0, username: [0; 33], email: [0; 256],}; [INFO] [stdout] | ^^^^^^^^ expected an array with a fixed size of 226 elements, found one with 256 elements [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:1041:64 [INFO] [stdout] | [INFO] [stdout] 1041 | Row{id: 0, username: [0; 33], email: [0; 256],},}; [INFO] [stdout] | ^^^^^^^^ expected an array with a fixed size of 226 elements, found one with 256 elements [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:991:61 [INFO] [stdout] | [INFO] [stdout] 991 | let mut row: Row = Row{id: 0, username: [0; 33], email: [0; 256],}; [INFO] [stdout] | ^^^^^^^^ expected an array with a fixed size of 226 elements, found one with 256 elements [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:1041:64 [INFO] [stdout] | [INFO] [stdout] 1041 | Row{id: 0, username: [0; 33], email: [0; 256],},}; [INFO] [stdout] | ^^^^^^^^ expected an array with a fixed size of 226 elements, found one with 256 elements [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:159:29 [INFO] [stdout] | [INFO] [stdout] 159 | pub unsafe fn get_node_type(mut node: *mut libc::c_void) -> NodeType { [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/main.rs:160:9 [INFO] [stdout] | [INFO] [stdout] 160 | let mut value: uint8_t = *(node.offset(NODE_TYPE_OFFSET as isize) as *mut uint8_t); [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/main.rs:164:28 [INFO] [stdout] | [INFO] [stdout] 164 | pub unsafe fn is_node_root(mut node: *mut libc::c_void) -> bool { [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/main.rs:165:9 [INFO] [stdout] | [INFO] [stdout] 165 | let mut value: uint8_t = [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/main.rs:170:29 [INFO] [stdout] | [INFO] [stdout] 170 | pub unsafe fn set_node_root(mut node: *mut libc::c_void, [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/main.rs:171:40 [INFO] [stdout] | [INFO] [stdout] 171 | ... mut is_root: bool) { [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/main.rs:172:9 [INFO] [stdout] | [INFO] [stdout] 172 | let mut value: uint8_t = is_root as uint8_t; [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/main.rs:176:27 [INFO] [stdout] | [INFO] [stdout] 176 | pub unsafe fn node_parent(mut node: *mut libc::c_void) [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/main.rs:181:38 [INFO] [stdout] | [INFO] [stdout] 181 | pub unsafe fn internal_node_num_keys(mut node: *mut libc::c_void) [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/main.rs:187:41 [INFO] [stdout] | [INFO] [stdout] 187 | pub unsafe fn internal_node_right_child(mut node: [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/main.rs:194:34 [INFO] [stdout] | [INFO] [stdout] 194 | pub unsafe fn internal_node_cell(mut node: *mut libc::c_void, [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/main.rs:195:45 [INFO] [stdout] | [INFO] [stdout] 195 | ... mut cell_num: uint32_t) [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/main.rs:202:35 [INFO] [stdout] | [INFO] [stdout] 202 | pub unsafe fn internal_node_child(mut node: *mut libc::c_void, [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/main.rs:203:46 [INFO] [stdout] | [INFO] [stdout] 203 | ... mut child_num: uint32_t) [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/main.rs:205:9 [INFO] [stdout] | [INFO] [stdout] 205 | let mut num_keys: uint32_t = *internal_node_num_keys(node); [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/main.rs:214:33 [INFO] [stdout] | [INFO] [stdout] 214 | pub unsafe fn internal_node_key(mut node: *mut libc::c_void, [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/main.rs:215:44 [INFO] [stdout] | [INFO] [stdout] 215 | ... mut key_num: uint32_t) [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/main.rs:222:35 [INFO] [stdout] | [INFO] [stdout] 222 | pub unsafe fn leaf_node_num_cells(mut node: *mut libc::c_void) [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/main.rs:227:35 [INFO] [stdout] | [INFO] [stdout] 227 | pub unsafe fn leaf_node_next_leaf(mut node: *mut libc::c_void) [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/main.rs:232:30 [INFO] [stdout] | [INFO] [stdout] 232 | pub unsafe fn leaf_node_cell(mut node: *mut libc::c_void, [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/main.rs:233:41 [INFO] [stdout] | [INFO] [stdout] 233 | ... mut cell_num: uint32_t) [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/main.rs:240:29 [INFO] [stdout] | [INFO] [stdout] 240 | pub unsafe fn leaf_node_key(mut node: *mut libc::c_void, [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/main.rs:241:40 [INFO] [stdout] | [INFO] [stdout] 241 | ... mut cell_num: uint32_t) [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/main.rs:246:31 [INFO] [stdout] | [INFO] [stdout] 246 | pub unsafe fn leaf_node_value(mut node: *mut libc::c_void, [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/main.rs:247:42 [INFO] [stdout] | [INFO] [stdout] 247 | ... mut cell_num: uint32_t) [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/main.rs:252:32 [INFO] [stdout] | [INFO] [stdout] 252 | pub unsafe fn get_node_max_key(mut node: *mut core::ffi::c_void) [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/main.rs:159:29 [INFO] [stdout] | [INFO] [stdout] 159 | pub unsafe fn get_node_type(mut node: *mut libc::c_void) -> NodeType { [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/main.rs:160:9 [INFO] [stdout] | [INFO] [stdout] 160 | let mut value: uint8_t = *(node.offset(NODE_TYPE_OFFSET as isize) as *mut uint8_t); [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/main.rs:164:28 [INFO] [stdout] | [INFO] [stdout] 164 | pub unsafe fn is_node_root(mut node: *mut libc::c_void) -> bool { [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/main.rs:165:9 [INFO] [stdout] | [INFO] [stdout] 165 | let mut value: uint8_t = [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/main.rs:170:29 [INFO] [stdout] | [INFO] [stdout] 170 | pub unsafe fn set_node_root(mut node: *mut libc::c_void, [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/main.rs:171:40 [INFO] [stdout] | [INFO] [stdout] 171 | ... mut is_root: bool) { [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/main.rs:172:9 [INFO] [stdout] | [INFO] [stdout] 172 | let mut value: uint8_t = is_root as uint8_t; [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/main.rs:176:27 [INFO] [stdout] | [INFO] [stdout] 176 | pub unsafe fn node_parent(mut node: *mut libc::c_void) [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/main.rs:181:38 [INFO] [stdout] | [INFO] [stdout] 181 | pub unsafe fn internal_node_num_keys(mut node: *mut libc::c_void) [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/main.rs:187:41 [INFO] [stdout] | [INFO] [stdout] 187 | pub unsafe fn internal_node_right_child(mut node: [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/main.rs:194:34 [INFO] [stdout] | [INFO] [stdout] 194 | pub unsafe fn internal_node_cell(mut node: *mut libc::c_void, [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/main.rs:195:45 [INFO] [stdout] | [INFO] [stdout] 195 | ... mut cell_num: uint32_t) [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/main.rs:454:40 [INFO] [stdout] | [INFO] [stdout] 454 | pub unsafe fn internal_node_find_child(mut node: *mut libc::c_void, [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/main.rs:455:51 [INFO] [stdout] | [INFO] [stdout] 455 | ... mut key: uint32_t) [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/main.rs:202:35 [INFO] [stdout] | [INFO] [stdout] 202 | pub unsafe fn internal_node_child(mut node: *mut libc::c_void, [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/main.rs:203:46 [INFO] [stdout] | [INFO] [stdout] 203 | ... mut child_num: uint32_t) [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/main.rs:205:9 [INFO] [stdout] | [INFO] [stdout] 205 | let mut num_keys: uint32_t = *internal_node_num_keys(node); [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/main.rs:461:9 [INFO] [stdout] | [INFO] [stdout] 461 | let mut num_keys: uint32_t = *internal_node_num_keys(node); [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/main.rs:467:13 [INFO] [stdout] | [INFO] [stdout] 467 | let mut index: uint32_t = [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/main.rs:214:33 [INFO] [stdout] | [INFO] [stdout] 214 | pub unsafe fn internal_node_key(mut node: *mut libc::c_void, [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/main.rs:215:44 [INFO] [stdout] | [INFO] [stdout] 215 | ... mut key_num: uint32_t) [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/main.rs:470:13 [INFO] [stdout] | [INFO] [stdout] 470 | let mut key_to_right: uint32_t = *internal_node_key(node, index); [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/main.rs:222:35 [INFO] [stdout] | [INFO] [stdout] 222 | pub unsafe fn leaf_node_num_cells(mut node: *mut libc::c_void) [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/main.rs:227:35 [INFO] [stdout] | [INFO] [stdout] 227 | pub unsafe fn leaf_node_next_leaf(mut node: *mut libc::c_void) [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/main.rs:232:30 [INFO] [stdout] | [INFO] [stdout] 232 | pub unsafe fn leaf_node_cell(mut node: *mut libc::c_void, [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/main.rs:233:41 [INFO] [stdout] | [INFO] [stdout] 233 | ... mut cell_num: uint32_t) [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/main.rs:480:34 [INFO] [stdout] | [INFO] [stdout] 480 | pub unsafe fn internal_node_find(mut table: *mut Table, [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/main.rs:481:45 [INFO] [stdout] | [INFO] [stdout] 481 | ... mut page_num: uint32_t, [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/main.rs:240:29 [INFO] [stdout] | [INFO] [stdout] 240 | pub unsafe fn leaf_node_key(mut node: *mut libc::c_void, [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/main.rs:482:45 [INFO] [stdout] | [INFO] [stdout] 482 | ... mut key: uint32_t) [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/main.rs:241:40 [INFO] [stdout] | [INFO] [stdout] 241 | ... mut cell_num: uint32_t) [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/main.rs:484:9 [INFO] [stdout] | [INFO] [stdout] 484 | let mut node: *mut libc::c_void = get_page((*table).pager, page_num); [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/main.rs:246:31 [INFO] [stdout] | [INFO] [stdout] 246 | pub unsafe fn leaf_node_value(mut node: *mut libc::c_void, [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/main.rs:485:9 [INFO] [stdout] | [INFO] [stdout] 485 | let mut child_index: uint32_t = internal_node_find_child(node, key); [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/main.rs:247:42 [INFO] [stdout] | [INFO] [stdout] 247 | ... mut cell_num: uint32_t) [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/main.rs:486:9 [INFO] [stdout] | [INFO] [stdout] 486 | let mut child_num: uint32_t = *internal_node_child(node, child_index); [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/main.rs:252:32 [INFO] [stdout] | [INFO] [stdout] 252 | pub unsafe fn get_node_max_key(mut node: *mut core::ffi::c_void) [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/main.rs:487:9 [INFO] [stdout] | [INFO] [stdout] 487 | let mut child: *mut libc::c_void = get_page((*table).pager, child_num); [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/main.rs:501:26 [INFO] [stdout] | [INFO] [stdout] 501 | pub unsafe fn table_find(mut table: *mut Table, mut key: uint32_t) [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/main.rs:501:49 [INFO] [stdout] | [INFO] [stdout] 501 | pub unsafe fn table_find(mut table: *mut Table, mut key: uint32_t) [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/main.rs:503:9 [INFO] [stdout] | [INFO] [stdout] 503 | let mut root_page_num: uint32_t = (*table).root_page_num; [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/main.rs:504:9 [INFO] [stdout] | [INFO] [stdout] 504 | let mut root_node: *mut libc::c_void = [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/main.rs:512:27 [INFO] [stdout] | [INFO] [stdout] 512 | pub unsafe fn table_start(mut table: *mut Table) -> *mut Cursor { [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/main.rs:513:9 [INFO] [stdout] | [INFO] [stdout] 513 | let mut cursor: *mut Cursor = [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/main.rs:515:9 [INFO] [stdout] | [INFO] [stdout] 515 | let mut node: *mut libc::c_void = [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/main.rs:517:9 [INFO] [stdout] | [INFO] [stdout] 517 | let mut num_cells: uint32_t = *leaf_node_num_cells(node); [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/main.rs:522:28 [INFO] [stdout] | [INFO] [stdout] 522 | pub unsafe fn cursor_value(mut cursor: *mut Cursor) [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/main.rs:524:9 [INFO] [stdout] | [INFO] [stdout] 524 | let mut page_num: uint32_t = (*cursor).page_num; [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/main.rs:525:9 [INFO] [stdout] | [INFO] [stdout] 525 | let mut page: *mut libc::c_void = [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/main.rs:530:30 [INFO] [stdout] | [INFO] [stdout] 530 | pub unsafe fn cursor_advance(mut cursor: *mut Cursor) { [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/main.rs:531:9 [INFO] [stdout] | [INFO] [stdout] 531 | let mut page_num: uint32_t = (*cursor).page_num; [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/main.rs:532:9 [INFO] [stdout] | [INFO] [stdout] 532 | let mut node: *mut libc::c_void = [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/main.rs:540:13 [INFO] [stdout] | [INFO] [stdout] 540 | let mut next_page_num: uint32_t = *leaf_node_next_leaf(node); [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/main.rs:772:35 [INFO] [stdout] | [INFO] [stdout] 772 | pub unsafe fn get_unused_page_num(mut pager: *mut Pager) [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/main.rs:862:40 [INFO] [stdout] | [INFO] [stdout] 862 | pub unsafe fn update_internal_node_key(mut node: *mut libc::c_void, [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/main.rs:454:40 [INFO] [stdout] | [INFO] [stdout] 454 | pub unsafe fn internal_node_find_child(mut node: *mut libc::c_void, [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/main.rs:863:51 [INFO] [stdout] | [INFO] [stdout] 863 | ... mut old_key: uint32_t, [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/main.rs:455:51 [INFO] [stdout] | [INFO] [stdout] 455 | ... mut key: uint32_t) [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/main.rs:864:51 [INFO] [stdout] | [INFO] [stdout] 864 | ... mut new_key: uint32_t) { [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/main.rs:865:9 [INFO] [stdout] | [INFO] [stdout] 865 | let mut old_child_index: uint32_t = [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/main.rs:461:9 [INFO] [stdout] | [INFO] [stdout] 461 | let mut num_keys: uint32_t = *internal_node_num_keys(node); [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/main.rs:467:13 [INFO] [stdout] | [INFO] [stdout] 467 | let mut index: uint32_t = [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/main.rs:470:13 [INFO] [stdout] | [INFO] [stdout] 470 | let mut key_to_right: uint32_t = *internal_node_key(node, index); [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/main.rs:480:34 [INFO] [stdout] | [INFO] [stdout] 480 | pub unsafe fn internal_node_find(mut table: *mut Table, [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/main.rs:481:45 [INFO] [stdout] | [INFO] [stdout] 481 | ... mut page_num: uint32_t, [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/main.rs:482:45 [INFO] [stdout] | [INFO] [stdout] 482 | ... mut key: uint32_t) [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/main.rs:484:9 [INFO] [stdout] | [INFO] [stdout] 484 | let mut node: *mut libc::c_void = get_page((*table).pager, page_num); [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/main.rs:485:9 [INFO] [stdout] | [INFO] [stdout] 485 | let mut child_index: uint32_t = internal_node_find_child(node, key); [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/main.rs:486:9 [INFO] [stdout] | [INFO] [stdout] 486 | let mut child_num: uint32_t = *internal_node_child(node, child_index); [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/main.rs:487:9 [INFO] [stdout] | [INFO] [stdout] 487 | let mut child: *mut libc::c_void = get_page((*table).pager, child_num); [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/main.rs:501:26 [INFO] [stdout] | [INFO] [stdout] 501 | pub unsafe fn table_find(mut table: *mut Table, mut key: uint32_t) [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/main.rs:501:49 [INFO] [stdout] | [INFO] [stdout] 501 | pub unsafe fn table_find(mut table: *mut Table, mut key: uint32_t) [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/main.rs:1001:33 [INFO] [stdout] | [INFO] [stdout] 1001 | pub unsafe fn execute_statement(mut statement: *mut Statement, [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/main.rs:503:9 [INFO] [stdout] | [INFO] [stdout] 503 | let mut root_page_num: uint32_t = (*table).root_page_num; [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/main.rs:504:9 [INFO] [stdout] | [INFO] [stdout] 504 | let mut root_node: *mut libc::c_void = [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/main.rs:512:27 [INFO] [stdout] | [INFO] [stdout] 512 | pub unsafe fn table_start(mut table: *mut Table) -> *mut Cursor { [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/main.rs:1002:44 [INFO] [stdout] | [INFO] [stdout] 1002 | ... mut table: *mut Table) [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/main.rs:513:9 [INFO] [stdout] | [INFO] [stdout] 513 | let mut cursor: *mut Cursor = [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `statement.type_0` which is behind a raw pointer [INFO] [stdout] --> src/main.rs:1004:11 [INFO] [stdout] | [INFO] [stdout] 1004 | match (*statement).type_0 as libc::c_uint { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ move occurs because `statement.type_0` has type `StatementType`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: if `StatementType` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/main.rs:34:1 [INFO] [stdout] | [INFO] [stdout] 34 | pub enum StatementType { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ consider implementing `Clone` for this type [INFO] [stdout] ... [INFO] [stdout] 1004 | match (*statement).type_0 as libc::c_uint { [INFO] [stdout] | ------------------- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:515:9 [INFO] [stdout] | [INFO] [stdout] 515 | let mut node: *mut libc::c_void = [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/main.rs:517:9 [INFO] [stdout] | [INFO] [stdout] 517 | let mut num_cells: uint32_t = *leaf_node_num_cells(node); [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/main.rs:522:28 [INFO] [stdout] | [INFO] [stdout] 522 | pub unsafe fn cursor_value(mut cursor: *mut Cursor) [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/main.rs:524:9 [INFO] [stdout] | [INFO] [stdout] 524 | let mut page_num: uint32_t = (*cursor).page_num; [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/main.rs:525:9 [INFO] [stdout] | [INFO] [stdout] 525 | let mut page: *mut libc::c_void = [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/main.rs:530:30 [INFO] [stdout] | [INFO] [stdout] 530 | pub unsafe fn cursor_advance(mut cursor: *mut Cursor) { [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/main.rs:531:9 [INFO] [stdout] | [INFO] [stdout] 531 | let mut page_num: uint32_t = (*cursor).page_num; [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/main.rs:532:9 [INFO] [stdout] | [INFO] [stdout] 532 | let mut node: *mut libc::c_void = [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/main.rs:540:13 [INFO] [stdout] | [INFO] [stdout] 540 | let mut next_page_num: uint32_t = *leaf_node_next_leaf(node); [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/main.rs:772:35 [INFO] [stdout] | [INFO] [stdout] 772 | pub unsafe fn get_unused_page_num(mut pager: *mut Pager) [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/main.rs:862:40 [INFO] [stdout] | [INFO] [stdout] 862 | pub unsafe fn update_internal_node_key(mut node: *mut libc::c_void, [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/main.rs:863:51 [INFO] [stdout] | [INFO] [stdout] 863 | ... mut old_key: uint32_t, [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/main.rs:864:51 [INFO] [stdout] | [INFO] [stdout] 864 | ... mut new_key: uint32_t) { [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/main.rs:865:9 [INFO] [stdout] | [INFO] [stdout] 865 | let mut old_child_index: uint32_t = [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/main.rs:1001:33 [INFO] [stdout] | [INFO] [stdout] 1001 | pub unsafe fn execute_statement(mut statement: *mut Statement, [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/main.rs:1002:44 [INFO] [stdout] | [INFO] [stdout] 1002 | ... mut table: *mut Table) [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `statement.type_0` which is behind a raw pointer [INFO] [stdout] --> src/main.rs:1004:11 [INFO] [stdout] | [INFO] [stdout] 1004 | match (*statement).type_0 as libc::c_uint { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ move occurs because `statement.type_0` has type `StatementType`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: if `StatementType` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/main.rs:34:1 [INFO] [stdout] | [INFO] [stdout] 34 | pub enum StatementType { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ consider implementing `Clone` for this type [INFO] [stdout] ... [INFO] [stdout] 1004 | match (*statement).type_0 as libc::c_uint { [INFO] [stdout] | ------------------- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 121 previous errors; 79 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0412, E0423, E0425, E0428, E0507. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 121 previous errors; 79 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0412, E0423, E0425, E0428, E0507. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `bizdb` (bin "bizdb") due to 122 previous errors; 79 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `bizdb` (bin "bizdb" test) due to 122 previous errors; 79 warnings emitted [INFO] running `Command { std: "docker" "inspect" "018b6062826d15c7e668912bee0335c89a8b09755c71449e8ec2125c5f52267e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "018b6062826d15c7e668912bee0335c89a8b09755c71449e8ec2125c5f52267e", kill_on_drop: false }` [INFO] [stdout] 018b6062826d15c7e668912bee0335c89a8b09755c71449e8ec2125c5f52267e