Add rust_2018_preview feature and fix rustfmt annotation

This commit is contained in:
Mateusz Mikuła 2018-05-30 10:05:06 +02:00 committed by Mateusz Mikuła
parent 8ed8ee895a
commit 26f3feb980
3 changed files with 3 additions and 1 deletions

View File

@ -11,6 +11,7 @@
#![allow(stable_features)]
#![feature(iterator_find_map)]
#![feature(macro_at_most_once_rep)]
#![feature(rust_2018_preview)]
extern crate cargo_metadata;
#[macro_use]

View File

@ -153,7 +153,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for NewWithoutDefault {
}
fn create_new_without_default_suggest_msg(ty: Ty) -> String {
#[rustfmt_skip]
#[cfg_attr(rustfmt, rustfmt_skip)]
format!(
"impl Default for {} {{
fn default() -> Self {{

View File

@ -1,5 +1,6 @@
// error-pattern:cargo-clippy
#![feature(plugin_registrar)]
#![feature(rust_2018_preview)]
#![feature(rustc_private)]
#![feature(macro_vis_matcher)]
#![allow(unknown_lints)]