Rustup to rustc 1.36.0-nightly (fa40a111f 2019-05-27)

This commit is contained in:
Oliver Scherer
2019-05-27 21:58:54 +02:00
parent 7b501f0f6a
commit 73d1830812
3 changed files with 13 additions and 6 deletions

View File

@@ -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)
}