}
fn is_executable(cx: &LateContext<'_, '_>) -> bool {
- use rustc::session::config::CrateType;
+ use rustc_session::config::CrateType;
cx.tcx.sess.crate_types.get().iter().any(|t: &CrateType| match t {
CrateType::Executable => true,
}
let desc = match impl_item.kind {
- hir::ImplItemKind::Method(..) => "a method",
+ hir::ImplItemKind::Fn(..) => "a method",
hir::ImplItemKind::Const(..) | hir::ImplItemKind::TyAlias(_) | hir::ImplItemKind::OpaqueTy(_) => return,
};