From 3c11406c1faabf6b95307b08dd9f2c2bcb8e4bf3 Mon Sep 17 00:00:00 2001 From: flip1995 Date: Fri, 30 Aug 2019 09:33:03 +0200 Subject: [PATCH] Rustup to rust-lang/rust#60966 --- clippy_lints/src/methods/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clippy_lints/src/methods/mod.rs b/clippy_lints/src/methods/mod.rs index 81a8e69220c1..110d161471f0 100644 --- a/clippy_lints/src/methods/mod.rs +++ b/clippy_lints/src/methods/mod.rs @@ -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; @@ -2682,7 +2682,7 @@ fn get_error_type<'a>(cx: &LateContext<'_, '_>, ty: Ty<'a>) -> Option> { /// 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, }