[INFO] cloning repository https://github.com/Lucien950/SM213-C-Compiler [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Lucien950/SM213-C-Compiler" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLucien950%2FSM213-C-Compiler", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLucien950%2FSM213-C-Compiler'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 198d404afabb4922e04a071bc4a5e8d067ba1c89 [INFO] checking Lucien950/SM213-C-Compiler against try#2c4e58eac5a232e49065e517c1cf50b2715ccf85 for pr-140283 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLucien950%2FSM213-C-Compiler" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Lucien950/SM213-C-Compiler [INFO] finished tweaking git repo https://github.com/Lucien950/SM213-C-Compiler [INFO] tweaked toml for git repo https://github.com/Lucien950/SM213-C-Compiler written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Lucien950/SM213-C-Compiler on toolchain 2c4e58eac5a232e49065e517c1cf50b2715ccf85 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2c4e58eac5a232e49065e517c1cf50b2715ccf85" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2c4e58eac5a232e49065e517c1cf50b2715ccf85" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 24 packages to latest compatible versions [INFO] [stderr] Adding llvm-sys v170.2.0 (available: v211.0.0) [INFO] [stderr] Adding rand v0.8.5 (available: v0.9.2) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2c4e58eac5a232e49065e517c1cf50b2715ccf85" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rustc_lexer v0.1.0 [INFO] [stderr] Downloaded llvm-sys v170.2.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2c4e58eac5a232e49065e517c1cf50b2715ccf85" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cf12871c42a205ed55fee143e0c305775b31773b9c93e535e8aee64474cf0258 [INFO] running `Command { std: "docker" "start" "-a" "cf12871c42a205ed55fee143e0c305775b31773b9c93e535e8aee64474cf0258", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cf12871c42a205ed55fee143e0c305775b31773b9c93e535e8aee64474cf0258", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cf12871c42a205ed55fee143e0c305775b31773b9c93e535e8aee64474cf0258", kill_on_drop: false }` [INFO] [stdout] cf12871c42a205ed55fee143e0c305775b31773b9c93e535e8aee64474cf0258 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2c4e58eac5a232e49065e517c1cf50b2715ccf85" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] dd0be32e5a6952572aa5a58b9c4538fc9153237c20f4b0b3b3e0e23a90fe504c [INFO] running `Command { std: "docker" "start" "-a" "dd0be32e5a6952572aa5a58b9c4538fc9153237c20f4b0b3b3e0e23a90fe504c", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.176 [INFO] [stderr] Compiling regex-lite v0.1.7 [INFO] [stderr] Compiling anyhow v1.0.100 [INFO] [stderr] Checking rustc_lexer v0.1.0 [INFO] [stderr] Compiling llvm-sys v170.2.0 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking sm-213-compiler v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0463]: can't find crate for `ansi_term` [INFO] [stdout] --> src/rucc/lexer.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | extern crate ansi_term; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `ansi_term` [INFO] [stdout] --> src/rucc/parser.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | extern crate ansi_term; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `lexer` [INFO] [stdout] --> src/rucc/parser.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use lexer::{Keyword, Lexer, Pos, Symbol, Token, TokenKind}; [INFO] [stdout] | ^^^^^ help: a similar path exists: `super::lexer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `node` [INFO] [stdout] --> src/rucc/parser.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use node; [INFO] [stdout] | ^^^^ no external crate `node` [INFO] [stdout] | [INFO] [stdout] help: consider importing this module instead [INFO] [stdout] | [INFO] [stdout] 2 | use crate::rucc::node; [INFO] [stdout] | +++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `types` [INFO] [stdout] --> src/rucc/parser.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use types::{Sign, StorageClass, Type}; [INFO] [stdout] | ^^^^^ help: a similar path exists: `super::types` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `error` [INFO] [stdout] --> src/rucc/lexer.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use error; [INFO] [stdout] | ^^^^^ no external crate `error` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these modules instead [INFO] [stdout] | [INFO] [stdout] 1 | use std::error; [INFO] [stdout] | +++++ [INFO] [stdout] 1 | use llvm_sys::error; [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `node` [INFO] [stdout] --> src/rucc/lexer.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use node::Bits; [INFO] [stdout] | ^^^^ help: a similar path exists: `super::node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `parser` [INFO] [stdout] --> src/rucc/lexer.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use parser; [INFO] [stdout] | ^^^^^^ no external crate `parser` [INFO] [stdout] | [INFO] [stdout] help: consider importing this module instead [INFO] [stdout] | [INFO] [stdout] 3 | use crate::rucc::parser; [INFO] [stdout] | +++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `lexer` [INFO] [stdout] --> src/rucc/node.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use lexer::Pos; [INFO] [stdout] | ^^^^^ help: a similar path exists: `super::lexer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `parser` [INFO] [stdout] --> src/rucc/node.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use parser::{Error, ParseR}; [INFO] [stdout] | ^^^^^^ help: a similar path exists: `super::parser` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `types` [INFO] [stdout] --> src/rucc/node.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use types::{StorageClass, Type}; [INFO] [stdout] | ^^^^^ help: a similar path exists: `super::types` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `node` [INFO] [stdout] --> src/rucc/types.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use node::{ASTKind, AST}; [INFO] [stdout] | ^^^^ help: a similar path exists: `super::node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `ansi_term` [INFO] [stdout] --> src/rucc/lexer.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | extern crate ansi_term; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `ansi_term` [INFO] [stdout] --> src/rucc/parser.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | extern crate ansi_term; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::rand::Rng` [INFO] [stdout] --> src/rucc/parser.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use self::rand::Rng; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `rucc::codegen::llvm::core::LLVMConstArray`: LLVMConstArray is deprecated in favor of the API accurate LLVMConstArray2 [INFO] [stdout] --> src/rucc/codegen.rs:502:13 [INFO] [stdout] | [INFO] [stdout] 502 | LLVMConstArray( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `rucc::codegen::llvm::core::LLVMConstArray`: LLVMConstArray is deprecated in favor of the API accurate LLVMConstArray2 [INFO] [stdout] --> src/rucc/codegen.rs:531:13 [INFO] [stdout] | [INFO] [stdout] 531 | LLVMConstArray(llvm_elem_ty, elems.as_mut_slice().as_mut_ptr(), len as u32), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `rucc::codegen::llvm::core::LLVMArrayType`: LLVMArrayType is deprecated in favor of the API accurate LLVMArrayType2 [INFO] [stdout] --> src/rucc/codegen.rs:1937:17 [INFO] [stdout] | [INFO] [stdout] 1937 | LLVMArrayType(self.type_to_llvmty(&**elemty), *size as u32) [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LLVMBuildCall` in this scope [INFO] [stdout] --> src/rucc/codegen.rs:571:9 [INFO] [stdout] | [INFO] [stdout] 571 | LLVMBuildCall( [INFO] [stdout] | ^^^^^^^^^^^^^ help: a function with a similar name exists: `LLVMBuildCall2` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/llvm-sys-170.2.0/src/core.rs:1871:5 [INFO] [stdout] | [INFO] [stdout] 1871 | / pub fn LLVMBuildCall2( [INFO] [stdout] 1872 | | arg1: LLVMBuilderRef, [INFO] [stdout] 1873 | | arg2: LLVMTypeRef, [INFO] [stdout] 1874 | | Fn: LLVMValueRef, [INFO] [stdout] ... | [INFO] [stdout] 1877 | | Name: *const ::libc::c_char, [INFO] [stdout] 1878 | | ) -> LLVMValueRef; [INFO] [stdout] | |______________________- similarly named function `LLVMBuildCall2` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LLVMBuildGEP` in this scope [INFO] [stdout] --> src/rucc/codegen.rs:600:24 [INFO] [stdout] | [INFO] [stdout] 600 | let load = LLVMBuildGEP( [INFO] [stdout] | ^^^^^^^^^^^^ help: a function with a similar name exists: `LLVMBuildGEP2` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/llvm-sys-170.2.0/src/core.rs:1671:5 [INFO] [stdout] | [INFO] [stdout] 1671 | / pub fn LLVMBuildGEP2( [INFO] [stdout] 1672 | | B: LLVMBuilderRef, [INFO] [stdout] 1673 | | Ty: LLVMTypeRef, [INFO] [stdout] 1674 | | Pointer: LLVMValueRef, [INFO] [stdout] ... | [INFO] [stdout] 1677 | | Name: *const ::libc::c_char, [INFO] [stdout] 1678 | | ) -> LLVMValueRef; [INFO] [stdout] | |______________________- similarly named function `LLVMBuildGEP2` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LLVMBuildGEP` in this scope [INFO] [stdout] --> src/rucc/codegen.rs:612:23 [INFO] [stdout] | [INFO] [stdout] 612 | let idx = LLVMBuildGEP( [INFO] [stdout] | ^^^^^^^^^^^^ help: a function with a similar name exists: `LLVMBuildGEP2` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/llvm-sys-170.2.0/src/core.rs:1671:5 [INFO] [stdout] | [INFO] [stdout] 1671 | / pub fn LLVMBuildGEP2( [INFO] [stdout] 1672 | | B: LLVMBuilderRef, [INFO] [stdout] 1673 | | Ty: LLVMTypeRef, [INFO] [stdout] 1674 | | Pointer: LLVMValueRef, [INFO] [stdout] ... | [INFO] [stdout] 1677 | | Name: *const ::libc::c_char, [INFO] [stdout] 1678 | | ) -> LLVMValueRef; [INFO] [stdout] | |______________________- similarly named function `LLVMBuildGEP2` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LLVMBuildStructGEP` in this scope [INFO] [stdout] --> src/rucc/codegen.rs:639:23 [INFO] [stdout] | [INFO] [stdout] 639 | let idx = LLVMBuildStructGEP( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `LLVMBuildStructGEP2` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/llvm-sys-170.2.0/src/core.rs:1687:5 [INFO] [stdout] | [INFO] [stdout] 1687 | / pub fn LLVMBuildStructGEP2( [INFO] [stdout] 1688 | | B: LLVMBuilderRef, [INFO] [stdout] 1689 | | Ty: LLVMTypeRef, [INFO] [stdout] 1690 | | Pointer: LLVMValueRef, [INFO] [stdout] 1691 | | Idx: ::libc::c_uint, [INFO] [stdout] 1692 | | Name: *const ::libc::c_char, [INFO] [stdout] 1693 | | ) -> LLVMValueRef; [INFO] [stdout] | |______________________- similarly named function `LLVMBuildStructGEP2` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `gen_ascii_chars` found for struct `ThreadRng` in the current scope [INFO] [stdout] --> src/rucc/codegen.rs:660:53 [INFO] [stdout] | [INFO] [stdout] 660 | let randid: String = rand::thread_rng().gen_ascii_chars().take(8).collect(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ method not found in `ThreadRng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LLVMBuildLoad` in this scope [INFO] [stdout] --> src/rucc/codegen.rs:1329:13 [INFO] [stdout] | [INFO] [stdout] 1329 | LLVMBuildLoad(self.builder, dst, "load\0".as_ptr() as *const i8), [INFO] [stdout] | ^^^^^^^^^^^^^ help: a function with a similar name exists: `LLVMBuildLoad2` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/llvm-sys-170.2.0/src/core.rs:1660:5 [INFO] [stdout] | [INFO] [stdout] 1660 | / pub fn LLVMBuildLoad2( [INFO] [stdout] 1661 | | arg1: LLVMBuilderRef, [INFO] [stdout] 1662 | | Ty: LLVMTypeRef, [INFO] [stdout] 1663 | | PointerVal: LLVMValueRef, [INFO] [stdout] 1664 | | Name: *const ::libc::c_char, [INFO] [stdout] 1665 | | ) -> LLVMValueRef; [INFO] [stdout] | |______________________- similarly named function `LLVMBuildLoad2` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LLVMBuildGEP` in this scope [INFO] [stdout] --> src/rucc/codegen.rs:1434:13 [INFO] [stdout] | [INFO] [stdout] 1434 | LLVMBuildGEP( [INFO] [stdout] | ^^^^^^^^^^^^ help: a function with a similar name exists: `LLVMBuildGEP2` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/llvm-sys-170.2.0/src/core.rs:1671:5 [INFO] [stdout] | [INFO] [stdout] 1671 | / pub fn LLVMBuildGEP2( [INFO] [stdout] 1672 | | B: LLVMBuilderRef, [INFO] [stdout] 1673 | | Ty: LLVMTypeRef, [INFO] [stdout] 1674 | | Pointer: LLVMValueRef, [INFO] [stdout] ... | [INFO] [stdout] 1677 | | Name: *const ::libc::c_char, [INFO] [stdout] 1678 | | ) -> LLVMValueRef; [INFO] [stdout] | |______________________- similarly named function `LLVMBuildGEP2` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LLVMBuildStructGEP` in this scope [INFO] [stdout] --> src/rucc/codegen.rs:1602:17 [INFO] [stdout] | [INFO] [stdout] 1602 | LLVMBuildStructGEP( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `LLVMBuildStructGEP2` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/llvm-sys-170.2.0/src/core.rs:1687:5 [INFO] [stdout] | [INFO] [stdout] 1687 | / pub fn LLVMBuildStructGEP2( [INFO] [stdout] 1688 | | B: LLVMBuilderRef, [INFO] [stdout] 1689 | | Ty: LLVMTypeRef, [INFO] [stdout] 1690 | | Pointer: LLVMValueRef, [INFO] [stdout] 1691 | | Idx: ::libc::c_uint, [INFO] [stdout] 1692 | | Name: *const ::libc::c_char, [INFO] [stdout] 1693 | | ) -> LLVMValueRef; [INFO] [stdout] | |______________________- similarly named function `LLVMBuildStructGEP2` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LLVMBuildGEP` in this scope [INFO] [stdout] --> src/rucc/codegen.rs:1674:25 [INFO] [stdout] | [INFO] [stdout] 1674 | LLVMBuildGEP( [INFO] [stdout] | ^^^^^^^^^^^^ help: a function with a similar name exists: `LLVMBuildGEP2` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/llvm-sys-170.2.0/src/core.rs:1671:5 [INFO] [stdout] | [INFO] [stdout] 1671 | / pub fn LLVMBuildGEP2( [INFO] [stdout] 1672 | | B: LLVMBuilderRef, [INFO] [stdout] 1673 | | Ty: LLVMTypeRef, [INFO] [stdout] 1674 | | Pointer: LLVMValueRef, [INFO] [stdout] ... | [INFO] [stdout] 1677 | | Name: *const ::libc::c_char, [INFO] [stdout] 1678 | | ) -> LLVMValueRef; [INFO] [stdout] | |______________________- similarly named function `LLVMBuildGEP2` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LLVMBuildLoad` in this scope [INFO] [stdout] --> src/rucc/codegen.rs:1691:25 [INFO] [stdout] | [INFO] [stdout] 1691 | LLVMBuildLoad(self.builder, val, "var\0".as_ptr() as *const i8), [INFO] [stdout] | ^^^^^^^^^^^^^ help: a function with a similar name exists: `LLVMBuildLoad2` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/llvm-sys-170.2.0/src/core.rs:1660:5 [INFO] [stdout] | [INFO] [stdout] 1660 | / pub fn LLVMBuildLoad2( [INFO] [stdout] 1661 | | arg1: LLVMBuilderRef, [INFO] [stdout] 1662 | | Ty: LLVMTypeRef, [INFO] [stdout] 1663 | | PointerVal: LLVMValueRef, [INFO] [stdout] 1664 | | Name: *const ::libc::c_char, [INFO] [stdout] 1665 | | ) -> LLVMValueRef; [INFO] [stdout] | |______________________- similarly named function `LLVMBuildLoad2` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LLVMBuildLoad` in this scope [INFO] [stdout] --> src/rucc/codegen.rs:1758:17 [INFO] [stdout] | [INFO] [stdout] 1758 | LLVMBuildLoad(self.builder, func.llvm_val, "load\0".as_ptr() as *const i8), [INFO] [stdout] | ^^^^^^^^^^^^^ help: a function with a similar name exists: `LLVMBuildLoad2` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/llvm-sys-170.2.0/src/core.rs:1660:5 [INFO] [stdout] | [INFO] [stdout] 1660 | / pub fn LLVMBuildLoad2( [INFO] [stdout] 1661 | | arg1: LLVMBuilderRef, [INFO] [stdout] 1662 | | Ty: LLVMTypeRef, [INFO] [stdout] 1663 | | PointerVal: LLVMValueRef, [INFO] [stdout] 1664 | | Name: *const ::libc::c_char, [INFO] [stdout] 1665 | | ) -> LLVMValueRef; [INFO] [stdout] | |______________________- similarly named function `LLVMBuildLoad2` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LLVMBuildCall` in this scope [INFO] [stdout] --> src/rucc/codegen.rs:1793:13 [INFO] [stdout] | [INFO] [stdout] 1793 | LLVMBuildCall( [INFO] [stdout] | ^^^^^^^^^^^^^ help: a function with a similar name exists: `LLVMBuildCall2` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/llvm-sys-170.2.0/src/core.rs:1871:5 [INFO] [stdout] | [INFO] [stdout] 1871 | / pub fn LLVMBuildCall2( [INFO] [stdout] 1872 | | arg1: LLVMBuilderRef, [INFO] [stdout] 1873 | | arg2: LLVMTypeRef, [INFO] [stdout] 1874 | | Fn: LLVMValueRef, [INFO] [stdout] ... | [INFO] [stdout] 1877 | | Name: *const ::libc::c_char, [INFO] [stdout] 1878 | | ) -> LLVMValueRef; [INFO] [stdout] | |______________________- similarly named function `LLVMBuildCall2` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `lexer` [INFO] [stdout] --> src/rucc/parser.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use lexer::{Keyword, Lexer, Pos, Symbol, Token, TokenKind}; [INFO] [stdout] | ^^^^^ help: a similar path exists: `super::lexer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `node` [INFO] [stdout] --> src/rucc/parser.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use node; [INFO] [stdout] | ^^^^ no external crate `node` [INFO] [stdout] | [INFO] [stdout] help: consider importing this module instead [INFO] [stdout] | [INFO] [stdout] 2 | use crate::rucc::node; [INFO] [stdout] | +++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `types` [INFO] [stdout] --> src/rucc/parser.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use types::{Sign, StorageClass, Type}; [INFO] [stdout] | ^^^^^ help: a similar path exists: `super::types` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `error` [INFO] [stdout] --> src/rucc/lexer.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use error; [INFO] [stdout] | ^^^^^ no external crate `error` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these modules instead [INFO] [stdout] | [INFO] [stdout] 1 | use std::error; [INFO] [stdout] | +++++ [INFO] [stdout] 1 | use llvm_sys::error; [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `node` [INFO] [stdout] --> src/rucc/lexer.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use node::Bits; [INFO] [stdout] | ^^^^ help: a similar path exists: `super::node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `parser` [INFO] [stdout] --> src/rucc/lexer.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use parser; [INFO] [stdout] | ^^^^^^ no external crate `parser` [INFO] [stdout] | [INFO] [stdout] help: consider importing this module instead [INFO] [stdout] | [INFO] [stdout] 3 | use crate::rucc::parser; [INFO] [stdout] | +++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `lexer` [INFO] [stdout] --> src/rucc/node.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use lexer::Pos; [INFO] [stdout] | ^^^^^ help: a similar path exists: `super::lexer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `parser` [INFO] [stdout] --> src/rucc/node.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use parser::{Error, ParseR}; [INFO] [stdout] | ^^^^^^ help: a similar path exists: `super::parser` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `types` [INFO] [stdout] --> src/rucc/node.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use types::{StorageClass, Type}; [INFO] [stdout] | ^^^^^ help: a similar path exists: `super::types` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `node` [INFO] [stdout] --> src/rucc/types.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use node::{ASTKind, AST}; [INFO] [stdout] | ^^^^ help: a similar path exists: `super::node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::rand::Rng` [INFO] [stdout] --> src/rucc/parser.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use self::rand::Rng; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `rucc::codegen::llvm::core::LLVMConstArray`: LLVMConstArray is deprecated in favor of the API accurate LLVMConstArray2 [INFO] [stdout] --> src/rucc/codegen.rs:502:13 [INFO] [stdout] | [INFO] [stdout] 502 | LLVMConstArray( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `rucc::codegen::llvm::core::LLVMConstArray`: LLVMConstArray is deprecated in favor of the API accurate LLVMConstArray2 [INFO] [stdout] --> src/rucc/codegen.rs:531:13 [INFO] [stdout] | [INFO] [stdout] 531 | LLVMConstArray(llvm_elem_ty, elems.as_mut_slice().as_mut_ptr(), len as u32), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `rucc::codegen::llvm::core::LLVMArrayType`: LLVMArrayType is deprecated in favor of the API accurate LLVMArrayType2 [INFO] [stdout] --> src/rucc/codegen.rs:1937:17 [INFO] [stdout] | [INFO] [stdout] 1937 | LLVMArrayType(self.type_to_llvmty(&**elemty), *size as u32) [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LLVMBuildCall` in this scope [INFO] [stdout] --> src/rucc/codegen.rs:571:9 [INFO] [stdout] | [INFO] [stdout] 571 | LLVMBuildCall( [INFO] [stdout] | ^^^^^^^^^^^^^ help: a function with a similar name exists: `LLVMBuildCall2` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/llvm-sys-170.2.0/src/core.rs:1871:5 [INFO] [stdout] | [INFO] [stdout] 1871 | / pub fn LLVMBuildCall2( [INFO] [stdout] 1872 | | arg1: LLVMBuilderRef, [INFO] [stdout] 1873 | | arg2: LLVMTypeRef, [INFO] [stdout] 1874 | | Fn: LLVMValueRef, [INFO] [stdout] ... | [INFO] [stdout] 1877 | | Name: *const ::libc::c_char, [INFO] [stdout] 1878 | | ) -> LLVMValueRef; [INFO] [stdout] | |______________________- similarly named function `LLVMBuildCall2` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LLVMBuildGEP` in this scope [INFO] [stdout] --> src/rucc/codegen.rs:600:24 [INFO] [stdout] | [INFO] [stdout] 600 | let load = LLVMBuildGEP( [INFO] [stdout] | ^^^^^^^^^^^^ help: a function with a similar name exists: `LLVMBuildGEP2` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/llvm-sys-170.2.0/src/core.rs:1671:5 [INFO] [stdout] | [INFO] [stdout] 1671 | / pub fn LLVMBuildGEP2( [INFO] [stdout] 1672 | | B: LLVMBuilderRef, [INFO] [stdout] 1673 | | Ty: LLVMTypeRef, [INFO] [stdout] 1674 | | Pointer: LLVMValueRef, [INFO] [stdout] ... | [INFO] [stdout] 1677 | | Name: *const ::libc::c_char, [INFO] [stdout] 1678 | | ) -> LLVMValueRef; [INFO] [stdout] | |______________________- similarly named function `LLVMBuildGEP2` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LLVMBuildGEP` in this scope [INFO] [stdout] --> src/rucc/codegen.rs:612:23 [INFO] [stdout] | [INFO] [stdout] 612 | let idx = LLVMBuildGEP( [INFO] [stdout] | ^^^^^^^^^^^^ help: a function with a similar name exists: `LLVMBuildGEP2` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/llvm-sys-170.2.0/src/core.rs:1671:5 [INFO] [stdout] | [INFO] [stdout] 1671 | / pub fn LLVMBuildGEP2( [INFO] [stdout] 1672 | | B: LLVMBuilderRef, [INFO] [stdout] 1673 | | Ty: LLVMTypeRef, [INFO] [stdout] 1674 | | Pointer: LLVMValueRef, [INFO] [stdout] ... | [INFO] [stdout] 1677 | | Name: *const ::libc::c_char, [INFO] [stdout] 1678 | | ) -> LLVMValueRef; [INFO] [stdout] | |______________________- similarly named function `LLVMBuildGEP2` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LLVMBuildStructGEP` in this scope [INFO] [stdout] --> src/rucc/codegen.rs:639:23 [INFO] [stdout] | [INFO] [stdout] 639 | let idx = LLVMBuildStructGEP( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `LLVMBuildStructGEP2` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/llvm-sys-170.2.0/src/core.rs:1687:5 [INFO] [stdout] | [INFO] [stdout] 1687 | / pub fn LLVMBuildStructGEP2( [INFO] [stdout] 1688 | | B: LLVMBuilderRef, [INFO] [stdout] 1689 | | Ty: LLVMTypeRef, [INFO] [stdout] 1690 | | Pointer: LLVMValueRef, [INFO] [stdout] 1691 | | Idx: ::libc::c_uint, [INFO] [stdout] 1692 | | Name: *const ::libc::c_char, [INFO] [stdout] 1693 | | ) -> LLVMValueRef; [INFO] [stdout] | |______________________- similarly named function `LLVMBuildStructGEP2` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `gen_ascii_chars` found for struct `ThreadRng` in the current scope [INFO] [stdout] --> src/rucc/codegen.rs:660:53 [INFO] [stdout] | [INFO] [stdout] 660 | let randid: String = rand::thread_rng().gen_ascii_chars().take(8).collect(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ method not found in `ThreadRng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LLVMBuildLoad` in this scope [INFO] [stdout] --> src/rucc/codegen.rs:1329:13 [INFO] [stdout] | [INFO] [stdout] 1329 | LLVMBuildLoad(self.builder, dst, "load\0".as_ptr() as *const i8), [INFO] [stdout] | ^^^^^^^^^^^^^ help: a function with a similar name exists: `LLVMBuildLoad2` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/llvm-sys-170.2.0/src/core.rs:1660:5 [INFO] [stdout] | [INFO] [stdout] 1660 | / pub fn LLVMBuildLoad2( [INFO] [stdout] 1661 | | arg1: LLVMBuilderRef, [INFO] [stdout] 1662 | | Ty: LLVMTypeRef, [INFO] [stdout] 1663 | | PointerVal: LLVMValueRef, [INFO] [stdout] 1664 | | Name: *const ::libc::c_char, [INFO] [stdout] 1665 | | ) -> LLVMValueRef; [INFO] [stdout] | |______________________- similarly named function `LLVMBuildLoad2` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LLVMBuildGEP` in this scope [INFO] [stdout] --> src/rucc/codegen.rs:1434:13 [INFO] [stdout] | [INFO] [stdout] 1434 | LLVMBuildGEP( [INFO] [stdout] | ^^^^^^^^^^^^ help: a function with a similar name exists: `LLVMBuildGEP2` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/llvm-sys-170.2.0/src/core.rs:1671:5 [INFO] [stdout] | [INFO] [stdout] 1671 | / pub fn LLVMBuildGEP2( [INFO] [stdout] 1672 | | B: LLVMBuilderRef, [INFO] [stdout] 1673 | | Ty: LLVMTypeRef, [INFO] [stdout] 1674 | | Pointer: LLVMValueRef, [INFO] [stdout] ... | [INFO] [stdout] 1677 | | Name: *const ::libc::c_char, [INFO] [stdout] 1678 | | ) -> LLVMValueRef; [INFO] [stdout] | |______________________- similarly named function `LLVMBuildGEP2` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LLVMBuildStructGEP` in this scope [INFO] [stdout] --> src/rucc/codegen.rs:1602:17 [INFO] [stdout] | [INFO] [stdout] 1602 | LLVMBuildStructGEP( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `LLVMBuildStructGEP2` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/llvm-sys-170.2.0/src/core.rs:1687:5 [INFO] [stdout] | [INFO] [stdout] 1687 | / pub fn LLVMBuildStructGEP2( [INFO] [stdout] 1688 | | B: LLVMBuilderRef, [INFO] [stdout] 1689 | | Ty: LLVMTypeRef, [INFO] [stdout] 1690 | | Pointer: LLVMValueRef, [INFO] [stdout] 1691 | | Idx: ::libc::c_uint, [INFO] [stdout] 1692 | | Name: *const ::libc::c_char, [INFO] [stdout] 1693 | | ) -> LLVMValueRef; [INFO] [stdout] | |______________________- similarly named function `LLVMBuildStructGEP2` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LLVMBuildGEP` in this scope [INFO] [stdout] --> src/rucc/codegen.rs:1674:25 [INFO] [stdout] | [INFO] [stdout] 1674 | LLVMBuildGEP( [INFO] [stdout] | ^^^^^^^^^^^^ help: a function with a similar name exists: `LLVMBuildGEP2` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/llvm-sys-170.2.0/src/core.rs:1671:5 [INFO] [stdout] | [INFO] [stdout] 1671 | / pub fn LLVMBuildGEP2( [INFO] [stdout] 1672 | | B: LLVMBuilderRef, [INFO] [stdout] 1673 | | Ty: LLVMTypeRef, [INFO] [stdout] 1674 | | Pointer: LLVMValueRef, [INFO] [stdout] ... | [INFO] [stdout] 1677 | | Name: *const ::libc::c_char, [INFO] [stdout] 1678 | | ) -> LLVMValueRef; [INFO] [stdout] | |______________________- similarly named function `LLVMBuildGEP2` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LLVMBuildLoad` in this scope [INFO] [stdout] --> src/rucc/codegen.rs:1691:25 [INFO] [stdout] | [INFO] [stdout] 1691 | LLVMBuildLoad(self.builder, val, "var\0".as_ptr() as *const i8), [INFO] [stdout] | ^^^^^^^^^^^^^ help: a function with a similar name exists: `LLVMBuildLoad2` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/llvm-sys-170.2.0/src/core.rs:1660:5 [INFO] [stdout] | [INFO] [stdout] 1660 | / pub fn LLVMBuildLoad2( [INFO] [stdout] 1661 | | arg1: LLVMBuilderRef, [INFO] [stdout] 1662 | | Ty: LLVMTypeRef, [INFO] [stdout] 1663 | | PointerVal: LLVMValueRef, [INFO] [stdout] 1664 | | Name: *const ::libc::c_char, [INFO] [stdout] 1665 | | ) -> LLVMValueRef; [INFO] [stdout] | |______________________- similarly named function `LLVMBuildLoad2` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LLVMBuildLoad` in this scope [INFO] [stdout] --> src/rucc/codegen.rs:1758:17 [INFO] [stdout] | [INFO] [stdout] 1758 | LLVMBuildLoad(self.builder, func.llvm_val, "load\0".as_ptr() as *const i8), [INFO] [stdout] | ^^^^^^^^^^^^^ help: a function with a similar name exists: `LLVMBuildLoad2` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/llvm-sys-170.2.0/src/core.rs:1660:5 [INFO] [stdout] | [INFO] [stdout] 1660 | / pub fn LLVMBuildLoad2( [INFO] [stdout] 1661 | | arg1: LLVMBuilderRef, [INFO] [stdout] 1662 | | Ty: LLVMTypeRef, [INFO] [stdout] 1663 | | PointerVal: LLVMValueRef, [INFO] [stdout] 1664 | | Name: *const ::libc::c_char, [INFO] [stdout] 1665 | | ) -> LLVMValueRef; [INFO] [stdout] | |______________________- similarly named function `LLVMBuildLoad2` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LLVMBuildCall` in this scope [INFO] [stdout] --> src/rucc/codegen.rs:1793:13 [INFO] [stdout] | [INFO] [stdout] 1793 | LLVMBuildCall( [INFO] [stdout] | ^^^^^^^^^^^^^ help: a function with a similar name exists: `LLVMBuildCall2` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/llvm-sys-170.2.0/src/core.rs:1871:5 [INFO] [stdout] | [INFO] [stdout] 1871 | / pub fn LLVMBuildCall2( [INFO] [stdout] 1872 | | arg1: LLVMBuilderRef, [INFO] [stdout] 1873 | | arg2: LLVMTypeRef, [INFO] [stdout] 1874 | | Fn: LLVMValueRef, [INFO] [stdout] ... | [INFO] [stdout] 1877 | | Name: *const ::libc::c_char, [INFO] [stdout] 1878 | | ) -> LLVMValueRef; [INFO] [stdout] | |______________________- similarly named function `LLVMBuildCall2` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `gen_ascii_chars` found for struct `ThreadRng` in the current scope [INFO] [stdout] --> src/rucc/parser.rs:1068:36 [INFO] [stdout] | [INFO] [stdout] 1068 | rand::thread_rng().gen_ascii_chars().take(8).collect() [INFO] [stdout] | ^^^^^^^^^^^^^^^ method not found in `ThreadRng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/rucc/parser.rs:1077:57 [INFO] [stdout] | [INFO] [stdout] 1077 | hash_map::Entry::Occupied(o) => o.get().clone(), [INFO] [stdout] | ^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/rucc/parser.rs:1080:46 [INFO] [stdout] | [INFO] [stdout] 1080 | Type::Struct(v.key().to_string(), Vec::new()) [INFO] [stdout] | ^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `gen_ascii_chars` found for struct `ThreadRng` in the current scope [INFO] [stdout] --> src/rucc/parser.rs:1068:36 [INFO] [stdout] | [INFO] [stdout] 1068 | rand::thread_rng().gen_ascii_chars().take(8).collect() [INFO] [stdout] | ^^^^^^^^^^^^^^^ method not found in `ThreadRng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/rucc/parser.rs:1077:57 [INFO] [stdout] | [INFO] [stdout] 1077 | hash_map::Entry::Occupied(o) => o.get().clone(), [INFO] [stdout] | ^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/rucc/parser.rs:1080:46 [INFO] [stdout] | [INFO] [stdout] 1080 | Type::Struct(v.key().to_string(), Vec::new()) [INFO] [stdout] | ^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/main.rs:6:46 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | --------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 6 | let name = fs::read_to_string("./test.c")?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 3 ~ fn main() -> Result<(), Box> { [INFO] [stdout] 4 | use std::fs; [INFO] [stdout] ... [INFO] [stdout] 9 | let ast = parser.parse(); [INFO] [stdout] 10+ Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `parse` found for struct `Parser<'a>` in the current scope [INFO] [stdout] --> src/main.rs:9:22 [INFO] [stdout] | [INFO] [stdout] 9 | let ast = parser.parse(); [INFO] [stdout] | ^^^^^ method not found in `Parser<'_>` [INFO] [stdout] | [INFO] [stdout] ::: src/rucc/parser.rs:51:1 [INFO] [stdout] | [INFO] [stdout] 51 | pub struct Parser<'a> { [INFO] [stdout] | --------------------- method `parse` not found for this struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::rand::Rng` [INFO] [stdout] --> src/rucc/codegen.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use self::rand::Rng; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/main.rs:6:46 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | --------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 6 | let name = fs::read_to_string("./test.c")?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 3 ~ fn main() -> Result<(), Box> { [INFO] [stdout] 4 | use std::fs; [INFO] [stdout] ... [INFO] [stdout] 9 | let ast = parser.parse(); [INFO] [stdout] 10+ Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `parse` found for struct `Parser<'a>` in the current scope [INFO] [stdout] --> src/main.rs:9:22 [INFO] [stdout] | [INFO] [stdout] 9 | let ast = parser.parse(); [INFO] [stdout] | ^^^^^ method not found in `Parser<'_>` [INFO] [stdout] | [INFO] [stdout] ::: src/rucc/parser.rs:51:1 [INFO] [stdout] | [INFO] [stdout] 51 | pub struct Parser<'a> { [INFO] [stdout] | --------------------- method `parse` not found for this struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::rand::Rng` [INFO] [stdout] --> src/rucc/codegen.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use self::rand::Rng; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0282, E0425, E0432, E0463, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `sm-213-compiler` (bin "sm-213-compiler" test) due to 29 previous errors; 5 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] Some errors have detailed explanations: E0277, E0282, E0425, E0432, E0463, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `sm-213-compiler` (bin "sm-213-compiler") due to 29 previous errors; 5 warnings emitted [INFO] running `Command { std: "docker" "inspect" "dd0be32e5a6952572aa5a58b9c4538fc9153237c20f4b0b3b3e0e23a90fe504c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dd0be32e5a6952572aa5a58b9c4538fc9153237c20f4b0b3b3e0e23a90fe504c", kill_on_drop: false }` [INFO] [stdout] dd0be32e5a6952572aa5a58b9c4538fc9153237c20f4b0b3b3e0e23a90fe504c