Fix push_item_path call (rustup to 4cf11765dc
)
This commit is contained in:
parent
11cc8472a9
commit
c430147942
@ -72,6 +72,7 @@ pub fn in_macro(span: Span) -> bool {
|
||||
pub fn match_def_path(tcx: TyCtxt<'_, '_, '_>, def_id: DefId, path: &[&str]) -> bool {
|
||||
use crate::syntax::symbol;
|
||||
|
||||
#[derive(Debug)]
|
||||
struct AbsolutePathBuffer {
|
||||
names: Vec<symbol::LocalInternedString>,
|
||||
}
|
||||
@ -89,7 +90,7 @@ pub fn match_def_path(tcx: TyCtxt<'_, '_, '_>, def_id: DefId, path: &[&str]) ->
|
||||
|
||||
let mut apb = AbsolutePathBuffer { names: vec![] };
|
||||
|
||||
tcx.push_item_path(&mut apb, def_id);
|
||||
tcx.push_item_path(&mut apb, def_id, false);
|
||||
|
||||
apb.names.len() == path.len()
|
||||
&& apb.names
|
||||
|
Loading…
Reference in New Issue
Block a user