- if let ExprKind::Path(ref qpath) = path.node {
- if let Some(def_id) = resolve_node(cx, qpath, path.hir_id).opt_def_id() {
- if match_def_path(cx, def_id, &*paths::FROM_FROM) {
+ if let ExprKind::Path(ref qpath) = path.kind {
+ if let Some(def_id) = cx.tables.qpath_res(qpath, path.hir_id).opt_def_id() {
+ if match_def_path(cx, def_id, &paths::FROM_FROM) {