[INFO] updating cached repository https://github.com/asmoaesl/rsc [INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/big/crater/work/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune"` [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 31e05e8ad7860a7c71f9e81e880f8aa10ca7d234 [INFO] testing asmoaesl/rsc against 1.38.0 for beta-1.39-1 [INFO] running `"git" "clone" "work/cache/git-repos/https%3A%2F%2Fgithub.com%2Fasmoaesl%2Frsc" "work/builds/worker-10/source"` [INFO] [stderr] Cloning into 'work/builds/worker-10/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/asmoaesl/rsc on toolchain 1.38.0 [INFO] running `"/big/crater/work/cargo-home/bin/cargo" "+1.38.0" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking git repo https://github.com/asmoaesl/rsc [INFO] finished tweaking git repo https://github.com/asmoaesl/rsc [INFO] tweaked toml for git repo https://github.com/asmoaesl/rsc written to work/builds/worker-10/source/Cargo.toml [INFO] crate git repo https://github.com/asmoaesl/rsc already has a lockfile, it will not be regenerated [INFO] running `"/big/crater/work/cargo-home/bin/cargo" "+1.38.0" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/big/crater/work/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/big/crater/work/builds/worker-10/source:/opt/rustwide/workdir:ro,Z" "-v" "/big/crater/work/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/big/crater/work/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "MAP_USER_ID=1000" "-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" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+1.38.0" "build" "--frozen"` [INFO] [stdout] fdc71eb4ab9c893611202e9f10983ff480da7e3193266591ff93ef6cb1f8ed32 [INFO] running `"docker" "start" "-a" "fdc71eb4ab9c893611202e9f10983ff480da7e3193266591ff93ef6cb1f8ed32"` [INFO] [stderr] Compiling rsc v2.0.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.52s [INFO] running `"docker" "inspect" "fdc71eb4ab9c893611202e9f10983ff480da7e3193266591ff93ef6cb1f8ed32"` [INFO] running `"docker" "rm" "-f" "fdc71eb4ab9c893611202e9f10983ff480da7e3193266591ff93ef6cb1f8ed32"` [INFO] [stdout] fdc71eb4ab9c893611202e9f10983ff480da7e3193266591ff93ef6cb1f8ed32 [INFO] running `"docker" "create" "-v" "/big/crater/work/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/big/crater/work/builds/worker-10/source:/opt/rustwide/workdir:ro,Z" "-v" "/big/crater/work/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/big/crater/work/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "MAP_USER_ID=1000" "-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" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+1.38.0" "test" "--frozen" "--no-run"` [INFO] [stdout] 4debb06d648f5e311e7ef216f2aab018220c06739efdbd2b7c8382c89b444482 [INFO] running `"docker" "start" "-a" "4debb06d648f5e311e7ef216f2aab018220c06739efdbd2b7c8382c89b444482"` [INFO] [stderr] Compiling rsc v2.0.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 4.15s [INFO] running `"docker" "inspect" "4debb06d648f5e311e7ef216f2aab018220c06739efdbd2b7c8382c89b444482"` [INFO] running `"docker" "rm" "-f" "4debb06d648f5e311e7ef216f2aab018220c06739efdbd2b7c8382c89b444482"` [INFO] [stdout] 4debb06d648f5e311e7ef216f2aab018220c06739efdbd2b7c8382c89b444482 [INFO] running `"docker" "create" "-v" "/big/crater/work/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/big/crater/work/builds/worker-10/source:/opt/rustwide/workdir:ro,Z" "-v" "/big/crater/work/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/big/crater/work/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "MAP_USER_ID=1000" "-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" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+1.38.0" "test" "--frozen"` [INFO] [stdout] a16400daceac67790e366d9d1a6f73770b5f2c437097f03e46168d84218f19a7 [INFO] running `"docker" "start" "-a" "a16400daceac67790e366d9d1a6f73770b5f2c437097f03e46168d84218f19a7"` [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.03s [INFO] [stdout] [INFO] [stderr] Running /opt/rustwide/target/debug/deps/rsc-dda2800afd16ba51 [INFO] [stdout] running 0 tests [INFO] [stderr] Doc-tests rsc [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 9 tests [INFO] [stdout] test src/lib.rs - (line 65) ... FAILED [INFO] [stdout] test src/lib.rs - eval (line 110) ... FAILED [INFO] [stdout] test src/lexer.rs - lexer::tokenize (line 40) ... FAILED [INFO] [stdout] test src/parser.rs - parser::Expr::replace (line 30) ... FAILED [INFO] [stdout] test src/lib.rs - eval (line 116) ... FAILED [INFO] [stdout] test src/computer.rs - computer::Computer (line 54) ... FAILED [INFO] [stdout] test src/lib.rs - (line 29) ... FAILED [INFO] [stdout] test src/computer.rs - computer::Computer::compute (line 177) ... FAILED [INFO] [stdout] test src/lib.rs - (line 10) ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 65) stdout ---- [INFO] [stdout] error[E0585]: found a documentation comment that doesn't document anything [INFO] [stdout] --> src/lib.rs:67:1 [INFO] [stdout] | [INFO] [stdout] 4 | /// ... using the computer [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: doc comments must come before what they document, maybe a comment was intended with `//`? [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Computer` [INFO] [stdout] --> src/lib.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 3 | let mut c = Computer::new(); [INFO] [stdout] | ^^^^^^^^ use of undeclared type or module `Computer` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0585. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - eval (line 110) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Computer` [INFO] [stdout] --> src/lib.rs:111:20 [INFO] [stdout] | [INFO] [stdout] 3 | let mut computer = Computer::::default(); [INFO] [stdout] | ^^^^^^^^ use of undeclared type or module `Computer` [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lexer.rs - lexer::tokenize (line 40) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `rsc::tokenize` [INFO] [stdout] --> src/lexer.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rsc::tokenize; [INFO] [stdout] | ^^^^^^^^^^^^^ no `tokenize` in the root [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Token` [INFO] [stdout] --> src/lexer.rs:43:33 [INFO] [stdout] | [INFO] [stdout] 6 | assert_eq!(tokens.as_slice(), &[Token::Number(2.0), Token::Operator(Operator::Plus), Token::Number(2.0)]); [INFO] [stdout] | ^^^^^ use of undeclared type or module `Token` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Token` [INFO] [stdout] --> src/lexer.rs:43:53 [INFO] [stdout] | [INFO] [stdout] 6 | assert_eq!(tokens.as_slice(), &[Token::Number(2.0), Token::Operator(Operator::Plus), Token::Number(2.0)]); [INFO] [stdout] | ^^^^^ use of undeclared type or module `Token` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Operator` [INFO] [stdout] --> src/lexer.rs:43:69 [INFO] [stdout] | [INFO] [stdout] 6 | assert_eq!(tokens.as_slice(), &[Token::Number(2.0), Token::Operator(Operator::Plus), Token::Number(2.0)]); [INFO] [stdout] | ^^^^^^^^ use of undeclared type or module `Operator` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Token` [INFO] [stdout] --> src/lexer.rs:43:86 [INFO] [stdout] | [INFO] [stdout] 6 | assert_eq!(tokens.as_slice(), &[Token::Number(2.0), Token::Operator(Operator::Plus), Token::Number(2.0)]); [INFO] [stdout] | ^^^^^ use of undeclared type or module `Token` [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/parser.rs - parser::Expr::replace (line 30) stdout ---- [INFO] [stdout] error: incorrect close delimiter: `}` [INFO] [stdout] --> src/parser.rs:41:1 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | - close delimiter possibly meant for this [INFO] [stdout] ... [INFO] [stdout] 13 | assert_eq!(Computer::new(std::f64::consts::PI, std::f64::consts::E).compute(&ast), Ok(1600.0); [INFO] [stdout] | - un-closed delimiter [INFO] [stdout] 14 | } [INFO] [stdout] | ^ incorrect close delimiter [INFO] [stdout] [INFO] [stdout] error: no rules expected the token `;` [INFO] [stdout] --> src/parser.rs:40:94 [INFO] [stdout] | [INFO] [stdout] 13 | assert_eq!(Computer::new(std::f64::consts::PI, std::f64::consts::E).compute(&ast), Ok(1600.0); [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | no rules expected this token in macro call [INFO] [stdout] | help: missing comma here [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `lexer` [INFO] [stdout] --> src/parser.rs:36:14 [INFO] [stdout] | [INFO] [stdout] 9 | let tokens = lexer::tokenize("x^2 * 4").unwrap(); [INFO] [stdout] | ^^^^^ use of undeclared type or module `lexer` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `parser` [INFO] [stdout] --> src/parser.rs:37:19 [INFO] [stdout] | [INFO] [stdout] 10 | let replacement = parser::Expr::Constant(20.); [INFO] [stdout] | ^^^^^^ use of undeclared type or module `parser` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `parser` [INFO] [stdout] --> src/parser.rs:38:15 [INFO] [stdout] | [INFO] [stdout] 11 | let mut ast = parser::parse(&tokens).unwrap(); [INFO] [stdout] | ^^^^^^ use of undeclared type or module `parser` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `parser` [INFO] [stdout] --> src/parser.rs:39:14 [INFO] [stdout] | [INFO] [stdout] 12 | ast.replace(&parser::Expr::Identifier(String::from("x")), &replacement, false); [INFO] [stdout] | ^^^^^^ use of undeclared type or module `parser` [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - eval (line 116) stdout ---- [INFO] [stdout] error[E0283]: type annotations required: cannot resolve `_: std::fmt::Debug` [INFO] [stdout] --> src/lib.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 5 | assert!(eval("3.1 + 2.2").unwrap() == 5.3); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: required by `rsc::eval` [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0283`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/computer.rs - computer::Computer (line 54) stdout ---- [INFO] [stdout] error[E0061]: this function takes 0 parameters but 2 parameters were supplied [INFO] [stdout] --> src/computer.rs:60:20 [INFO] [stdout] | [INFO] [stdout] 9 | let mut computer = Computer::new(std::f64::consts::PI, std::f64::consts::E); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 0 parameters [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 0 parameters but 2 parameters were supplied [INFO] [stdout] --> src/computer.rs:65:1 [INFO] [stdout] | [INFO] [stdout] 14 | Computer::new(std::f64::consts::PI, std::f64::consts::E).eval("a"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 0 parameters [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0061`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 29) stdout ---- [INFO] [stdout] error[E0061]: this function takes 1 parameter but 2 parameters were supplied [INFO] [stdout] --> src/lib.rs:37:18 [INFO] [stdout] | [INFO] [stdout] 10 | let tokens = tokenize("x^2", true).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ expected 1 parameter [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:45:39 [INFO] [stdout] | [INFO] [stdout] 18 | ast.replace(&Expr::Identifier("x".to_owned()), &Expr::Constant(x as f64), false); [INFO] [stdout] | ^^^^^^^^^^^^^^ expected &str, found struct `std::string::String` [INFO] [stdout] | [INFO] [stdout] = note: expected type `&str` [INFO] [stdout] found type `std::string::String` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0308. [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/computer.rs - computer::Computer::compute (line 177) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Computer` [INFO] [stdout] --> src/computer.rs:179:20 [INFO] [stdout] | [INFO] [stdout] 4 | let mut computer = Computer::::default(); [INFO] [stdout] | ^^^^^^^^ use of undeclared type or module `Computer` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `parse` in this scope [INFO] [stdout] --> src/computer.rs:178:11 [INFO] [stdout] | [INFO] [stdout] 3 | let ast = parse(/*...*/); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] help: possible candidate is found in another module, you can import it into scope [INFO] [stdout] | [INFO] [stdout] 2 | use rsc::parser::parse; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/computer.rs - computer::Computer (line 54) [INFO] [stdout] src/computer.rs - computer::Computer::compute (line 177) [INFO] [stdout] src/lexer.rs - lexer::tokenize (line 40) [INFO] [stdout] src/lib.rs - (line 29) [INFO] [stdout] src/lib.rs - (line 65) [INFO] [stdout] src/lib.rs - eval (line 110) [INFO] [stdout] src/lib.rs - eval (line 116) [INFO] [stdout] src/parser.rs - parser::Expr::replace (line 30) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 1 passed; 8 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `"docker" "inspect" "a16400daceac67790e366d9d1a6f73770b5f2c437097f03e46168d84218f19a7"` [INFO] running `"docker" "rm" "-f" "a16400daceac67790e366d9d1a6f73770b5f2c437097f03e46168d84218f19a7"` [INFO] [stdout] a16400daceac67790e366d9d1a6f73770b5f2c437097f03e46168d84218f19a7