Rust-clippy: CodeSuggestion has new field in latest nightly

Created on 24 Jul 2017  路  1Comment  路  Source: rust-lang/rust-clippy

https://github.com/rust-lang/rust/pull/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/github.com-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`.

Most helpful comment

published as 0.0.145

>All comments

published as 0.0.145

Was this page helpful?
0 / 5 - 0 ratings