fn check_matcher(sess: &ParseSess, def: &Item, matcher: &[TokenTree]) -> bool