Skip to content

Commit 10c5412

Browse files
authored
Merge pull request #1460 from killercup/rustup/2017-01-20
Rustup to nightly from 2017-01-20
2 parents 57d9320 + b228434 commit 10c5412

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

clippy_lints/src/map_clone.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
use rustc::lint::*;
22
use rustc::hir::*;
33
use syntax::ast;
4-
use utils::{is_adjusted, match_path, match_trait_method, match_type, remove_blocks, paths, snippet,
5-
span_help_and_lint, walk_ptrs_ty, walk_ptrs_ty_depth, iter_input_pats};
4+
use utils::{is_adjusted, match_path, match_trait_method, match_type, remove_blocks, paths, snippet, span_help_and_lint,
5+
walk_ptrs_ty, walk_ptrs_ty_depth, iter_input_pats};
66

77
/// **What it does:** Checks for mapping `clone()` over an iterator.
88
///

clippy_lints/src/utils/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ pub fn multispan_sugg(db: &mut DiagnosticBuilder, help_msg: String, sugg: &[(Spa
576576

577577
let sub = rustc_errors::SubDiagnostic {
578578
level: rustc_errors::Level::Help,
579-
message: help_msg,
579+
message: vec![(help_msg, rustc_errors::snippet::Style::LabelPrimary)],
580580
span: MultiSpan::new(),
581581
render_span: Some(sugg),
582582
};

0 commit comments

Comments
 (0)