Rename local_did to def_id
Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com>
This commit is contained in:
parent
25bdc8965e
commit
16513d689e
9 changed files with 28 additions and 24 deletions
|
@ -26,7 +26,7 @@ use rustc_span::{BytePos, Span};
|
|||
pub(crate) fn check_match(tcx: TyCtxt<'_>, def_id: DefId) {
|
||||
let body_id = match def_id.as_local() {
|
||||
None => return,
|
||||
Some(did) => tcx.hir().body_owned_by(did),
|
||||
Some(def_id) => tcx.hir().body_owned_by(def_id),
|
||||
};
|
||||
|
||||
let pattern_arena = TypedArena::default();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue