Minor fix to get build working
This commit is contained in:
parent
76573bac16
commit
915695371f
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue