[INFO] updating cached repository madmalik/rustformat [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/madmalik/rustformat [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/madmalik/rustformat" "work/ex/beta-1.37-6/sources/1.36.0/gh/madmalik/rustformat"` [INFO] [stderr] Cloning into 'work/ex/beta-1.37-6/sources/1.36.0/gh/madmalik/rustformat'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/madmalik/rustformat" "work/ex/beta-1.37-6/sources/beta-2019-07-23/gh/madmalik/rustformat"` [INFO] [stderr] Cloning into 'work/ex/beta-1.37-6/sources/beta-2019-07-23/gh/madmalik/rustformat'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 338c6462b0a250bb633d4ac9d728d693e2fb2699 [INFO] sha for GitHub repo madmalik/rustformat: 338c6462b0a250bb633d4ac9d728d693e2fb2699 [INFO] validating manifest of madmalik/rustformat on toolchain 1.36.0 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+1.36.0" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] validating manifest of madmalik/rustformat on toolchain beta-2019-07-23 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+beta-2019-07-23" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started frobbing madmalik/rustformat [INFO] finished frobbing madmalik/rustformat [INFO] frobbed toml for madmalik/rustformat written to work/ex/beta-1.37-6/sources/1.36.0/gh/madmalik/rustformat/Cargo.toml [INFO] started frobbing madmalik/rustformat [INFO] finished frobbing madmalik/rustformat [INFO] frobbed toml for madmalik/rustformat written to work/ex/beta-1.37-6/sources/beta-2019-07-23/gh/madmalik/rustformat/Cargo.toml [INFO] crate madmalik/rustformat already has a lockfile, it will not be regenerated [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+1.36.0" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+beta-2019-07-23" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] testing madmalik/rustformat against 1.36.0 for beta-1.37-6 [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/beta-1.37-6/worker-6/1.36.0:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/beta-1.37-6/sources/1.36.0/gh/madmalik/rustformat:/opt/crater/workdir:ro,Z" "-v" "/mnt/big/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/big/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+1.36.0" "build" "--frozen"` [INFO] [stdout] 83814388e05757d90cf60680983a0b77c9f55fdfc460ec55811f0f354dfd3747 [INFO] running `"docker" "start" "-a" "83814388e05757d90cf60680983a0b77c9f55fdfc460ec55811f0f354dfd3747"` [INFO] [stderr] Blocking waiting for file lock on package cache lock [INFO] [stderr] Compiling rustformat v0.0.1 (/opt/crater/workdir) [INFO] [stderr] error[E0432]: unresolved import `syntax::parse::lexer::Reader` [INFO] [stderr] --> src/token_handling.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | Reader, [INFO] [stderr] | ^^^^^^ no `Reader` in `parse::lexer` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `new_parse_sess` in module `parse` [INFO] [stderr] --> src/typesetting.rs:26:30 [INFO] [stderr] | [INFO] [stderr] 26 | let session = parse::new_parse_sess(); [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in `parse` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `string_to_filemap` in module `parse` [INFO] [stderr] --> src/typesetting.rs:27:30 [INFO] [stderr] | [INFO] [stderr] 27 | let filemap = parse::string_to_filemap(&session, source.to_string(), "".to_string()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ not found in `parse` [INFO] [stderr] [INFO] [stderr] error[E0531]: cannot find tuple struct/variant `Binary` in module `token` [INFO] [stderr] --> src/token_handling.rs:185:28 [INFO] [stderr] | [INFO] [stderr] 185 | token::Binary(v) => format!("b\"{}\"", v.as_str()), [INFO] [stderr] | ^^^^^^ not found in `token` [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 1 | use syntax::ast::ExprKind::Binary; [INFO] [stderr] | [INFO] [stderr] 1 | use syntax::util::parser::ExprPrecedence::Binary; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0531]: cannot find tuple struct/variant `BinaryRaw` in module `token` [INFO] [stderr] --> src/token_handling.rs:186:28 [INFO] [stderr] | [INFO] [stderr] 186 | token::BinaryRaw(s, n) => format!("br{delim}\"{string}\"{delim}", [INFO] [stderr] | ^^^^^^^^^ not found in `token` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `get_ident` in module `token` [INFO] [stderr] --> src/token_handling.rs:196:32 [INFO] [stderr] | [INFO] [stderr] 196 | let s = token::get_ident(s).to_string(); [INFO] [stderr] | ^^^^^^^^^ not found in `token` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `get_ident` in module `token` [INFO] [stderr] --> src/token_handling.rs:203:68 [INFO] [stderr] | [INFO] [stderr] 203 | token::Lifetime(s) => Word::Other(format!("{}", token::get_ident(s))), // ??? [INFO] [stderr] | ^^^^^^^^^ not found in `token` [INFO] [stderr] [INFO] [stderr] error[E0531]: cannot find unit struct/variant or constant `Underscore` in module `token` [INFO] [stderr] --> src/token_handling.rs:204:20 [INFO] [stderr] | [INFO] [stderr] 204 | token::Underscore => Word::Other("_".to_string()), [INFO] [stderr] | ^^^^^^^^^^ not found in `token` [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 1 | use syntax::symbol::keywords::Underscore; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0554]: #![feature] may not be used on the stable release channel [INFO] [stderr] --> src/main.rs:1:1 [INFO] [stderr] | [INFO] [stderr] 1 | #![feature(rustc_private)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `new` found for type `syntax::parse::lexer::StringReader<'_>` in the current scope [INFO] [stderr] --> src/typesetting.rs:28:46 [INFO] [stderr] | [INFO] [stderr] 28 | let mut lexer = lexer::StringReader::new(&session.span_diagnostic, filemap); [INFO] [stderr] | ^^^ function or associated item not found in `syntax::parse::lexer::StringReader<'_>` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'core::str::::trim_right_matches': superseded by `trim_end_matches` [INFO] [stderr] --> src/typesetting.rs:344:25 [INFO] [stderr] | [INFO] [stderr] 344 | formated_source.trim_right_matches("\n").to_string() [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: replace the use of the deprecated item: `trim_end_matches` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(deprecated)] on by default [INFO] [stderr] [INFO] [stderr] error[E0624]: method `next_token` is private [INFO] [stderr] --> src/token_handling.rs:13:21 [INFO] [stderr] | [INFO] [stderr] 13 | match lexer.next_token() { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0609]: no field `span_diagnostic` on type `&mut syntax::parse::lexer::StringReader<'_>` [INFO] [stderr] --> src/token_handling.rs:29:39 [INFO] [stderr] | [INFO] [stderr] 29 | let s = lexer.span_diagnostic.cm.span_to_snippet(span).unwrap(); [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0609]: no field `span_diagnostic` on type `&mut syntax::parse::lexer::StringReader<'_>` [INFO] [stderr] --> src/token_handling.rs:37:39 [INFO] [stderr] | [INFO] [stderr] 37 | let s = lexer.span_diagnostic.cm.span_to_snippet(span).unwrap(); [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/token_handling.rs:183:45 [INFO] [stderr] | [INFO] [stderr] 183 | delim = repeat("#", n), [INFO] [stderr] | ^ expected usize, found u16 [INFO] [stderr] help: you can convert an `u16` to `usize` and panic if the converted value wouldn't fit [INFO] [stderr] | [INFO] [stderr] 183 | delim = repeat("#", n.try_into().unwrap()), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/token_handling.rs:191:34 [INFO] [stderr] | [INFO] [stderr] 191 | out.push_str(s.as_str()) [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | expected &str, found struct `syntax::symbol::LocalInternedString` [INFO] [stderr] | help: consider borrowing here: `&s.as_str()` [INFO] [stderr] | [INFO] [stderr] = note: expected type `&str` [INFO] [stderr] found type `syntax::symbol::LocalInternedString` [INFO] [stderr] [INFO] [stderr] error: aborting due to 15 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0308, E0425, E0432, E0554, E0599, E0609, E0624. [INFO] [stderr] For more information about an error, try `rustc --explain E0308`. [INFO] [stderr] error: Could not compile `rustformat`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "83814388e05757d90cf60680983a0b77c9f55fdfc460ec55811f0f354dfd3747"` [INFO] running `"docker" "rm" "-f" "83814388e05757d90cf60680983a0b77c9f55fdfc460ec55811f0f354dfd3747"` [INFO] [stdout] 83814388e05757d90cf60680983a0b77c9f55fdfc460ec55811f0f354dfd3747