Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failure with latest nightly #2639

Closed
ghost opened this issue Apr 7, 2018 · 0 comments
Closed

Build failure with latest nightly #2639

ghost opened this issue Apr 7, 2018 · 0 comments

Comments

@ghost
Copy link

ghost commented Apr 7, 2018

Compiler version:
rustc 1.27.0-nightly (eeea94c11 2018-04-06)

Errors:

error[E0609]: no field `identifier` on type `&syntax::ast::PathSegment`
   --> clippy_lints/src/utils/mod.rs:240:25
    |
240 |         .all(|(a, b)| a.identifier.name == *b)
    |                         ^^^^^^^^^^

error[E0599]: no method named `name` found for type `&syntax::ast::MetaItem` in the current scope
  --> clippy_lints/src/utils/conf.rs:16:16
   |
16 |         if arg.name() == "conf_file" {
   |                ^^^^

error[E0609]: no field `name` on type `&syntax::ast::MetaItem`
   --> clippy_lints/src/utils/author.rs:474:65
    |
474 |                 ast::NestedMetaItemKind::MetaItem(ref it) => it.name == "author",
    |                                                                 ^^^^

error[E0599]: no method named `name` found for type `&syntax::ast::MetaItem` in the current scope
   --> clippy_lints/src/attrs.rs:135:27
    |
135 |                     if mi.name() == "since";
    |                           ^^^^

error[E0599]: no method named `name` found for type `&syntax::ast::MetaItem` in the current scope
   --> clippy_lints/src/attrs.rs:331:28
    |
331 |         mi.is_word() && mi.name() == expected
    |                            ^^^^

error[E0609]: no field `span` on type `syntax::ast::Lifetime`
  --> clippy_lints/src/const_static_lifetime.rs:59:46
   |
59 |                                     lifetime.span,
   |                                              ^^^^ unknown field
   |
   = note: available fields are: `id`, `ident`

error[E0609]: no field `name` on type `syntax::ast::Variant_`
   --> clippy_lints/src/enum_variants.rs:122:14
    |
122 |     var.node.name.name.as_str()
    |              ^^^^ unknown field
    |
    = note: available fields are: `ident`, `attrs`, `data`, `disr_expr`

error[E0609]: no field `span` on type `&syntax::ast::TyParam`
   --> clippy_lints/src/misc_early.rs:198:28
    |
198 |                         ty.span,
    |                            ^^^^

error[E0609]: no field `identifier` on type `&syntax::ast::PathSegment`
   --> clippy_lints/src/misc_early.rs:212:18
    |
212 |                 .identifier
    |                  ^^^^^^^^^^

error[E0609]: no field `node` on type `syntax::ast::Ident`
   --> clippy_lints/src/misc_early.rs:271:41
    |
271 |                 let arg_name = sp_ident.node.to_string();
    |                                         ^^^^ unknown field
    |
    = note: available fields are: `name`, `span`

error[E0609]: no field `node` on type `syntax::ast::Ident`
   --> clippy_lints/src/misc_early.rs:337:33
    |
337 |                     if sp_ident.node == (&path.segments[0]).identifier {
    |                                 ^^^^ unknown field
    |
    = note: available fields are: `name`, `span`

error[E0609]: no field `identifier` on type `&syntax::ast::PathSegment`
   --> clippy_lints/src/misc_early.rs:337:61
    |
337 |                     if sp_ident.node == (&path.segments[0]).identifier {
    |                                                             ^^^^^^^^^^

error[E0609]: no field `node` on type `syntax::ast::Ident`
   --> clippy_lints/src/non_expressive_names.rs:107:69
    |
107 |             PatKind::Ident(_, id, _) => self.check_name(id.span, id.node.name),
    |                                                                     ^^^^ unknown field
    |
    = note: available fields are: `name`, `span`

error[E0308]: mismatched types
   --> clippy_lints/src/returns.rs:115:43
    |
115 |             if let ast::PatKind::Ident(_, Spanned { node: id, .. }, _) = local.pat.node;
    |                                           ^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `syntax::ast::Ident`, found struct `syntax::codemap::Spanned`
    |
    = note: expected type `syntax::ast::Ident`
               found type `syntax::codemap::Spanned<_>`

error[E0609]: no field `identifier` on type `&syntax::ast::PathSegment`
  --> clippy_lints/src/unsafe_removed_from_name.rs:52:18
   |
52 |                 .identifier;
   |                  ^^^^^^^^^^

error: aborting due to 15 previous errors

Some errors occurred: E0308, E0599, E0609.
For more information about an error, try `rustc --explain E0308`.
error: Could not compile `clippy_lints`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants