Skip to content

Commit

Permalink
Auto merge of #4475 - flip1995:rustup, r=phansch
Browse files Browse the repository at this point in the history
Rustup to rust-lang/rust#60966

changelog: none
  • Loading branch information
bors committed Aug 30, 2019
2 parents 2bff3d8 + 3c11406 commit 70e7d07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clippy_lints/src/methods/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use rustc::{declare_lint_pass, declare_tool_lint};
use rustc_errors::Applicability;
use syntax::ast;
use syntax::source_map::Span;
use syntax::symbol::LocalInternedString;
use syntax::symbol::{sym, LocalInternedString};

use crate::utils::sugg;
use crate::utils::usage::mutated_variables;
Expand Down Expand Up @@ -2682,7 +2682,7 @@ fn get_error_type<'a>(cx: &LateContext<'_, '_>, ty: Ty<'a>) -> Option<Ty<'a>> {

/// This checks whether a given type is known to implement Debug.
fn has_debug_impl<'a, 'b>(ty: Ty<'a>, cx: &LateContext<'b, 'a>) -> bool {
match cx.tcx.lang_items().debug_trait() {
match cx.tcx.get_diagnostic_item(sym::debug_trait) {
Some(debug) => implements_trait(cx, ty, debug, &[]),
None => false,
}
Expand Down

0 comments on commit 70e7d07

Please sign in to comment.