Skip to content

Commit c430147

Browse files
committed
Fix push_item_path call (rustup to 4cf1176)
1 parent 11cc847 commit c430147

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clippy_lints/src/utils/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ pub fn in_macro(span: Span) -> bool {
7272
pub fn match_def_path(tcx: TyCtxt<'_, '_, '_>, def_id: DefId, path: &[&str]) -> bool {
7373
use crate::syntax::symbol;
7474

75+
#[derive(Debug)]
7576
struct AbsolutePathBuffer {
7677
names: Vec<symbol::LocalInternedString>,
7778
}
@@ -89,7 +90,7 @@ pub fn match_def_path(tcx: TyCtxt<'_, '_, '_>, def_id: DefId, path: &[&str]) ->
8990

9091
let mut apb = AbsolutePathBuffer { names: vec![] };
9192

92-
tcx.push_item_path(&mut apb, def_id);
93+
tcx.push_item_path(&mut apb, def_id, false);
9394

9495
apb.names.len() == path.len()
9596
&& apb.names

0 commit comments

Comments
 (0)