[INFO] cloning repository https://github.com/madmalik/rustformat [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/madmalik/rustformat" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmadmalik%2Frustformat", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmadmalik%2Frustformat'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 338c6462b0a250bb633d4ac9d728d693e2fb2699 [INFO] testing madmalik/rustformat against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmadmalik%2Frustformat" "/workspace/builds/worker-13/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-13/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/madmalik/rustformat on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/madmalik/rustformat [INFO] finished tweaking git repo https://github.com/madmalik/rustformat [INFO] tweaked toml for git repo https://github.com/madmalik/rustformat written to /workspace/builds/worker-13/source/Cargo.toml [INFO] crate git repo https://github.com/madmalik/rustformat already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 906556903f161a0adfb9417a015f31f764dd9d4a4c66538a141fa45c5f068300 [INFO] running `Command { std: "docker" "start" "-a" "906556903f161a0adfb9417a015f31f764dd9d4a4c66538a141fa45c5f068300", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "906556903f161a0adfb9417a015f31f764dd9d4a4c66538a141fa45c5f068300", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "906556903f161a0adfb9417a015f31f764dd9d4a4c66538a141fa45c5f068300", kill_on_drop: false }` [INFO] [stdout] 906556903f161a0adfb9417a015f31f764dd9d4a4c66538a141fa45c5f068300 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fcf6ed594276a54883dea5f9ef3303139ce48e37163bcaa24c565066c2d892a3 [INFO] running `Command { std: "docker" "start" "-a" "fcf6ed594276a54883dea5f9ef3303139ce48e37163bcaa24c565066c2d892a3", kill_on_drop: false }` [INFO] [stderr] Compiling rustformat v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] error[E0463]: can't find crate for `syntax` [INFO] [stdout] --> src/main.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | extern crate syntax; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `parse` [INFO] [stdout] --> src/typesetting.rs:26:23 [INFO] [stdout] | [INFO] [stdout] 26 | let session = parse::new_parse_sess(); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `parse` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `parse` [INFO] [stdout] --> src/typesetting.rs:27:23 [INFO] [stdout] | [INFO] [stdout] 27 | let filemap = parse::string_to_filemap(&session, source.to_string(), "".to_string()); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `parse` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `lexer` [INFO] [stdout] --> src/typesetting.rs:28:25 [INFO] [stdout] | [INFO] [stdout] 28 | let mut lexer = lexer::StringReader::new(&session.span_diagnostic, filemap); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `lexer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:15:21 [INFO] [stdout] | [INFO] [stdout] 15 | tok:token::Eof, [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:115:13 [INFO] [stdout] | [INFO] [stdout] 115 | token::Eq => Word::BinaryOperator("=".to_string()), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:116:13 [INFO] [stdout] | [INFO] [stdout] 116 | token::EqEq => Word::BinaryOperator("==".to_string()), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:117:13 [INFO] [stdout] | [INFO] [stdout] 117 | token::Ne => Word::BinaryOperator("!=".to_string()), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:118:13 [INFO] [stdout] | [INFO] [stdout] 118 | token::Ge => Word::BinaryOperator(">=".to_string()), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:119:13 [INFO] [stdout] | [INFO] [stdout] 119 | token::Gt => Word::BinaryOperator(">".to_string()), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:120:13 [INFO] [stdout] | [INFO] [stdout] 120 | token::Le => Word::BinaryOperator("<=".to_string()), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:121:13 [INFO] [stdout] | [INFO] [stdout] 121 | token::Lt => Word::BinaryOperator("<".to_string()), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:122:13 [INFO] [stdout] | [INFO] [stdout] 122 | token::AndAnd => Word::BinaryOperator("&&".to_string()), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:123:13 [INFO] [stdout] | [INFO] [stdout] 123 | token::OrOr => Word::BinaryOperator("||".to_string()), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:124:13 [INFO] [stdout] | [INFO] [stdout] 124 | token::Not => Word::PrefixOperator("!".to_string()), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:125:13 [INFO] [stdout] | [INFO] [stdout] 125 | token::Tilde => Word::PrefixOperator("~".to_string()), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:126:13 [INFO] [stdout] | [INFO] [stdout] 126 | token::BinOp(bin_op_token) => [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:128:17 [INFO] [stdout] | [INFO] [stdout] 128 | token::Plus => Word::BinaryOperator("+".to_string()), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:129:17 [INFO] [stdout] | [INFO] [stdout] 129 | token::Minus => Word::BinaryOperator("-".to_string()), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:130:17 [INFO] [stdout] | [INFO] [stdout] 130 | token::Star => Word::BinaryOperator("*".to_string()), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:131:17 [INFO] [stdout] | [INFO] [stdout] 131 | token::Slash => Word::BinaryOperator("/".to_string()), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:132:17 [INFO] [stdout] | [INFO] [stdout] 132 | token::Percent => Word::BinaryOperator("%".to_string()), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:133:17 [INFO] [stdout] | [INFO] [stdout] 133 | token::Caret => Word::BinaryOperator("^".to_string()), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:134:17 [INFO] [stdout] | [INFO] [stdout] 134 | token::And => Word::PrefixOperator("&".to_string()), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:135:17 [INFO] [stdout] | [INFO] [stdout] 135 | token::Or => Word::BinaryOperator("|".to_string()), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:136:17 [INFO] [stdout] | [INFO] [stdout] 136 | token::Shl => Word::BinaryOperator("<<".to_string()), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:137:17 [INFO] [stdout] | [INFO] [stdout] 137 | token::Shr => Word::BinaryOperator(">>".to_string()), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | token::BinOpEq(bin_op_token) => [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:141:17 [INFO] [stdout] | [INFO] [stdout] 141 | token::Plus => Word::BinaryOperator("+=".to_string()), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:142:17 [INFO] [stdout] | [INFO] [stdout] 142 | token::Minus => Word::BinaryOperator("-=".to_string()), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:143:17 [INFO] [stdout] | [INFO] [stdout] 143 | token::Star => Word::BinaryOperator("*=".to_string()), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:144:17 [INFO] [stdout] | [INFO] [stdout] 144 | token::Slash => Word::BinaryOperator("/=".to_string()), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:145:17 [INFO] [stdout] | [INFO] [stdout] 145 | token::Percent => Word::BinaryOperator("%=".to_string()), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:146:17 [INFO] [stdout] | [INFO] [stdout] 146 | token::Caret => Word::BinaryOperator("^=".to_string()), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:147:17 [INFO] [stdout] | [INFO] [stdout] 147 | token::And => Word::BinaryOperator("&=".to_string()), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:148:17 [INFO] [stdout] | [INFO] [stdout] 148 | token::Or => Word::BinaryOperator("|=".to_string()), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:149:17 [INFO] [stdout] | [INFO] [stdout] 149 | token::Shl => Word::BinaryOperator("<<=".to_string()), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:150:17 [INFO] [stdout] | [INFO] [stdout] 150 | token::Shr => Word::BinaryOperator(">>=".to_string()), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:152:13 [INFO] [stdout] | [INFO] [stdout] 152 | token::At => Word::PrefixOperator("@".to_string()), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:153:13 [INFO] [stdout] | [INFO] [stdout] 153 | token::Dot => Word::SlimInfix(".".to_string()), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:154:13 [INFO] [stdout] | [INFO] [stdout] 154 | token::DotDot => Word::SlimInfix("..".to_string()), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:155:13 [INFO] [stdout] | [INFO] [stdout] 155 | token::DotDotDot => Word::SlimInfix("...".to_string()), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:156:13 [INFO] [stdout] | [INFO] [stdout] 156 | token::ModSep => Word::SlimInfix("::".to_string()), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:157:13 [INFO] [stdout] | [INFO] [stdout] 157 | token::Comma => Word::Comma, [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:158:13 [INFO] [stdout] | [INFO] [stdout] 158 | token::Semi => Word::SemiColon, [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:159:13 [INFO] [stdout] | [INFO] [stdout] 159 | token::Colon => Word::Colon, [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:161:13 [INFO] [stdout] | [INFO] [stdout] 161 | token::RArrow => Word::BinaryOperator("->".to_string()), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:162:13 [INFO] [stdout] | [INFO] [stdout] 162 | token::LArrow => Word::Other("<-".to_string()), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:163:13 [INFO] [stdout] | [INFO] [stdout] 163 | token::FatArrow => Word::BinaryOperator("=>".to_string()), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:165:13 [INFO] [stdout] | [INFO] [stdout] 165 | token::OpenDelim(token::Paren) => Word::OpenParen, [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:165:30 [INFO] [stdout] | [INFO] [stdout] 165 | token::OpenDelim(token::Paren) => Word::OpenParen, [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:166:13 [INFO] [stdout] | [INFO] [stdout] 166 | token::CloseDelim(token::Paren) => Word::CloseParen, [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:166:31 [INFO] [stdout] | [INFO] [stdout] 166 | token::CloseDelim(token::Paren) => Word::CloseParen, [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 167 | token::OpenDelim(token::Bracket) => Word::OpenBracket, [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:167:30 [INFO] [stdout] | [INFO] [stdout] 167 | token::OpenDelim(token::Bracket) => Word::OpenBracket, [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:168:13 [INFO] [stdout] | [INFO] [stdout] 168 | token::CloseDelim(token::Bracket) => Word::CloseBracket, [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:168:31 [INFO] [stdout] | [INFO] [stdout] 168 | token::CloseDelim(token::Bracket) => Word::CloseBracket, [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:169:13 [INFO] [stdout] | [INFO] [stdout] 169 | token::OpenDelim(token::Brace) => Word::OpenBrace, [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:169:30 [INFO] [stdout] | [INFO] [stdout] 169 | token::OpenDelim(token::Brace) => Word::OpenBrace, [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:170:13 [INFO] [stdout] | [INFO] [stdout] 170 | token::CloseDelim(token::Brace) => Word::CloseBrace, [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:170:31 [INFO] [stdout] | [INFO] [stdout] 170 | token::CloseDelim(token::Brace) => Word::CloseBrace, [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:172:13 [INFO] [stdout] | [INFO] [stdout] 172 | token::Pound => Word::PrefixOperator("#".to_string()), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:173:13 [INFO] [stdout] | [INFO] [stdout] 173 | token::Dollar => Word::PrefixOperator("$".to_string()), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:174:13 [INFO] [stdout] | [INFO] [stdout] 174 | token::Question => Word::PrefixOperator("?".to_string()), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:175:13 [INFO] [stdout] | [INFO] [stdout] 175 | token::Literal(lit, suf) => { [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:177:21 [INFO] [stdout] | [INFO] [stdout] 177 | token::Byte(b) => format!("b'{}'", b.as_str()), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:178:21 [INFO] [stdout] | [INFO] [stdout] 178 | token::Char(c) => format!("'{}'", c.as_str()), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:179:21 [INFO] [stdout] | [INFO] [stdout] 179 | token::Float(c) => c.as_str().to_string(), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:180:21 [INFO] [stdout] | [INFO] [stdout] 180 | token::Integer(c) => c.as_str().to_string(), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:181:21 [INFO] [stdout] | [INFO] [stdout] 181 | token::Str_(s) => format!("\"{}\"", s.as_str()), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:182:21 [INFO] [stdout] | [INFO] [stdout] 182 | token::StrRaw(s, n) => format!("r{delim}\"{string}\"{delim}", [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:185:21 [INFO] [stdout] | [INFO] [stdout] 185 | token::Binary(v) => format!("b\"{}\"", v.as_str()), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:186:21 [INFO] [stdout] | [INFO] [stdout] 186 | token::BinaryRaw(s, n) => format!("br{delim}\"{string}\"{delim}", [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:195:13 [INFO] [stdout] | [INFO] [stdout] 195 | token::Ident(s, _) => { [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:196:25 [INFO] [stdout] | [INFO] [stdout] 196 | let s = token::get_ident(s).to_string(); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:203:13 [INFO] [stdout] | [INFO] [stdout] 203 | token::Lifetime(s) => Word::Other(format!("{}", token::get_ident(s))), // ??? [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:203:61 [INFO] [stdout] | [INFO] [stdout] 203 | token::Lifetime(s) => Word::Other(format!("{}", token::get_ident(s))), // ??? [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:204:13 [INFO] [stdout] | [INFO] [stdout] 204 | token::Underscore => Word::Other("_".to_string()), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:206:13 [INFO] [stdout] | [INFO] [stdout] 206 | token::Whitespace => Word::Whitespace(0), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:207:13 [INFO] [stdout] | [INFO] [stdout] 207 | token::DocComment(s) => Word::Comment(s.to_string()), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:208:13 [INFO] [stdout] | [INFO] [stdout] 208 | token::Comment => Word::Comment("".to_string()), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `token` [INFO] [stdout] --> src/token_handling.rs:209:13 [INFO] [stdout] | [INFO] [stdout] 209 | token::Eof => { [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `StringReader` in this scope [INFO] [stdout] --> src/token_handling.rs:10:40 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn put_tokens_into_vec(lexer: &mut StringReader) -> Vec < Word > { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `TokenAndSpan` in this scope [INFO] [stdout] --> src/token_handling.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | TokenAndSpan { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `TokenAndSpan` in this scope [INFO] [stdout] --> src/token_handling.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | TokenAndSpan { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Token` in this scope [INFO] [stdout] --> src/token_handling.rs:113:26 [INFO] [stdout] | [INFO] [stdout] 113 | fn from_token(token: Token) -> Word { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0554]: `#![feature]` may not be used on the beta release channel [INFO] [stdout] --> src/main.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(rustc_private)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | try!(f.read_to_string(&mut source)); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | try!(f.write_all(typesetter.to_string().as_bytes())); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:16:17 [INFO] [stdout] | [INFO] [stdout] 16 | let mut f = try!(File::open(filename)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | f = try!(File::create(filename)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_right_matches`: superseded by `trim_end_matches` [INFO] [stdout] --> src/typesetting.rs:344:25 [INFO] [stdout] | [INFO] [stdout] 344 | formated_source.trim_right_matches("\n").to_string() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_end_matches` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 87 previous errors; 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rustformat` due to 88 previous errors; 5 warnings emitted [INFO] [stdout] Some errors have detailed explanations: E0412, E0422, E0433, E0463, E0554. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "fcf6ed594276a54883dea5f9ef3303139ce48e37163bcaa24c565066c2d892a3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fcf6ed594276a54883dea5f9ef3303139ce48e37163bcaa24c565066c2d892a3", kill_on_drop: false }` [INFO] [stdout] fcf6ed594276a54883dea5f9ef3303139ce48e37163bcaa24c565066c2d892a3