Skip to content

Commit

Permalink
defin_ty_def_id -> definition_ty_def_id
Browse files Browse the repository at this point in the history
  • Loading branch information
spastorino committed Jun 8, 2021
1 parent f07412d commit ecd78e9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions compiler/rustc_typeck/src/check/writeback.rs
Expand Up @@ -503,13 +503,13 @@ impl<'cx, 'tcx> WritebackCx<'cx, 'tcx> {

let mut skip_add = false;

if let ty::Opaque(defin_ty_def_id, _substs) = *definition_ty.kind() {
if let ty::Opaque(definition_ty_def_id, _substs) = *definition_ty.kind() {
if let hir::OpaqueTyOrigin::Misc | hir::OpaqueTyOrigin::TyAlias = opaque_defn.origin
{
if def_id == defin_ty_def_id {
if def_id == definition_ty_def_id {
debug!(
"skipping adding concrete definition for opaque type {:?} {:?}",
opaque_defn, defin_ty_def_id
opaque_defn, def_id
);
skip_add = true;
}
Expand Down

0 comments on commit ecd78e9

Please sign in to comment.