Rustup to rustc 1.36.0-nightly (fa40a111f 2019-05-27)
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user