Skip to content

Fails to build with rustc 1.23.0-nightly (d762b1d6c 2017-11-04) #2119

Closed
@kraai

Description

@kraai

When I try to build rustfmt with rustc 1.23.0-nightly (d762b1d 2017-11-04), it fails with the following errors:

$ cargo build
   Compiling rustfmt-nightly v0.2.13 (file:///home/kraai/src/rustfmt)
error[E0599]: no associated item named `DefaultImpl` found for type `syntax::ast::ItemKind` in the current scope
   --> src/visitor.rs:421:13
    |
421 |             ast::ItemKind::DefaultImpl(..) => {
    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0023]: this pattern has 4 fields, but the corresponding tuple variant has 5 fields
   --> src/items.rs:897:12
    |
897 |     if let ast::ItemKind::Trait(unsafety, ref generics, ref type_param_bounds, ref trait_items) =
    |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 5 fields, found 4

error: aborting due to 2 previous errors

error: Could not compile `rustfmt-nightly`.

To learn more, run the command again with --verbose.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions