Minor fix to get build working

This commit is contained in:
Alexander Regueiro 2018-05-03 21:57:50 +01:00
parent 76573bac16
commit 915695371f

View file

@ -111,7 +111,7 @@ fn after_analysis<'a, 'tcx>(state: &mut CompileState<'a, 'tcx>) {
fn visit_item(&mut self, i: &'hir hir::Item) {
if let hir::Item_::ItemFn(_, _, _, _, _, body_id) = i.node {
if i.attrs.iter().any(|attr| {
attr.name().map_or(false, |n| n == "test")
attr.name() == "test"
})
{
let did = self.0.hir.body_owner_def_id(body_id);