[INFO] cloning repository https://github.com/terrarier2111/TeflonLang [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/terrarier2111/TeflonLang" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fterrarier2111%2FTeflonLang", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fterrarier2111%2FTeflonLang'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] bc4a0cdc11d024b9ecc3cbcaec3b60858534e1ab [INFO] testing terrarier2111/TeflonLang against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fterrarier2111%2FTeflonLang" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/terrarier2111/TeflonLang [INFO] finished tweaking git repo https://github.com/terrarier2111/TeflonLang [INFO] tweaked toml for git repo https://github.com/terrarier2111/TeflonLang written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/terrarier2111/TeflonLang on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/terrarier2111/TeflonLang 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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded anyhow v1.0.90 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b333d5f76bbdf5c4e3366f063a643b9800451bb08ca2498e35ab913ded1cc579 [INFO] running `Command { std: "docker" "start" "-a" "b333d5f76bbdf5c4e3366f063a643b9800451bb08ca2498e35ab913ded1cc579", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b333d5f76bbdf5c4e3366f063a643b9800451bb08ca2498e35ab913ded1cc579", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b333d5f76bbdf5c4e3366f063a643b9800451bb08ca2498e35ab913ded1cc579", kill_on_drop: false }` [INFO] [stdout] b333d5f76bbdf5c4e3366f063a643b9800451bb08ca2498e35ab913ded1cc579 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 91fb2ed45a12afbbc932d448210cc9c166c67c0d6f65a91f3f4bbeba2f333722 [INFO] running `Command { std: "docker" "start" "-a" "91fb2ed45a12afbbc932d448210cc9c166c67c0d6f65a91f3f4bbeba2f333722", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling anyhow v1.0.90 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling colored v2.0.0 [INFO] [stderr] Compiling TefflonLang v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0425]: cannot find value `v` in this scope [INFO] [stdout] --> src/traitsolver/mod.rs:71:65 [INFO] [stdout] | [INFO] [stdout] 71 | self.ty_dependencies.insert(tait.kind.simple_ty_name(), v); [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lexer::token::Token` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::lexer::token::Token; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ItemKind` and `StmtKind` [INFO] [stdout] --> src/main.rs:14:33 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::parser::ast::{Crate, ItemKind, StmtKind}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DEFAULT_PATH` and `Ty` [INFO] [stdout] --> src/main.rs:15:19 [INFO] [stdout] | [INFO] [stdout] 15 | use crate::tyck::{DEFAULT_PATH, Ty, tyck_item}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/diagnostics/builder.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem` [INFO] [stdout] --> src/diagnostics/builder.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::mem; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Arguments` [INFO] [stdout] --> src/diagnostics/span.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fmt::{Arguments, Debug, Display, Formatter, Write}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around pattern [INFO] [stdout] --> src/lexer/mod.rs:73:13 [INFO] [stdout] | [INFO] [stdout] 73 | (('a'..='z') | ('A'..='Z') | '_') => { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 73 - (('a'..='z') | ('A'..='Z') | '_') => { [INFO] [stdout] 73 + ('a'..='z') | ('A'..='Z') | '_' => { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around pattern [INFO] [stdout] --> src/lexer/mod.rs:195:13 [INFO] [stdout] | [INFO] [stdout] 195 | ('\r' | '\n') => {} // this is a noop [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 195 - ('\r' | '\n') => {} // this is a noop [INFO] [stdout] 195 + '\r' | '\n' => {} // this is a noop [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::diagnostics::span::Span` [INFO] [stdout] --> src/parser/ast.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::diagnostics::span::Span; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Adt`, `DEFAULT_PATH`, and `EMPTY` [INFO] [stdout] --> src/parser/ast.rs:6:19 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::tyck::{Adt, DEFAULT_PATH, EMPTY, Environment, TyCtx}; [INFO] [stdout] | ^^^ ^^^^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lexer` [INFO] [stdout] --> src/parser/parser.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::lexer; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Stmt` [INFO] [stdout] --> src/parser/parser.rs:9:83 [INFO] [stdout] | [INFO] [stdout] 9 | LDecAssign, Lifetime, LocalAssign, NumberType, OwnedTy, RefTy, StaticValNode, Stmt, StmtKind, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/parser/parser.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/traitsolver/mod.rs:124:71 [INFO] [stdout] | [INFO] [stdout] 124 | if let Some(constraints) = ctx.get(&val.name) { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 125 | | assert!(val.generics.is_empty()); [INFO] [stdout] 126 | | [INFO] [stdout] 127 | | } [INFO] [stdout] | |_________________________^ expected `bool`, found `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> src/diagnostics/span.rs:2:54 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fmt::{Arguments, Debug, Display, Formatter, Write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/diagnostics/builder.rs:95:27 [INFO] [stdout] | [INFO] [stdout] 95 | pub fn build(/*mut */ mut self) -> &'sup mut DiagnosticBuilder { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lexer/mod.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let mut ret = Arc::new(InsertOnlyConcVec::new(files.len())); [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/lexer/mod.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let mut diagnostics_builder = DiagnosticBuilder::new(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount` [INFO] [stdout] --> src/parser/ast.rs:313:29 [INFO] [stdout] | [INFO] [stdout] 313 | if let Some(amount) = &array.amount { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount` [INFO] [stdout] --> src/parser/ast.rs:401:21 [INFO] [stdout] | [INFO] [stdout] 401 | if let Some(amount) = &self.amount { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ast_node` [INFO] [stdout] --> src/parser/ast.rs:451:36 [INFO] [stdout] | [INFO] [stdout] 451 | TyOrConstVal::ConstVal(ast_node) => todo!(), [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ast_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/token_stream.rs:11:16 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn new(mut tokens: Vec) -> Self { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s_impl` [INFO] [stdout] --> src/tyck/mod.rs:167:34 [INFO] [stdout] | [INFO] [stdout] 167 | ItemKind::StructImpl(s_impl) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_s_impl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s_impl` [INFO] [stdout] --> src/tyck/mod.rs:201:34 [INFO] [stdout] | [INFO] [stdout] 201 | ItemKind::StructImpl(s_impl) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_s_impl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tyck/mod.rs:400:13 [INFO] [stdout] | [INFO] [stdout] 400 | let mut scope = self.scopes.last_mut().unwrap(); [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/tyck/mod.rs:425:13 [INFO] [stdout] | [INFO] [stdout] 425 | let mut scope = self.scopes.last_mut().unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/const_eval/mod.rs:3:19 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn eval_usize(val: AstNode) -> anyhow::Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `diagnostics` [INFO] [stdout] --> src/main.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | let mut diagnostics = DiagnosticBuilder::new(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_diagnostics` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let mut input = input("Please insert a path to a source file: ".to_owned()).unwrap(); [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:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let mut token_stream = TokenStream::new(lexed); [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:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | let mut diagnostics = DiagnosticBuilder::new(); [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:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | let mut ret = Arc::new(InsertOnlyConcVec::new(files.len())); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0425. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `TefflonLang` (bin "TefflonLang") due to 2 previous errors; 32 warnings emitted [INFO] running `Command { std: "docker" "inspect" "91fb2ed45a12afbbc932d448210cc9c166c67c0d6f65a91f3f4bbeba2f333722", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "91fb2ed45a12afbbc932d448210cc9c166c67c0d6f65a91f3f4bbeba2f333722", kill_on_drop: false }` [INFO] [stdout] 91fb2ed45a12afbbc932d448210cc9c166c67c0d6f65a91f3f4bbeba2f333722