Skip to content

Commit 3c11406

Browse files
committed
1 parent 2bff3d8 commit 3c11406

File tree

1 file changed

+2
-2
lines changed
  • clippy_lints/src/methods

1 file changed

+2
-2
lines changed

clippy_lints/src/methods/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use rustc::{declare_lint_pass, declare_tool_lint};
1515
use rustc_errors::Applicability;
1616
use syntax::ast;
1717
use syntax::source_map::Span;
18-
use syntax::symbol::LocalInternedString;
18+
use syntax::symbol::{sym, LocalInternedString};
1919

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

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

0 commit comments

Comments
 (0)