easy-plugin 0.11.8

A compiler plugin that makes it easier to write compiler plugins.

Build #89004 2018-03-05 22:10:39

Build failed. If you want to re-trigger a documentation build, you can do it here. You can find more information on docs.rs builds documentation on the builds page.

# rustc version rustc 1.26.0-dev (5c1d29af0 2018-03-03)

# docs.rs version cratesfyi 0.5.0 (579f83b 2018-03-05)

# build log Build failed, waiting for other jobs to finish... Updating registry `https://github.com/rust-lang/crates.io-index` Downloading easy-plugin v0.11.8 Downloading synthax v0.3.6 Downloading easy-plugin-parsers v0.11.8 Fresh rustc-serialize v0.3.24 Compiling synthax v0.3.6 Fresh toml v0.2.1 Running `rustc --crate-name synthax .cargo/registry/src/github.com-1ecc6299db9ec823/synthax-0.3.6/src/lib.rs --crate-type dylib --emit=dep-info,link -C prefer-dynamic -C debuginfo=2 -C metadata=047cf1e48f4f5b1d -C extra-filename=-047cf1e48f4f5b1d --out-dir /home/cratesfyi/cratesfyi/debug/deps -L dependency=/home/cratesfyi/cratesfyi/debug/deps --cap-lints allow` Compiling easy-plugin-parsers v0.11.8 Running `rustc --crate-name build_script_build .cargo/registry/src/github.com-1ecc6299db9ec823/easy-plugin-parsers-0.11.8/build.rs --crate-type bin --emit=dep-info,link -C debuginfo=2 -C metadata=3e8993b168e32895 -C extra-filename=-3e8993b168e32895 --out-dir /home/cratesfyi/cratesfyi/debug/build/easy-plugin-parsers-3e8993b168e32895 -L dependency=/home/cratesfyi/cratesfyi/debug/deps --extern toml=/home/cratesfyi/cratesfyi/debug/deps/libtoml-1a09fa2674ee8ead.rlib --extern-version toml=toml,0.2.1 --cap-lints allow` error[E0432]: unresolved import `syntax::codemap::ExpnId` --> .cargo/registry/src/github.com-1ecc6299db9ec823/synthax-0.3.6/src/expr.rs:16:23 | 16 | use syntax::codemap::{ExpnId, Span}; | ^^^^^^ no `ExpnId` in `codemap` error[E0061]: this function takes 1 parameter but 0 parameters were supplied --> .cargo/registry/src/github.com-1ecc6299db9ec823/synthax-0.3.6/src/lib.rs:240:39 | 240 | token_tree!(delimited.open_tt()); | ^^^^^^^ expected 1 parameter error[E0308]: mismatched types --> .cargo/registry/src/github.com-1ecc6299db9ec823/synthax-0.3.6/src/lib.rs:241:63 | 241 | expr = expand_var_sequence_tts(context, span, &delimited.tts, expr); | ^^^^^^^^^^^^^^ expected slice, found struct `syntax::tokenstream::ThinTokenStream` | = note: expected type `&[syntax::tokenstream::TokenTree]` found type `&syntax::tokenstream::ThinTokenStream` error[E0061]: this function takes 1 parameter but 0 parameters were supplied --> .cargo/registry/src/github.com-1ecc6299db9ec823/synthax-0.3.6/src/lib.rs:242:39 | 242 | token_tree!(delimited.close_tt()); | ^^^^^^^^ expected 1 parameter error[E0308]: mismatched types --> .cargo/registry/src/github.com-1ecc6299db9ec823/synthax-0.3.6/src/lib.rs:295:39 | 295 | parse_expr(context, span, &delimited.tts).unwrap(), | ^^^^^^^^^^^^^^ expected slice, found struct `syntax::tokenstream::ThinTokenStream` | = note: expected type `&[syntax::tokenstream::TokenTree]` found type `&syntax::tokenstream::ThinTokenStream` error[E0308]: mismatched types --> .cargo/registry/src/github.com-1ecc6299db9ec823/synthax-0.3.6/src/lib.rs:297:53 | 297 | expand_var_sequence(context, span, tts, &delimited.tts), | ^^^^^^^^^^^^^^ expected slice, found struct `syntax::tokenstream::ThinTokenStream` | = note: expected type `&[syntax::tokenstream::TokenTree]` found type `&syntax::tokenstream::ThinTokenStream` error[E0061]: this function takes 1 parameter but 0 parameters were supplied --> .cargo/registry/src/github.com-1ecc6299db9ec823/synthax-0.3.6/src/lib.rs:310:81 | 310 | etts.push(ExpandedTokenTree::TokenTree(mk_expr_tt(context, span, &delimited.open_tt()))); | ^^^^^^^ expected 1 parameter error[E0308]: mismatched types --> .cargo/registry/src/github.com-1ecc6299db9ec823/synthax-0.3.6/src/lib.rs:311:64 | 311 | etts.push(ExpandedTokenTree::Vec(expand_tts(context, span, &delimited.tts, source))); | ^^^^^^^^^^^^^^ expected slice, found struct `syntax::tokenstream::ThinTokenStream` | = note: expected type `&[syntax::tokenstream::TokenTree]` found type `&syntax::tokenstream::ThinTokenStream` error[E0061]: this function takes 1 parameter but 0 parameters were supplied --> .cargo/registry/src/github.com-1ecc6299db9ec823/synthax-0.3.6/src/lib.rs:312:81 | 312 | etts.push(ExpandedTokenTree::TokenTree(mk_expr_tt(context, span, &delimited.close_tt()))); | ^^^^^^^^ expected 1 parameter error[E0308]: mismatched types --> .cargo/registry/src/github.com-1ecc6299db9ec823/synthax-0.3.6/src/lib.rs:329:61 | 329 | etts.extend(expand_delimited(context, span, delimited, source).into_iter()), | ^^^^^^^^^ expected struct `std::rc::Rc`, found struct `syntax::tokenstream::Delimited` | = note: expected type `&std::rc::Rc<syntax::tokenstream::Delimited>` found type `&syntax::tokenstream::Delimited` error[E0615]: attempted to take value of method `lo` on type `&syntax::codemap::Span` --> .cargo/registry/src/github.com-1ecc6299db9ec823/synthax-0.3.6/src/expr.rs:126:82 | 126 | mk_expr_struct(context, span, rt!["Span"], fields!(context, span, self, [lo, hi, expn_id])) | ^^ | = help: maybe a `()` to call it is missing? error[E0615]: attempted to take value of method `hi` on type `&syntax::codemap::Span` --> .cargo/registry/src/github.com-1ecc6299db9ec823/synthax-0.3.6/src/expr.rs:126:86 | 126 | mk_expr_struct(context, span, rt!["Span"], fields!(context, span, self, [lo, hi, expn_id])) | ^^ | = help: maybe a `()` to call it is missing? error[E0609]: no field `expn_id` on type `&syntax::codemap::Span` --> .cargo/registry/src/github.com-1ecc6299db9ec823/synthax-0.3.6/src/expr.rs:126:90 | 126 | mk_expr_struct(context, span, rt!["Span"], fields!(context, span, self, [lo, hi, expn_id])) | ^^^^^^^ Running `/home/cratesfyi/cratesfyi/debug/build/easy-plugin-parsers-3e8993b168e32895/build-script-build` error[E0599]: no variant named `MatchNt` found for type `syntax::parse::token::Token` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/synthax-0.3.6/src/expr.rs:173:13 | 173 | Token::MatchNt(_, _) | | ^^^^^^^^^^^^^^^^^^^^ variant not found in `syntax::parse::token::Token` error[E0599]: no variant named `SubstNt` found for type `syntax::parse::token::Token` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/synthax-0.3.6/src/expr.rs:174:13 | 174 | Token::SubstNt(_) | | ^^^^^^^^^^^^^^^^^ variant not found in `syntax::parse::token::Token` Running `rustc --crate-name easy_plugin_parsers .cargo/registry/src/github.com-1ecc6299db9ec823/easy-plugin-parsers-0.11.8/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=c072d1bcca96ea4e -C extra-filename=-c072d1bcca96ea4e --out-dir /home/cratesfyi/cratesfyi/debug/deps -L dependency=/home/cratesfyi/cratesfyi/debug/deps --cap-lints allow` error[E0609]: no field `open_span` on type `&syntax::tokenstream::Delimited` --> .cargo/registry/src/github.com-1ecc6299db9ec823/synthax-0.3.6/src/expr.rs:186:59 | 186 | let fields = fields!(context, span, self, [delim, open_span, tts, close_span]); | ^^^^^^^^^ error[E0599]: no method named `to_expr` found for type `syntax::tokenstream::ThinTokenStream` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/synthax-0.3.6/src/expr.rs:50:78 | 50 | vec![$(mk_field($context, $span, stringify!($field), $struct_.$field.to_expr($context, $span))), +] | ^^^^^^^ ... 186 | let fields = fields!(context, span, self, [delim, open_span, tts, close_span]); | ----------------------------------------------------------------- in this macro invocation | = help: items from traits can only be used if the trait is implemented and in scope = note: the following trait defines an item `to_expr`, perhaps you need to implement it: candidate #1: `expr::ToExpr` error[E0609]: no field `close_span` on type `&syntax::tokenstream::Delimited` --> .cargo/registry/src/github.com-1ecc6299db9ec823/synthax-0.3.6/src/expr.rs:186:75 | 186 | let fields = fields!(context, span, self, [delim, open_span, tts, close_span]); | ^^^^^^^^^^ error[E0599]: no variant named `Sequence` found for type `syntax::tokenstream::TokenTree` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/synthax-0.3.6/src/expr.rs:241:9 | 241 | TokenTree::Sequence(..) => unreachable!(), | ^^^^^^^^^^^^^^^^^^^^^^^ variant not found in `syntax::tokenstream::TokenTree` error[E0599]: no associated item named `Inherited` found for type `syntax::codemap::Spanned<syntax::ast::VisibilityKind>` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/synthax-0.3.6/src/tt.rs:264:18 | 264 | vis: Visibility::Inherited, | ^^^^^^^^^^^^^^^^^^^^^ associated item not found in `syntax::codemap::Spanned<syntax::ast::VisibilityKind>` error[E0063]: missing field `tokens` in initializer of `syntax::ast::Item` --> .cargo/registry/src/github.com-1ecc6299db9ec823/synthax-0.3.6/src/tt.rs:259:20 | 259 | let item = Item { | ^^^^ missing `tokens` error[E0609]: no field `name` on type `&syntax::ast::Lifetime` --> .cargo/registry/src/github.com-1ecc6299db9ec823/synthax-0.3.6/src/tt.rs:273:44 | 273 | let ident = context.ident_of(&self.name.as_str()[..]); | ^^^^ error[E0599]: no associated item named `Public` found for type `syntax::codemap::Spanned<syntax::ast::VisibilityKind>` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/synthax-0.3.6/src/tt.rs:331:24 | 331 | if self.vis == Visibility::Public { | ^^^^^^^^^^^^^^^^^^ associated item not found in `syntax::codemap::Spanned<syntax::ast::VisibilityKind>` error: aborting due to 23 previous errors You've got a few errors: E0061, E0063, E0308, E0432, E0599, E0609, E0615 If you want more information on an error, try using "rustc --explain E0061" error: Could not compile `synthax`. Caused by: process didn't exit successfully: `rustc --crate-name synthax .cargo/registry/src/github.com-1ecc6299db9ec823/synthax-0.3.6/src/lib.rs --crate-type dylib --emit=dep-info,link -C prefer-dynamic -C debuginfo=2 -C metadata=047cf1e48f4f5b1d -C extra-filename=-047cf1e48f4f5b1d --out-dir /home/cratesfyi/cratesfyi/debug/deps -L dependency=/home/cratesfyi/cratesfyi/debug/deps --cap-lints allow` (exit code: 101) error[E0432]: unresolved import `syntax::parse::lexer::Reader` --> .cargo/registry/src/github.com-1ecc6299db9ec823/easy-plugin-parsers-0.11.8/src/utility.rs:28:28 | 28 | use syntax::parse::lexer::{Reader, TokenAndSpan}; | ^^^^^^ no `Reader` in `parse::lexer` error[E0432]: unresolved import `syntax::tokenstream::SequenceRepetition` --> .cargo/registry/src/github.com-1ecc6299db9ec823/easy-plugin-parsers-0.11.8/src/extractor.rs:26:38 | 26 | use syntax::tokenstream::{Delimited, SequenceRepetition, TokenTree}; | ^^^^^^^^^^^^^^^^^^ no `SequenceRepetition` in `tokenstream` error[E0425]: cannot find function `new_tt_reader` in module `transcribe` --> .cargo/registry/src/github.com-1ecc6299db9ec823/easy-plugin-parsers-0.11.8/src/utility.rs:324:34 | 324 | let mut reader = transcribe::new_tt_reader(&session.span_diagnostic, None, tts.into()); | ^^^^^^^^^^^^^ not found in `transcribe` error[E0412]: cannot find type `ViewPath` in module `syntax::ast` --> /home/cratesfyi/cratesfyi/debug/build/easy-plugin-parsers-95cfe4e9f2f22351/out/extractor.rs:118:82 | 118 | pub fn item_to_use(item: &Item) -> PluginResult<(::syntax::ptr::P<::syntax::ast::ViewPath>)> { match item.node { ItemKind::Use(ref a) => Ok((a.clone())), _ => Err((item.span, "expected `ItemKind::Use` item".into())), } } | ^^^^^^^^ not found in `syntax::ast` error: cannot continue compilation due to previous error You've got a few errors: E0412, E0425, E0432 If you want more information on an error, try using "rustc --explain E0412" thread 'main' panicked at 'Error( CargoError( build failed ), State { next_error: None, backtrace: None } )', src/bin/cratesfyi.rs:142:13 note: Run with `RUST_BACKTRACE=1` for a backtrace.