X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=compiler%2Frustc_hir_typeck%2Fsrc%2F_match.rs;h=e3afc117bb2ad8048ed3b53000d5327e8242f72f;hb=7f3af726065d9eaabf93d87f22d97f60cca7a5f1;hp=e25a9e9036a15607e6b2000aac8c03f8281eaa63;hpb=60d136000eab7e171e4d2c5bab47e6fee1fd5ec6;p=rust.git diff --git a/compiler/rustc_hir_typeck/src/_match.rs b/compiler/rustc_hir_typeck/src/_match.rs index e25a9e9036a..e3afc117bb2 100644 --- a/compiler/rustc_hir_typeck/src/_match.rs +++ b/compiler/rustc_hir_typeck/src/_match.rs @@ -518,7 +518,7 @@ pub(crate) fn opt_suggest_box_span( let substs = sig.output().walk().find_map(|arg| { if let ty::GenericArgKind::Type(ty) = arg.unpack() - && let ty::Opaque(def_id, substs) = *ty.kind() + && let ty::Opaque(ty::OpaqueTy { def_id, substs }) = *ty.kind() && def_id == rpit_def_id { Some(substs)