[INFO] fetching crate json_macros 0.3.2... [INFO] checking json_macros-0.3.2 against master#2748a9fd93dd1a00a4521f4f16de5befbf77f6cd for pr-62262-1 [INFO] extracting crate json_macros 0.3.2 into /workspace/builds/worker-14/source [INFO] validating manifest of crates.io crate json_macros 0.3.2 on toolchain 2748a9fd93dd1a00a4521f4f16de5befbf77f6cd [INFO] running `"/workspace/cargo-home/bin/cargo" "+2748a9fd93dd1a00a4521f4f16de5befbf77f6cd" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking crates.io crate json_macros 0.3.2 [INFO] removed 0 missing examples [INFO] removed 1 missing tests [INFO] finished tweaking crates.io crate json_macros 0.3.2 [INFO] tweaked toml for crates.io crate json_macros 0.3.2 written to /workspace/builds/worker-14/source/Cargo.toml [INFO] running `"/workspace/cargo-home/bin/cargo" "+2748a9fd93dd1a00a4521f4f16de5befbf77f6cd" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/workspace/cargo-home/bin/cargo" "+2748a9fd93dd1a00a4521f4f16de5befbf77f6cd" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] warning: An explicit [[test]] section is specified in Cargo.toml which currently [INFO] [stderr] disables Cargo from automatically inferring other test targets. [INFO] [stderr] This inference behavior will change in the Rust 2018 edition and the following [INFO] [stderr] files will be included as a test target: [INFO] [stderr] [INFO] [stderr] * /workspace/builds/worker-14/source/tests/tests.rs [INFO] [stderr] [INFO] [stderr] This is likely to break cargo build or cargo test as these files may not be [INFO] [stderr] ready to be compiled as a test target today. You can future-proof yourself [INFO] [stderr] and disable this warning by adding `autotests = false` to your [package] [INFO] [stderr] section. You may also move the files to a location where Cargo would not [INFO] [stderr] automatically infer them to be a target, such as in subfolders. [INFO] [stderr] [INFO] [stderr] For more information on this warning you can consult [INFO] [stderr] https://github.com/rust-lang/cargo/issues/5330 [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-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" "+2748a9fd93dd1a00a4521f4f16de5befbf77f6cd" "check" "--frozen" "--all" "--all-targets"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 223d985d32af2d18106857f553b318df4be1719da474a2bd6f41daf7fe16a6b6 [INFO] running `"docker" "start" "-a" "223d985d32af2d18106857f553b318df4be1719da474a2bd6f41daf7fe16a6b6"` [INFO] [stderr] warning: An explicit [[test]] section is specified in Cargo.toml which currently [INFO] [stderr] disables Cargo from automatically inferring other test targets. [INFO] [stderr] This inference behavior will change in the Rust 2018 edition and the following [INFO] [stderr] files will be included as a test target: [INFO] [stderr] [INFO] [stderr] * /opt/rustwide/workdir/tests/tests.rs [INFO] [stderr] [INFO] [stderr] This is likely to break cargo build or cargo test as these files may not be [INFO] [stderr] ready to be compiled as a test target today. You can future-proof yourself [INFO] [stderr] and disable this warning by adding `autotests = false` to your [package] [INFO] [stderr] section. You may also move the files to a location where Cargo would not [INFO] [stderr] automatically infer them to be a target, such as in subfolders. [INFO] [stderr] [INFO] [stderr] For more information on this warning you can consult [INFO] [stderr] https://github.com/rust-lang/cargo/issues/5330 [INFO] [stderr] Checking json_macros v0.3.2 (/opt/rustwide/workdir) [INFO] [stderr] Checking serde v0.6.15 [INFO] [stderr] error[E0557]: feature has been removed [INFO] [stderr] --> src/lib.rs:1:30 [INFO] [stderr] error[E0557]: feature has been removed [INFO] [stderr] --> src/lib.rs:1:30 [INFO] [stderr] | [INFO] [stderr] 1 | #![feature(plugin_registrar, quote)] [INFO] [stderr] | ^^^^^ feature has been removed [INFO] [stderr] [INFO] [stderr] | [INFO] [stderr] 1 | #![feature(plugin_registrar, quote)] [INFO] [stderr] | ^^^^^ feature has been removed [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `syntax::codemap` [INFO] [stderr] --> src/plugin.rs:1:13 [INFO] [stderr] | [INFO] [stderr] 1 | use syntax::codemap::Span; [INFO] [stderr] | ^^^^^^^ could not find `codemap` in `syntax` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `syntax::ext::build::AstBuilder` [INFO] [stderr] --> src/plugin.rs:21:9 [INFO] [stderr] | [INFO] [stderr] 21 | use syntax::ext::build::AstBuilder; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `AstBuilder` in `ext::build` [INFO] [stderr] [INFO] [stderr] error: cannot find macro `quote_expr` in this scope [INFO] [stderr] --> src/plugin.rs:43:13 [INFO] [stderr] | [INFO] [stderr] 43 | quote_expr!(cx, { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: cannot find macro `quote_expr` in this scope [INFO] [stderr] --> src/plugin.rs:56:27 [INFO] [stderr] | [INFO] [stderr] 56 | let key = quote_expr!(cx, { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: cannot find macro `quote_expr` in this scope [INFO] [stderr] --> src/plugin.rs:67:33 [INFO] [stderr] | [INFO] [stderr] 67 | insertions.push(quote_expr!(cx, { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: cannot find macro `quote_expr` in this scope [INFO] [stderr] --> src/plugin.rs:71:24 [INFO] [stderr] | [INFO] [stderr] 71 | let expr = quote_expr!(cx, { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: cannot find macro `quote_expr` in this scope [INFO] [stderr] --> src/plugin.rs:80:13 [INFO] [stderr] | [INFO] [stderr] 80 | quote_expr!(cx, {{ [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: cannot find macro `quote_expr` in this scope [INFO] [stderr] --> src/plugin.rs:87:13 [INFO] [stderr] | [INFO] [stderr] 87 | quote_expr!(cx, { ::rustc_serialize::json::Json::Null }) [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: cannot find macro `quote_expr` in this scope [INFO] [stderr] --> src/plugin.rs:91:13 [INFO] [stderr] | [INFO] [stderr] 91 | quote_expr!(cx, {{ [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `common` in `parse` [INFO] [stderr] --> src/plugin.rs:26:30 [INFO] [stderr] | [INFO] [stderr] 26 | ::syntax::parse::common::SeqSep { [INFO] [stderr] | ^^^^^^ could not find `common` in `parse` [INFO] [stderr] ... [INFO] [stderr] 39 | let exprs = parser.parse_seq_to_end(&r_bracket, comma_sep!(), |p| { [INFO] [stderr] | ------------ in this macro invocation [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `common` in `parse` [INFO] [stderr] --> src/plugin.rs:26:30 [INFO] [stderr] | [INFO] [stderr] 26 | ::syntax::parse::common::SeqSep { [INFO] [stderr] | ^^^^^^ could not find `common` in `parse` [INFO] [stderr] ... [INFO] [stderr] 52 | let kvs = parser.parse_seq_to_end(&r_brace, comma_sep!(), |p| { [INFO] [stderr] | ------------ in this macro invocation [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/plugin.rs:10:77 [INFO] [stderr] | [INFO] [stderr] 10 | pub fn expand<'cx>(cx: &'cx mut ExtCtxt, _: Span, tts: &[TokenTree]) -> Box { [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: use `dyn`: `dyn MacResult + 'cx` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated attribute `plugin_registrar`: compiler plugins are deprecated. See https://github.com/rust-lang/rust/issues/29597 [INFO] [stderr] --> src/lib.rs:16:1 [INFO] [stderr] | [INFO] [stderr] 16 | #[plugin_registrar] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: remove this attribute [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'rustc_plugin': import this through `rustc_driver::plugin` instead to make TLS work correctly. See https://github.com/rust-lang/rust/issues/62717 [INFO] [stderr] --> src/lib.rs:5:1 [INFO] [stderr] | [INFO] [stderr] 5 | extern crate rustc_plugin; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `syntax::codemap` [INFO] [stderr] --> src/plugin.rs:1:13 [INFO] [stderr] | [INFO] [stderr] 1 | use syntax::codemap::Span; [INFO] [stderr] | ^^^^^^^ could not find `codemap` in `syntax` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `syntax::ext::build::AstBuilder` [INFO] [stderr] --> src/plugin.rs:21:9 [INFO] [stderr] | [INFO] [stderr] 21 | use syntax::ext::build::AstBuilder; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `AstBuilder` in `ext::build` [INFO] [stderr] [INFO] [stderr] error: cannot find macro `quote_expr` in this scope [INFO] [stderr] --> src/plugin.rs:43:13 [INFO] [stderr] | [INFO] [stderr] 43 | quote_expr!(cx, { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: cannot find macro `quote_expr` in this scope [INFO] [stderr] --> src/plugin.rs:56:27 [INFO] [stderr] | [INFO] [stderr] 56 | let key = quote_expr!(cx, { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: cannot find macro `quote_expr` in this scope [INFO] [stderr] --> src/plugin.rs:67:33 [INFO] [stderr] | [INFO] [stderr] 67 | insertions.push(quote_expr!(cx, { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: cannot find macro `quote_expr` in this scope [INFO] [stderr] --> src/plugin.rs:71:24 [INFO] [stderr] | [INFO] [stderr] 71 | let expr = quote_expr!(cx, { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: cannot find macro `quote_expr` in this scope [INFO] [stderr] --> src/plugin.rs:80:13 [INFO] [stderr] | [INFO] [stderr] 80 | quote_expr!(cx, {{ [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: cannot find macro `quote_expr` in this scope [INFO] [stderr] --> src/plugin.rs:87:13 [INFO] [stderr] | [INFO] [stderr] 87 | quote_expr!(cx, { ::rustc_serialize::json::Json::Null }) [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: cannot find macro `quote_expr` in this scope [INFO] [stderr] --> src/plugin.rs:91:13 [INFO] [stderr] | [INFO] [stderr] 91 | quote_expr!(cx, {{ [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `common` in `parse` [INFO] [stderr] --> src/plugin.rs:26:30 [INFO] [stderr] | [INFO] [stderr] 26 | ::syntax::parse::common::SeqSep { [INFO] [stderr] | ^^^^^^ could not find `common` in `parse` [INFO] [stderr] ... [INFO] [stderr] 39 | let exprs = parser.parse_seq_to_end(&r_bracket, comma_sep!(), |p| { [INFO] [stderr] | ------------ in this macro invocation [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `common` in `parse` [INFO] [stderr] --> src/plugin.rs:26:30 [INFO] [stderr] | [INFO] [stderr] 26 | ::syntax::parse::common::SeqSep { [INFO] [stderr] | ^^^^^^ could not find `common` in `parse` [INFO] [stderr] ... [INFO] [stderr] 52 | let kvs = parser.parse_seq_to_end(&r_brace, comma_sep!(), |p| { [INFO] [stderr] | ------------ in this macro invocation [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/plugin.rs:10:77 [INFO] [stderr] | [INFO] [stderr] 10 | pub fn expand<'cx>(cx: &'cx mut ExtCtxt, _: Span, tts: &[TokenTree]) -> Box { [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: use `dyn`: `dyn MacResult + 'cx` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated attribute `plugin_registrar`: compiler plugins are deprecated. See https://github.com/rust-lang/rust/issues/29597 [INFO] [stderr] --> src/lib.rs:16:1 [INFO] [stderr] | [INFO] [stderr] 16 | #[plugin_registrar] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: remove this attribute [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'rustc_plugin': import this through `rustc_driver::plugin` instead to make TLS work correctly. See https://github.com/rust-lang/rust/issues/62717 [INFO] [stderr] --> src/lib.rs:5:1 [INFO] [stderr] | [INFO] [stderr] 5 | extern crate rustc_plugin; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/lib.rs:18:32 [INFO] [stderr] | [INFO] [stderr] 18 | reg.register_macro("json", plugin::expand); [INFO] [stderr] | ^^^^^^^^^^^^^^ expected struct `syntax::tokenstream::TokenStream`, found reference [INFO] [stderr] | [INFO] [stderr] = note: expected type `for<'cx, 'r> fn(&'cx mut syntax::ext::base::ExtCtxt<'r>, syntax::source_map::Span, syntax::tokenstream::TokenStream) -> std::boxed::Box<(dyn syntax::ext::base::MacResult + 'cx)>` [INFO] [stderr] found type `for<'cx, 'r, 's> fn(&'cx mut syntax::ext::base::ExtCtxt<'r>, [type error], &'s [syntax::tokenstream::TokenTree]) -> std::boxed::Box<(dyn syntax::ext::base::MacResult + 'cx)> {plugin::expand}` [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/lib.rs:18:32 [INFO] [stderr] | [INFO] [stderr] 18 | reg.register_macro("json", plugin::expand); [INFO] [stderr] | ^^^^^^^^^^^^^^ expected struct `syntax::tokenstream::TokenStream`, found reference [INFO] [stderr] | [INFO] [stderr] = note: expected type `for<'cx, 'r> fn(&'cx mut syntax::ext::base::ExtCtxt<'r>, syntax::source_map::Span, syntax::tokenstream::TokenStream) -> std::boxed::Box<(dyn syntax::ext::base::MacResult + 'cx)>` [INFO] [stderr] found type `for<'cx, 'r, 's> fn(&'cx mut syntax::ext::base::ExtCtxt<'r>, [type error], &'s [syntax::tokenstream::TokenTree]) -> std::boxed::Box<(dyn syntax::ext::base::MacResult + 'cx)> {plugin::expand}` [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/plugin.rs:11:45 [INFO] [stderr] | [INFO] [stderr] 11 | let mut parser = cx.new_parser_from_tts(tts); [INFO] [stderr] | ^^^ expected struct `syntax::tokenstream::TokenStream`, found reference [INFO] [stderr] | [INFO] [stderr] = note: expected type `syntax::tokenstream::TokenStream` [INFO] [stderr] found type `&[syntax::tokenstream::TokenTree]` [INFO] [stderr] [INFO] [stderr] error[E0599]: no associated item named `Eof` found for type `syntax::parse::token::Token` in the current scope [INFO] [stderr] --> src/plugin.rs:13:33 [INFO] [stderr] | [INFO] [stderr] 13 | if &parser.token != &Token::Eof { [INFO] [stderr] | ^^^ associated item not found in `syntax::parse::token::Token` [INFO] [stderr] [INFO] [stderr] error[E0609]: no field `span` on type `syntax::parse::parser::Parser<'_>` [INFO] [stderr] --> src/plugin.rs:14:30 [INFO] [stderr] | [INFO] [stderr] 14 | cx.span_fatal(parser.span, "expected end of `json!` macro invocation"); [INFO] [stderr] | ^^^^ unknown field [INFO] [stderr] | [INFO] [stderr] = note: available fields are: `sess`, `token`, `prev_span`, `recurse_into_file_modules`, `root_module_name`, `cfg_mods` [INFO] [stderr] [INFO] [stderr] error[E0609]: no field `span` on type `&mut syntax::parse::parser::Parser<'_>` [INFO] [stderr] --> src/plugin.rs:33:28 [INFO] [stderr] | [INFO] [stderr] 33 | let orig_span = parser.span; [INFO] [stderr] | ^^^^ unknown field [INFO] [stderr] | [INFO] [stderr] = note: available fields are: `sess`, `token`, `prev_span`, `recurse_into_file_modules`, `root_module_name`, `cfg_mods` [INFO] [stderr] [INFO] [stderr] error[E0599]: no associated item named `OpenDelim` found for type `syntax::parse::token::Token` in the current scope [INFO] [stderr] --> src/plugin.rs:36:17 [INFO] [stderr] | [INFO] [stderr] 36 | &Token::OpenDelim(DelimToken::Bracket) => { [INFO] [stderr] | ^^^^^^^^^ associated item not found in `syntax::parse::token::Token` [INFO] [stderr] [INFO] [stderr] error[E0599]: no associated item named `OpenDelim` found for type `syntax::parse::token::Token` in the current scope [INFO] [stderr] --> src/plugin.rs:49:17 [INFO] [stderr] | [INFO] [stderr] 49 | &Token::OpenDelim(DelimToken::Brace) => { [INFO] [stderr] | ^^^^^^^^^ associated item not found in `syntax::parse::token::Token` [INFO] [stderr] [INFO] [stderr] error[E0599]: no associated item named `OpenDelim` found for type `syntax::parse::token::Token` in the current scope [INFO] [stderr] --> src/plugin.rs:78:17 [INFO] [stderr] | [INFO] [stderr] 78 | &Token::OpenDelim(DelimToken::Paren) => { [INFO] [stderr] | ^^^^^^^^^ associated item not found in `syntax::parse::token::Token` [INFO] [stderr] [INFO] [stderr] error[E0599]: no associated item named `Ident` found for type `syntax::parse::token::Token` in the current scope [INFO] [stderr] --> src/plugin.rs:85:17 [INFO] [stderr] | [INFO] [stderr] 85 | &Token::Ident(id) if id.name.as_str() == "null" => { [INFO] [stderr] | ^^^^^ [INFO] [stderr] | | [INFO] [stderr] | associated item not found in `syntax::parse::token::Token` [INFO] [stderr] | help: there is a method with a similar name: `ident` [INFO] [stderr] [INFO] [stderr] error[E0599]: no associated item named `CloseDelim` found for type `syntax::parse::token::Token` in the current scope [INFO] [stderr] --> src/plugin.rs:38:36 [INFO] [stderr] | [INFO] [stderr] 38 | let r_bracket = Token::CloseDelim(DelimToken::Bracket); [INFO] [stderr] | ^^^^^^^^^^ associated item not found in `syntax::parse::token::Token` [INFO] [stderr] [INFO] [stderr] error[E0599]: no associated item named `Comma` found for type `syntax::parse::token::Token` in the current scope [INFO] [stderr] --> src/plugin.rs:27:34 [INFO] [stderr] | [INFO] [stderr] 27 | sep: Some(Token::Comma), [INFO] [stderr] | ^^^^^ associated item not found in `syntax::parse::token::Token` [INFO] [stderr] ... [INFO] [stderr] 39 | let exprs = parser.parse_seq_to_end(&r_bracket, comma_sep!(), |p| { [INFO] [stderr] | ------------ in this macro invocation [INFO] [stderr] [INFO] [stderr] error[E0599]: no associated item named `CloseDelim` found for type `syntax::parse::token::Token` in the current scope [INFO] [stderr] --> src/plugin.rs:51:34 [INFO] [stderr] | [INFO] [stderr] 51 | let r_brace = Token::CloseDelim(DelimToken::Brace); [INFO] [stderr] | ^^^^^^^^^^ associated item not found in `syntax::parse::token::Token` [INFO] [stderr] [INFO] [stderr] error[E0599]: no associated item named `Comma` found for type `syntax::parse::token::Token` in the current scope [INFO] [stderr] --> src/plugin.rs:27:34 [INFO] [stderr] | [INFO] [stderr] 27 | sep: Some(Token::Comma), [INFO] [stderr] | ^^^^^ associated item not found in `syntax::parse::token::Token` [INFO] [stderr] ... [INFO] [stderr] 52 | let kvs = parser.parse_seq_to_end(&r_brace, comma_sep!(), |p| { [INFO] [stderr] | ------------ in this macro invocation [INFO] [stderr] [INFO] [stderr] error[E0614]: type `syntax::ast::Name` cannot be dereferenced [INFO] [stderr] --> src/plugin.rs:54:26 [INFO] [stderr] | [INFO] [stderr] 54 | let s = &*istr; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no associated item named `Colon` found for type `syntax::parse::token::Token` in the current scope [INFO] [stderr] --> src/plugin.rs:55:42 [INFO] [stderr] | [INFO] [stderr] 55 | let _ = p.expect(&Token::Colon); [INFO] [stderr] | ^^^^^ associated item not found in `syntax::parse::token::Token` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `parse_pat_literal_maybe_minus` found for type `&mut syntax::parse::parser::Parser<'_>` in the current scope [INFO] [stderr] --> src/plugin.rs:90:31 [INFO] [stderr] | [INFO] [stderr] 90 | let expr = parser.parse_pat_literal_maybe_minus().ok().unwrap(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method not found in `&mut syntax::parse::parser::Parser<'_>` [INFO] [stderr] [INFO] [stderr] error: aborting due to 28 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0308, E0432, E0433, E0557, E0599, E0609, E0614. [INFO] [stderr] For more information about an error, try `rustc --explain E0308`. [INFO] [stderr] error: could not compile `json_macros`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/plugin.rs:11:45 [INFO] [stderr] | [INFO] [stderr] 11 | let mut parser = cx.new_parser_from_tts(tts); [INFO] [stderr] | ^^^ expected struct `syntax::tokenstream::TokenStream`, found reference [INFO] [stderr] | [INFO] [stderr] = note: expected type `syntax::tokenstream::TokenStream` [INFO] [stderr] found type `&[syntax::tokenstream::TokenTree]` [INFO] [stderr] [INFO] [stderr] error[E0599]: no associated item named `Eof` found for type `syntax::parse::token::Token` in the current scope [INFO] [stderr] --> src/plugin.rs:13:33 [INFO] [stderr] | [INFO] [stderr] 13 | if &parser.token != &Token::Eof { [INFO] [stderr] | ^^^ associated item not found in `syntax::parse::token::Token` [INFO] [stderr] [INFO] [stderr] error[E0609]: no field `span` on type `syntax::parse::parser::Parser<'_>` [INFO] [stderr] --> src/plugin.rs:14:30 [INFO] [stderr] | [INFO] [stderr] 14 | cx.span_fatal(parser.span, "expected end of `json!` macro invocation"); [INFO] [stderr] | ^^^^ unknown field [INFO] [stderr] | [INFO] [stderr] = note: available fields are: `sess`, `token`, `prev_span`, `recurse_into_file_modules`, `root_module_name`, `cfg_mods` [INFO] [stderr] [INFO] [stderr] error[E0609]: no field `span` on type `&mut syntax::parse::parser::Parser<'_>` [INFO] [stderr] --> src/plugin.rs:33:28 [INFO] [stderr] | [INFO] [stderr] 33 | let orig_span = parser.span; [INFO] [stderr] | ^^^^ unknown field [INFO] [stderr] | [INFO] [stderr] = note: available fields are: `sess`, `token`, `prev_span`, `recurse_into_file_modules`, `root_module_name`, `cfg_mods` [INFO] [stderr] [INFO] [stderr] error[E0599]: no associated item named `OpenDelim` found for type `syntax::parse::token::Token` in the current scope [INFO] [stderr] --> src/plugin.rs:36:17 [INFO] [stderr] | [INFO] [stderr] 36 | &Token::OpenDelim(DelimToken::Bracket) => { [INFO] [stderr] | ^^^^^^^^^ associated item not found in `syntax::parse::token::Token` [INFO] [stderr] [INFO] [stderr] error[E0599]: no associated item named `OpenDelim` found for type `syntax::parse::token::Token` in the current scope [INFO] [stderr] --> src/plugin.rs:49:17 [INFO] [stderr] | [INFO] [stderr] 49 | &Token::OpenDelim(DelimToken::Brace) => { [INFO] [stderr] | ^^^^^^^^^ associated item not found in `syntax::parse::token::Token` [INFO] [stderr] [INFO] [stderr] error[E0599]: no associated item named `OpenDelim` found for type `syntax::parse::token::Token` in the current scope [INFO] [stderr] --> src/plugin.rs:78:17 [INFO] [stderr] | [INFO] [stderr] 78 | &Token::OpenDelim(DelimToken::Paren) => { [INFO] [stderr] | ^^^^^^^^^ associated item not found in `syntax::parse::token::Token` [INFO] [stderr] [INFO] [stderr] error[E0599]: no associated item named `Ident` found for type `syntax::parse::token::Token` in the current scope [INFO] [stderr] --> src/plugin.rs:85:17 [INFO] [stderr] | [INFO] [stderr] 85 | &Token::Ident(id) if id.name.as_str() == "null" => { [INFO] [stderr] | ^^^^^ [INFO] [stderr] | | [INFO] [stderr] | associated item not found in `syntax::parse::token::Token` [INFO] [stderr] | help: there is a method with a similar name: `ident` [INFO] [stderr] [INFO] [stderr] error[E0599]: no associated item named `CloseDelim` found for type `syntax::parse::token::Token` in the current scope [INFO] [stderr] --> src/plugin.rs:38:36 [INFO] [stderr] | [INFO] [stderr] 38 | let r_bracket = Token::CloseDelim(DelimToken::Bracket); [INFO] [stderr] | ^^^^^^^^^^ associated item not found in `syntax::parse::token::Token` [INFO] [stderr] [INFO] [stderr] error[E0599]: no associated item named `Comma` found for type `syntax::parse::token::Token` in the current scope [INFO] [stderr] --> src/plugin.rs:27:34 [INFO] [stderr] | [INFO] [stderr] 27 | sep: Some(Token::Comma), [INFO] [stderr] | ^^^^^ associated item not found in `syntax::parse::token::Token` [INFO] [stderr] ... [INFO] [stderr] 39 | let exprs = parser.parse_seq_to_end(&r_bracket, comma_sep!(), |p| { [INFO] [stderr] | ------------ in this macro invocation [INFO] [stderr] [INFO] [stderr] error[E0599]: no associated item named `CloseDelim` found for type `syntax::parse::token::Token` in the current scope [INFO] [stderr] --> src/plugin.rs:51:34 [INFO] [stderr] | [INFO] [stderr] 51 | let r_brace = Token::CloseDelim(DelimToken::Brace); [INFO] [stderr] | ^^^^^^^^^^ associated item not found in `syntax::parse::token::Token` [INFO] [stderr] [INFO] [stderr] error[E0599]: no associated item named `Comma` found for type `syntax::parse::token::Token` in the current scope [INFO] [stderr] --> src/plugin.rs:27:34 [INFO] [stderr] | [INFO] [stderr] 27 | sep: Some(Token::Comma), [INFO] [stderr] | ^^^^^ associated item not found in `syntax::parse::token::Token` [INFO] [stderr] ... [INFO] [stderr] 52 | let kvs = parser.parse_seq_to_end(&r_brace, comma_sep!(), |p| { [INFO] [stderr] | ------------ in this macro invocation [INFO] [stderr] [INFO] [stderr] error[E0614]: type `syntax::ast::Name` cannot be dereferenced [INFO] [stderr] --> src/plugin.rs:54:26 [INFO] [stderr] | [INFO] [stderr] 54 | let s = &*istr; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no associated item named `Colon` found for type `syntax::parse::token::Token` in the current scope [INFO] [stderr] --> src/plugin.rs:55:42 [INFO] [stderr] | [INFO] [stderr] 55 | let _ = p.expect(&Token::Colon); [INFO] [stderr] | ^^^^^ associated item not found in `syntax::parse::token::Token` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `parse_pat_literal_maybe_minus` found for type `&mut syntax::parse::parser::Parser<'_>` in the current scope [INFO] [stderr] --> src/plugin.rs:90:31 [INFO] [stderr] | [INFO] [stderr] 90 | let expr = parser.parse_pat_literal_maybe_minus().ok().unwrap(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method not found in `&mut syntax::parse::parser::Parser<'_>` [INFO] [stderr] [INFO] [stderr] error: aborting due to 28 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0308, E0432, E0433, E0557, E0599, E0609, E0614. [INFO] [stderr] For more information about an error, try `rustc --explain E0308`. [INFO] [stderr] error: could not compile `json_macros`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] running `"docker" "inspect" "223d985d32af2d18106857f553b318df4be1719da474a2bd6f41daf7fe16a6b6"` [INFO] running `"docker" "rm" "-f" "223d985d32af2d18106857f553b318df4be1719da474a2bd6f41daf7fe16a6b6"` [INFO] [stdout] 223d985d32af2d18106857f553b318df4be1719da474a2bd6f41daf7fe16a6b6