Rustup to rustc 1.36.0-nightly (fa40a111f 2019-05-27)
This commit is contained in:
parent
7b501f0f6a
commit
73d1830812
3 changed files with 13 additions and 6 deletions
|
|
@ -1123,5 +1123,7 @@ mod test {
|
|||
}
|
||||
|
||||
pub fn match_def_path<'a, 'tcx>(cx: &LateContext<'a, 'tcx>, did: DefId, syms: &[&str]) -> bool {
|
||||
// HACK: find a way to use symbols from clippy or just go fully to diagnostic items
|
||||
let syms: Vec<_> = syms.iter().map(|sym| Symbol::intern(sym)).collect();
|
||||
cx.match_def_path(did, &syms)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue